mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-13 19:31:46 +00:00
Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 467171a17e | |||
| 3022facbea | |||
| a67bf5ea43 | |||
| 3a1a3d4241 | |||
| 9197f4a0e1 | |||
| d21220693b |
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "youtube-music",
|
"name": "youtube-music",
|
||||||
"productName": "YouTube Music",
|
"productName": "YouTube Music",
|
||||||
"version": "1.7.1",
|
"version": "1.7.2",
|
||||||
"description": "YouTube Music Desktop App - including custom plugins",
|
"description": "YouTube Music Desktop App - including custom plugins",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"repository": "th-ch/youtube-music",
|
"repository": "th-ch/youtube-music",
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
const { existsSync, promises, unlinkSync } = require("fs"); // used for caching
|
const { promises } = require("fs"); // used for caching
|
||||||
const path = require("path");
|
const path = require("path");
|
||||||
|
|
||||||
const { ElectronBlocker } = require("@cliqz/adblocker-electron");
|
const { ElectronBlocker } = require("@cliqz/adblocker-electron");
|
||||||
@ -13,17 +13,15 @@ const loadAdBlockerEngine = (
|
|||||||
cache = true,
|
cache = true,
|
||||||
additionalBlockLists = []
|
additionalBlockLists = []
|
||||||
) => {
|
) => {
|
||||||
const adBlockerCache = path.resolve(__dirname, "ad-blocker-engine.bin");
|
// Only use cache if no additional blocklists are passed
|
||||||
if (!cache && existsSync(adBlockerCache)) {
|
const cachingOptions =
|
||||||
unlinkSync(adBlockerCache);
|
cache && additionalBlockLists.length === 0
|
||||||
}
|
? {
|
||||||
const cachingOptions = cache
|
path: path.resolve(__dirname, "ad-blocker-engine.bin"),
|
||||||
? {
|
read: promises.readFile,
|
||||||
path: adBlockerCache,
|
write: promises.writeFile,
|
||||||
read: promises.readFile,
|
}
|
||||||
write: promises.writeFile,
|
: undefined;
|
||||||
}
|
|
||||||
: undefined;
|
|
||||||
|
|
||||||
ElectronBlocker.fromLists(
|
ElectronBlocker.fromLists(
|
||||||
fetch,
|
fetch,
|
||||||
|
|||||||
19
readme.md
19
readme.md
@ -1,11 +1,16 @@
|
|||||||
# YouTube Music
|
# YouTube Music
|
||||||
|
|
||||||
[](https://GitHub.com/th-ch/youtube-music/releases/)
|
<div align="center">
|
||||||
[](https://github.com/th-ch/youtube-music/blob/master/LICENSE)
|
|
||||||
[](https://github.com/sindresorhus/xo)
|
[](https://github.com/th-ch/youtube-music/releases/)
|
||||||
[](https://GitHub.com/th-ch/youtube-music/releases/)
|
[](https://github.com/th-ch/youtube-music/blob/master/LICENSE)
|
||||||
[](https://snyk.io/test/github/th-ch/youtube-music)
|
[](https://github.com/sindresorhus/xo)
|
||||||

|
[](https://GitHub.com/th-ch/youtube-music/releases/)
|
||||||
|
[](https://snyk.io/test/github/th-ch/youtube-music)
|
||||||
|
[](https://GitHub.com/th-ch/youtube-music/releases/)
|
||||||
|
[](https://aur.archlinux.org/packages/youtube-music-bin)
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
@ -18,7 +23,7 @@
|
|||||||
|
|
||||||
You can check out the [latest release](https://github.com/th-ch/youtube-music/releases/latest) to quickly find the latest version.
|
You can check out the [latest release](https://github.com/th-ch/youtube-music/releases/latest) to quickly find the latest version.
|
||||||
|
|
||||||
**Arch Linux**
|
### Arch Linux
|
||||||
|
|
||||||
Install the `youtube-music-bin` package from the AUR. For AUR installation instructions, take a look at this [wiki page](https://wiki.archlinux.org/index.php/Arch_User_Repository#Installing_packages).
|
Install the `youtube-music-bin` package from the AUR. For AUR installation instructions, take a look at this [wiki page](https://wiki.archlinux.org/index.php/Arch_User_Repository#Installing_packages).
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user