mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-10 10:11:46 +00:00
Compare commits
68 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 5ac356bf91 | |||
| 35ceb7e83e | |||
| 5c0cc08d80 | |||
| 0bf77e592a | |||
| ec3c1578d2 | |||
| e8ed580ecc | |||
| e2cc2628ae | |||
| 9e31e753f0 | |||
| af02b60ce3 | |||
| fbdae0452c | |||
| d68d73eb4c | |||
| 2de27d2e24 | |||
| 15591e24d7 | |||
| 715d59e3d4 | |||
| f71e0e9da9 | |||
| ba3779db07 | |||
| d99aa0242f | |||
| 3ea859de09 | |||
| 7473677477 | |||
| c3e2c13808 | |||
| 5074ba2f48 | |||
| a8b8f1079f | |||
| e52987df92 | |||
| 01fc965170 | |||
| ff71f29206 | |||
| a47c5144ac | |||
| 9b979b2273 | |||
| 81198192bb | |||
| c03a08e76a | |||
| 807e21eabf | |||
| 36f9d640df | |||
| 39f30b143b | |||
| 49497d0efb | |||
| 79c795927a | |||
| 66c5ce46ca | |||
| 22c7f70c93 | |||
| 467171a17e | |||
| 3022facbea | |||
| a67bf5ea43 | |||
| 3a1a3d4241 | |||
| 9197f4a0e1 | |||
| d21220693b | |||
| e07cac2406 | |||
| fd97576611 | |||
| 6ab01056e0 | |||
| 4dcbd2e7f0 | |||
| b94d0d4e8b | |||
| 7b20b9339d | |||
| 4d4a1f038b | |||
| e5ec79e345 | |||
| f4fe5c2a58 | |||
| a5130c1d3f | |||
| 8ab2da0482 | |||
| 1b54b19f3f | |||
| be7e6e431f | |||
| 6e42b097f8 | |||
| ef9cd8cd24 | |||
| 8f3e165917 | |||
| 33a11efe9a | |||
| 9a97436cd8 | |||
| f7935c0024 | |||
| 2b33d4e857 | |||
| ed16c35a57 | |||
| ae5b85d8d7 | |||
| 47b4414eb3 | |||
| e329bb2201 | |||
| 155ef9e5f5 | |||
| 4bac3ace18 |
38
config/defaults.js
Normal file
38
config/defaults.js
Normal file
@ -0,0 +1,38 @@
|
||||
const defaultConfig = {
|
||||
"window-size": {
|
||||
width: 1100,
|
||||
height: 550,
|
||||
},
|
||||
url: "https://music.youtube.com",
|
||||
options: {
|
||||
tray: false,
|
||||
appVisible: true,
|
||||
autoUpdates: true,
|
||||
hideMenu: false,
|
||||
startAtLogin: false,
|
||||
disableHardwareAcceleration: false,
|
||||
restartOnConfigChanges: false,
|
||||
},
|
||||
plugins: {
|
||||
// Enabled plugins
|
||||
navigation: {
|
||||
enabled: true,
|
||||
},
|
||||
shortcuts: {
|
||||
enabled: true,
|
||||
},
|
||||
adblocker: {
|
||||
enabled: true,
|
||||
cache: true,
|
||||
additionalBlockLists: [], // Additional list of filters, e.g "https://raw.githubusercontent.com/uBlockOrigin/uAssets/master/filters/filters.txt"
|
||||
},
|
||||
// Disabled plugins
|
||||
downloader: {
|
||||
enabled: false,
|
||||
ffmpegArgs: [], // e.g. ["-b:a", "192k"] for an audio bitrate of 192kb/s
|
||||
downloadFolder: undefined, // Custom download folder (absolute path)
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
module.exports = defaultConfig;
|
||||
21
config/index.js
Normal file
21
config/index.js
Normal file
@ -0,0 +1,21 @@
|
||||
const plugins = require("./plugins");
|
||||
const store = require("./store");
|
||||
|
||||
const set = (key, value) => {
|
||||
store.set(key, value);
|
||||
};
|
||||
|
||||
const get = (key) => {
|
||||
return store.get(key);
|
||||
};
|
||||
|
||||
module.exports = {
|
||||
get,
|
||||
set,
|
||||
edit: () => store.openInEditor(),
|
||||
watch: (cb) => {
|
||||
store.onDidChange("options", cb);
|
||||
store.onDidChange("plugins", cb);
|
||||
},
|
||||
plugins,
|
||||
};
|
||||
41
config/plugins.js
Normal file
41
config/plugins.js
Normal file
@ -0,0 +1,41 @@
|
||||
const store = require("./store");
|
||||
|
||||
function getEnabled() {
|
||||
const plugins = store.get("plugins");
|
||||
const enabledPlugins = Object.entries(plugins).filter(([plugin, options]) =>
|
||||
isEnabled(plugin)
|
||||
);
|
||||
return enabledPlugins;
|
||||
}
|
||||
|
||||
function isEnabled(plugin) {
|
||||
const pluginConfig = store.get("plugins")[plugin];
|
||||
return pluginConfig !== undefined && pluginConfig.enabled;
|
||||
}
|
||||
|
||||
function setOptions(plugin, options) {
|
||||
const plugins = store.get("plugins");
|
||||
store.set("plugins", {
|
||||
...plugins,
|
||||
[plugin]: {
|
||||
...plugins[plugin],
|
||||
...options,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
function enable(plugin) {
|
||||
setOptions(plugin, { enabled: true });
|
||||
}
|
||||
|
||||
function disable(plugin) {
|
||||
setOptions(plugin, { enabled: false });
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
isEnabled,
|
||||
getEnabled,
|
||||
enable,
|
||||
disable,
|
||||
setOptions,
|
||||
};
|
||||
40
config/store.js
Normal file
40
config/store.js
Normal file
@ -0,0 +1,40 @@
|
||||
const Store = require("electron-store");
|
||||
|
||||
const defaults = require("./defaults");
|
||||
|
||||
const migrations = {
|
||||
">=1.7.0": (store) => {
|
||||
const enabledPlugins = store.get("plugins");
|
||||
if (!Array.isArray(enabledPlugins)) {
|
||||
console.warn("Plugins are not in array format, cannot migrate");
|
||||
return;
|
||||
}
|
||||
|
||||
// Include custom options
|
||||
const plugins = {
|
||||
adblocker: {
|
||||
enabled: true,
|
||||
cache: true,
|
||||
additionalBlockLists: [],
|
||||
},
|
||||
downloader: {
|
||||
enabled: false,
|
||||
ffmpegArgs: [], // e.g. ["-b:a", "192k"] for an audio bitrate of 192kb/s
|
||||
downloadFolder: undefined, // Custom download folder (absolute path)
|
||||
},
|
||||
};
|
||||
enabledPlugins.forEach((enabledPlugin) => {
|
||||
plugins[enabledPlugin] = {
|
||||
...plugins[enabledPlugin],
|
||||
enabled: true,
|
||||
};
|
||||
});
|
||||
store.set("plugins", plugins);
|
||||
},
|
||||
};
|
||||
|
||||
module.exports = new Store({
|
||||
defaults,
|
||||
clearInvalidConfig: false,
|
||||
migrations,
|
||||
});
|
||||
75
index.js
75
index.js
@ -5,15 +5,8 @@ const electron = require("electron");
|
||||
const is = require("electron-is");
|
||||
const { autoUpdater } = require("electron-updater");
|
||||
|
||||
const config = require("./config");
|
||||
const { setApplicationMenu } = require("./menu");
|
||||
const {
|
||||
autoUpdate,
|
||||
getEnabledPlugins,
|
||||
isAppVisible,
|
||||
isTrayEnabled,
|
||||
store,
|
||||
startAtLogin,
|
||||
} = require("./store");
|
||||
const { fileExists, injectCSS } = require("./plugins/utils");
|
||||
const { isTesting } = require("./utils/testing");
|
||||
const { setUpTray } = require("./tray");
|
||||
@ -25,6 +18,12 @@ app.commandLine.appendSwitch(
|
||||
"--experimental-wasm-threads --experimental-wasm-bulk-memory"
|
||||
);
|
||||
app.allowRendererProcessReuse = true; // https://github.com/electron/electron/issues/18397
|
||||
if (config.get("options.disableHardwareAcceleration")) {
|
||||
if (is.dev()) {
|
||||
console.log("Disabling hardware acceleration");
|
||||
}
|
||||
app.disableHardwareAcceleration();
|
||||
}
|
||||
|
||||
// Adds debug features like hotkeys for triggering dev tools and reload
|
||||
require("electron-debug")();
|
||||
@ -55,19 +54,19 @@ function loadPlugins(win) {
|
||||
}
|
||||
});
|
||||
|
||||
getEnabledPlugins().forEach((plugin) => {
|
||||
config.plugins.getEnabled().forEach(([plugin, options]) => {
|
||||
console.log("Loaded plugin - " + plugin);
|
||||
const pluginPath = path.join(__dirname, "plugins", plugin, "back.js");
|
||||
fileExists(pluginPath, () => {
|
||||
const handle = require(pluginPath);
|
||||
handle(win);
|
||||
handle(win, options);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
function createMainWindow() {
|
||||
const windowSize = store.get("window-size");
|
||||
const windowMaximized = store.get("window-maximized");
|
||||
const windowSize = config.get("window-size");
|
||||
const windowMaximized = config.get("window-maximized");
|
||||
|
||||
const win = new electron.BrowserWindow({
|
||||
icon: icon,
|
||||
@ -85,30 +84,34 @@ function createMainWindow() {
|
||||
},
|
||||
frame: !is.macOS(),
|
||||
titleBarStyle: is.macOS() ? "hiddenInset" : "default",
|
||||
autoHideMenuBar: config.get("options.hideMenu"),
|
||||
});
|
||||
if (windowMaximized) {
|
||||
win.maximize();
|
||||
}
|
||||
|
||||
win.webContents.loadURL(store.get("url"));
|
||||
win.webContents.loadURL(config.get("url"));
|
||||
win.on("closed", onClosed);
|
||||
|
||||
win.on("move", () => {
|
||||
let position = win.getPosition();
|
||||
store.set("window-position", { x: position[0], y: position[1] });
|
||||
config.set("window-position", { x: position[0], y: position[1] });
|
||||
});
|
||||
|
||||
win.on("resize", () => {
|
||||
const windowSize = win.getSize();
|
||||
|
||||
store.set("window-maximized", win.isMaximized());
|
||||
config.set("window-maximized", win.isMaximized());
|
||||
if (!win.isMaximized()) {
|
||||
store.set("window-size", { width: windowSize[0], height: windowSize[1] });
|
||||
config.set("window-size", {
|
||||
width: windowSize[0],
|
||||
height: windowSize[1],
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
win.once("ready-to-show", () => {
|
||||
if (isAppVisible()) {
|
||||
if (config.get("options.appVisible")) {
|
||||
win.show();
|
||||
}
|
||||
});
|
||||
@ -133,7 +136,7 @@ app.on("browser-window-created", (event, win) => {
|
||||
win.webContents.on("did-navigate-in-page", () => {
|
||||
const url = win.webContents.getURL();
|
||||
if (url.startsWith("https://music.youtube.com")) {
|
||||
store.set("url", url);
|
||||
config.set("url", url);
|
||||
}
|
||||
});
|
||||
|
||||
@ -186,31 +189,51 @@ app.on("activate", () => {
|
||||
app.on("ready", () => {
|
||||
mainWindow = createMainWindow();
|
||||
setApplicationMenu(mainWindow);
|
||||
if (config.get("options.restartOnConfigChanges")) {
|
||||
config.watch(() => {
|
||||
app.relaunch();
|
||||
app.exit();
|
||||
});
|
||||
}
|
||||
setUpTray(app, mainWindow);
|
||||
|
||||
// Autostart at login
|
||||
app.setLoginItemSettings({
|
||||
openAtLogin: startAtLogin(),
|
||||
openAtLogin: config.get("options.startAtLogin"),
|
||||
});
|
||||
|
||||
if (!is.dev() && autoUpdate()) {
|
||||
if (!is.dev() && config.get("options.autoUpdates")) {
|
||||
autoUpdater.checkForUpdatesAndNotify();
|
||||
autoUpdater.on("update-available", () => {
|
||||
const downloadLink =
|
||||
"https://github.com/th-ch/youtube-music/releases/latest";
|
||||
const dialogOpts = {
|
||||
type: "info",
|
||||
buttons: ["OK"],
|
||||
buttons: ["OK", "Download", "Disable updates"],
|
||||
title: "Application Update",
|
||||
message: "A new version is available",
|
||||
detail:
|
||||
"A new version is available and can be downloaded at https://github.com/th-ch/youtube-music/releases/latest",
|
||||
detail: `A new version is available and can be downloaded at ${downloadLink}`,
|
||||
};
|
||||
electron.dialog.showMessageBox(dialogOpts);
|
||||
electron.dialog.showMessageBox(dialogOpts).then((dialogOutput) => {
|
||||
switch (dialogOutput.response) {
|
||||
// Download
|
||||
case 1:
|
||||
electron.shell.openExternal(downloadLink);
|
||||
break;
|
||||
// Disable updates
|
||||
case 2:
|
||||
config.set("options.autoUpdates", false);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
// Optimized for Mac OS X
|
||||
if (is.macOS()) {
|
||||
if (!isAppVisible()) {
|
||||
if (!config.get("options.appVisible")) {
|
||||
app.dock.hide();
|
||||
}
|
||||
}
|
||||
@ -220,7 +243,7 @@ app.on("ready", () => {
|
||||
forceQuit = true;
|
||||
});
|
||||
|
||||
if (is.macOS() || isTrayEnabled()) {
|
||||
if (is.macOS() || config.get("options.tray")) {
|
||||
mainWindow.on("close", (event) => {
|
||||
// Hide the window instead of quitting (quit is available in tray options)
|
||||
if (!forceQuit) {
|
||||
|
||||
112
menu.js
112
menu.js
@ -2,34 +2,34 @@ const { app, Menu } = require("electron");
|
||||
const is = require("electron-is");
|
||||
|
||||
const { getAllPlugins } = require("./plugins/utils");
|
||||
const {
|
||||
isPluginEnabled,
|
||||
enablePlugin,
|
||||
disablePlugin,
|
||||
autoUpdate,
|
||||
isAppVisible,
|
||||
isTrayEnabled,
|
||||
setOptions,
|
||||
startAtLogin,
|
||||
} = require("./store");
|
||||
const config = require("./config");
|
||||
|
||||
const mainMenuTemplate = (win) => [
|
||||
{
|
||||
label: "Plugins",
|
||||
submenu: getAllPlugins().map((plugin) => {
|
||||
return {
|
||||
label: plugin,
|
||||
type: "checkbox",
|
||||
checked: isPluginEnabled(plugin),
|
||||
click: (item) => {
|
||||
if (item.checked) {
|
||||
enablePlugin(plugin);
|
||||
} else {
|
||||
disablePlugin(plugin);
|
||||
}
|
||||
submenu: [
|
||||
...getAllPlugins().map((plugin) => {
|
||||
return {
|
||||
label: plugin,
|
||||
type: "checkbox",
|
||||
checked: config.plugins.isEnabled(plugin),
|
||||
click: (item) => {
|
||||
if (item.checked) {
|
||||
config.plugins.enable(plugin);
|
||||
} else {
|
||||
config.plugins.disable(plugin);
|
||||
}
|
||||
},
|
||||
};
|
||||
}),
|
||||
{ type: "separator" },
|
||||
{
|
||||
label: "Advanced options",
|
||||
click: () => {
|
||||
config.edit();
|
||||
},
|
||||
};
|
||||
}),
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
label: "Options",
|
||||
@ -37,11 +37,39 @@ const mainMenuTemplate = (win) => [
|
||||
{
|
||||
label: "Auto-update",
|
||||
type: "checkbox",
|
||||
checked: autoUpdate(),
|
||||
checked: config.get("options.autoUpdates"),
|
||||
click: (item) => {
|
||||
setOptions({ autoUpdates: item.checked });
|
||||
config.set("options.autoUpdates", item.checked);
|
||||
},
|
||||
},
|
||||
{
|
||||
label: "Disable hardware acceleration",
|
||||
type: "checkbox",
|
||||
checked: config.get("options.disableHardwareAcceleration"),
|
||||
click: (item) => {
|
||||
config.set("options.disableHardwareAcceleration", item.checked);
|
||||
},
|
||||
},
|
||||
{
|
||||
label: "Restart on config changes",
|
||||
type: "checkbox",
|
||||
checked: config.get("options.restartOnConfigChanges"),
|
||||
click: (item) => {
|
||||
config.set("options.restartOnConfigChanges", item.checked);
|
||||
},
|
||||
},
|
||||
...(is.windows() || is.linux()
|
||||
? [
|
||||
{
|
||||
label: "Hide menu",
|
||||
type: "checkbox",
|
||||
checked: config.get("options.hideMenu"),
|
||||
click: (item) => {
|
||||
config.set("options.hideMenu", item.checked);
|
||||
},
|
||||
},
|
||||
]
|
||||
: []),
|
||||
...(is.windows() || is.macOS()
|
||||
? // Only works on Win/Mac
|
||||
// https://www.electronjs.org/docs/api/app#appsetloginitemsettingssettings-macos-windows
|
||||
@ -49,9 +77,9 @@ const mainMenuTemplate = (win) => [
|
||||
{
|
||||
label: "Start at login",
|
||||
type: "checkbox",
|
||||
checked: startAtLogin(),
|
||||
checked: config.get("options.startAtLogin"),
|
||||
click: (item) => {
|
||||
setOptions({ startAtLogin: item.checked });
|
||||
config.set("options.startAtLogin", item.checked);
|
||||
},
|
||||
},
|
||||
]
|
||||
@ -62,23 +90,35 @@ const mainMenuTemplate = (win) => [
|
||||
{
|
||||
label: "Disabled",
|
||||
type: "radio",
|
||||
checked: !isTrayEnabled(),
|
||||
click: () => setOptions({ tray: false, appVisible: true }),
|
||||
checked: !config.get("options.tray"),
|
||||
click: () => {
|
||||
config.set("options.tray", false);
|
||||
config.set("options.appVisible", true);
|
||||
},
|
||||
},
|
||||
{
|
||||
label: "Enabled + app visible",
|
||||
type: "radio",
|
||||
checked: isTrayEnabled() && isAppVisible(),
|
||||
click: () => setOptions({ tray: true, appVisible: true }),
|
||||
checked:
|
||||
config.get("options.tray") && config.get("options.appVisible"),
|
||||
click: () => {
|
||||
config.set("options.tray", true);
|
||||
config.set("options.appVisible", true);
|
||||
},
|
||||
},
|
||||
{
|
||||
label: "Enabled + app hidden",
|
||||
type: "radio",
|
||||
checked: isTrayEnabled() && !isAppVisible(),
|
||||
click: () => setOptions({ tray: true, appVisible: false }),
|
||||
checked:
|
||||
config.get("options.tray") && !config.get("options.appVisible"),
|
||||
click: () => {
|
||||
config.set("options.tray", true);
|
||||
config.set("options.appVisible", false);
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
{ type: "separator" },
|
||||
{
|
||||
label: "Toggle DevTools",
|
||||
// Cannot use "toggleDevTools" role in MacOS
|
||||
@ -92,6 +132,12 @@ const mainMenuTemplate = (win) => [
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
label: "Advanced options",
|
||||
click: () => {
|
||||
config.edit();
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
];
|
||||
|
||||
16
package.json
16
package.json
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "youtube-music",
|
||||
"productName": "YouTube Music",
|
||||
"version": "1.6.3",
|
||||
"version": "1.8.0",
|
||||
"description": "YouTube Music Desktop App - including custom plugins",
|
||||
"license": "MIT",
|
||||
"repository": "th-ch/youtube-music",
|
||||
@ -22,7 +22,8 @@
|
||||
},
|
||||
"linux": {
|
||||
"icon": "assets/generated/icons/png",
|
||||
"category": "AudioVideo"
|
||||
"category": "AudioVideo",
|
||||
"target": ["AppImage", "snap", "freebsd", "deb", "rpm"]
|
||||
}
|
||||
},
|
||||
"scripts": {
|
||||
@ -33,6 +34,7 @@
|
||||
"postinstall": "yarn run icon && yarn run plugins",
|
||||
"clean": "rimraf dist",
|
||||
"build": "yarn run clean && electron-builder --win --mac --linux",
|
||||
"build:linux": "yarn run clean && electron-builder --linux",
|
||||
"build:mac": "yarn run clean && electron-builder --mac",
|
||||
"build:win": "yarn run clean && electron-builder --win",
|
||||
"plugins": "yarn run plugin:adblocker && yarn run plugin:autoconfirm",
|
||||
@ -47,19 +49,19 @@
|
||||
"npm": "Please use yarn and not npm"
|
||||
},
|
||||
"dependencies": {
|
||||
"@cliqz/adblocker-electron": "^1.18.6",
|
||||
"@ffmpeg/core": "^0.8.4",
|
||||
"@ffmpeg/ffmpeg": "^0.9.5",
|
||||
"@cliqz/adblocker-electron": "^1.19.0",
|
||||
"@ffmpeg/core": "^0.8.5",
|
||||
"@ffmpeg/ffmpeg": "^0.9.6",
|
||||
"YoutubeNonStop": "git://github.com/lawfx/YoutubeNonStop.git#v0.8.0",
|
||||
"downloads-folder": "^3.0.1",
|
||||
"electron-debug": "^3.1.0",
|
||||
"electron-is": "^3.0.0",
|
||||
"electron-localshortcut": "^3.2.1",
|
||||
"electron-store": "^6.0.1",
|
||||
"electron-updater": "^4.3.5",
|
||||
"electron-updater": "^4.3.6",
|
||||
"filenamify": "^4.2.0",
|
||||
"node-fetch": "^2.6.1",
|
||||
"ytdl-core": "^4.0.3"
|
||||
"ytdl-core": "^4.1.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"electron": "^10.1.3",
|
||||
|
||||
@ -1,2 +1,8 @@
|
||||
const { loadAdBlockerEngine } = require("./blocker");
|
||||
module.exports = (win) => loadAdBlockerEngine(win.webContents.session);
|
||||
module.exports = (win, options) =>
|
||||
loadAdBlockerEngine(
|
||||
win.webContents.session,
|
||||
options.cache,
|
||||
options.additionalBlockLists,
|
||||
options.disableDefaultLists
|
||||
);
|
||||
|
||||
@ -6,19 +6,32 @@ const fetch = require("node-fetch");
|
||||
|
||||
const SOURCES = [
|
||||
"https://raw.githubusercontent.com/kbinani/adblock-youtube-ads/master/signed.txt",
|
||||
// uBlock Origin
|
||||
"https://raw.githubusercontent.com/uBlockOrigin/uAssets/master/filters/filters.txt",
|
||||
"https://raw.githubusercontent.com/uBlockOrigin/uAssets/master/filters/filters-2020.txt",
|
||||
];
|
||||
|
||||
const loadAdBlockerEngine = (session = undefined) =>
|
||||
ElectronBlocker.fromLists(
|
||||
fetch,
|
||||
SOURCES,
|
||||
{},
|
||||
{
|
||||
path: path.resolve(__dirname, "ad-blocker-engine.bin"),
|
||||
read: promises.readFile,
|
||||
write: promises.writeFile,
|
||||
}
|
||||
)
|
||||
const loadAdBlockerEngine = (
|
||||
session = undefined,
|
||||
cache = true,
|
||||
additionalBlockLists = [],
|
||||
disableDefaultLists = false
|
||||
) => {
|
||||
// Only use cache if no additional blocklists are passed
|
||||
const cachingOptions =
|
||||
cache && additionalBlockLists.length === 0
|
||||
? {
|
||||
path: path.resolve(__dirname, "ad-blocker-engine.bin"),
|
||||
read: promises.readFile,
|
||||
write: promises.writeFile,
|
||||
}
|
||||
: undefined;
|
||||
const lists = [
|
||||
...(disableDefaultLists ? [] : SOURCES),
|
||||
...additionalBlockLists,
|
||||
];
|
||||
|
||||
ElectronBlocker.fromLists(fetch, lists, {}, cachingOptions)
|
||||
.then((blocker) => {
|
||||
if (session) {
|
||||
blocker.enableBlockingInSession(session);
|
||||
@ -27,6 +40,7 @@ const loadAdBlockerEngine = (session = undefined) =>
|
||||
}
|
||||
})
|
||||
.catch((err) => console.log("Error loading adBlocker engine", err));
|
||||
};
|
||||
|
||||
module.exports = { loadAdBlockerEngine };
|
||||
if (require.main === module) {
|
||||
|
||||
4
plugins/adblocker/front.js
Normal file
4
plugins/adblocker/front.js
Normal file
@ -0,0 +1,4 @@
|
||||
module.exports = () => {
|
||||
// Preload adblocker to inject scripts/styles
|
||||
require("@cliqz/adblocker-electron-preload/dist/preload.cjs");
|
||||
};
|
||||
@ -7,6 +7,7 @@ let progress = null;
|
||||
const downloadButton = ElementFromFile(
|
||||
templatePath(__dirname, "download.html")
|
||||
);
|
||||
let pluginOptions = {};
|
||||
|
||||
const observer = new MutationObserver((mutations, observer) => {
|
||||
if (!menu) {
|
||||
@ -43,11 +44,13 @@ global.download = () => {
|
||||
triggerAction(CHANNEL, ACTIONS.ERROR, error);
|
||||
reinit();
|
||||
},
|
||||
reinit
|
||||
reinit,
|
||||
pluginOptions
|
||||
);
|
||||
};
|
||||
|
||||
function observeMenu() {
|
||||
function observeMenu(options) {
|
||||
pluginOptions = { ...pluginOptions, ...options };
|
||||
observer.observe(document, {
|
||||
childList: true,
|
||||
subtree: true,
|
||||
|
||||
@ -19,7 +19,13 @@ const ffmpeg = createFFmpeg({
|
||||
progress: () => {}, // console.log,
|
||||
});
|
||||
|
||||
const downloadVideoToMP3 = (videoUrl, sendFeedback, sendError, reinit) => {
|
||||
const downloadVideoToMP3 = (
|
||||
videoUrl,
|
||||
sendFeedback,
|
||||
sendError,
|
||||
reinit,
|
||||
options
|
||||
) => {
|
||||
sendFeedback("Downloading…");
|
||||
|
||||
let videoName = "YouTube Music - Unknown title";
|
||||
@ -29,6 +35,7 @@ const downloadVideoToMP3 = (videoUrl, sendFeedback, sendError, reinit) => {
|
||||
filter: "audioonly",
|
||||
quality: "highestaudio",
|
||||
highWaterMark: 32 * 1024 * 1024, // 32 MB
|
||||
requestOptions: { maxRetries: 3 },
|
||||
});
|
||||
} catch (err) {
|
||||
sendError(err);
|
||||
@ -53,11 +60,18 @@ const downloadVideoToMP3 = (videoUrl, sendFeedback, sendError, reinit) => {
|
||||
.on("error", sendError)
|
||||
.on("end", () => {
|
||||
const buffer = Buffer.concat(chunks);
|
||||
toMP3(videoName, buffer, sendFeedback, sendError, reinit);
|
||||
toMP3(videoName, buffer, sendFeedback, sendError, reinit, options);
|
||||
});
|
||||
};
|
||||
|
||||
const toMP3 = async (videoName, buffer, sendFeedback, sendError, reinit) => {
|
||||
const toMP3 = async (
|
||||
videoName,
|
||||
buffer,
|
||||
sendFeedback,
|
||||
sendError,
|
||||
reinit,
|
||||
options
|
||||
) => {
|
||||
const safeVideoName = randomBytes(32).toString("hex");
|
||||
|
||||
try {
|
||||
@ -70,11 +84,17 @@ const toMP3 = async (videoName, buffer, sendFeedback, sendError, reinit) => {
|
||||
ffmpeg.FS("writeFile", safeVideoName, buffer);
|
||||
|
||||
sendFeedback("Converting…");
|
||||
await ffmpeg.run("-i", safeVideoName, safeVideoName + ".mp3");
|
||||
await ffmpeg.run(
|
||||
"-i",
|
||||
safeVideoName,
|
||||
...options.ffmpegArgs,
|
||||
safeVideoName + ".mp3"
|
||||
);
|
||||
|
||||
const folder = options.downloadFolder || downloadsFolder();
|
||||
const filename = filenamify(videoName + ".mp3", { replacement: "_" });
|
||||
writeFileSync(
|
||||
join(downloadsFolder(), filename),
|
||||
join(folder, filename),
|
||||
ffmpeg.FS("readFile", safeVideoName + ".mp3")
|
||||
);
|
||||
|
||||
|
||||
110
plugins/touchbar/back.js
Normal file
110
plugins/touchbar/back.js
Normal file
@ -0,0 +1,110 @@
|
||||
const {
|
||||
TouchBar, nativeImage
|
||||
} = require('electron');
|
||||
const {
|
||||
TouchBarButton,
|
||||
TouchBarLabel,
|
||||
TouchBarSpacer,
|
||||
TouchBarSegmentedControl,
|
||||
TouchBarScrubber
|
||||
} = TouchBar;
|
||||
const fetch = require('node-fetch');
|
||||
|
||||
// This selects the song title
|
||||
const titleSelector = '.title.style-scope.ytmusic-player-bar';
|
||||
|
||||
// This selects the song image
|
||||
const imageSelector = '#layout > ytmusic-player-bar > div.middle-controls.style-scope.ytmusic-player-bar > img';
|
||||
|
||||
// These keys will be used to go backwards, pause, skip songs, like songs, dislike songs
|
||||
const keys = ['k', 'space', 'j', '_', '+'];
|
||||
|
||||
const presskey = (window, key) => {
|
||||
window.webContents.sendInputEvent({
|
||||
type: 'keydown',
|
||||
keyCode: key
|
||||
});
|
||||
};
|
||||
|
||||
// Grab the title using the selector
|
||||
const getTitle = win => {
|
||||
return win.webContents.executeJavaScript(
|
||||
'document.querySelector(\'' + titleSelector + '\').innerText'
|
||||
).catch(error => {
|
||||
console.log(error);
|
||||
});
|
||||
};
|
||||
|
||||
// Grab the image src using the selector
|
||||
const getImage = win => {
|
||||
return win.webContents.executeJavaScript(
|
||||
'document.querySelector(\'' + imageSelector + '\').src'
|
||||
).catch(error => {
|
||||
console.log(error);
|
||||
});
|
||||
};
|
||||
|
||||
module.exports = win => {
|
||||
// Songtitle label
|
||||
const songTitle = new TouchBarLabel({
|
||||
label: ''
|
||||
});
|
||||
|
||||
// This will store the song image once available
|
||||
const songImage = {};
|
||||
|
||||
// The song control buttons (keys to press are in the same order)
|
||||
const buttons = new TouchBarSegmentedControl({
|
||||
mode: 'buttons',
|
||||
segments: [
|
||||
new TouchBarButton({
|
||||
label: '⏮'
|
||||
}),
|
||||
new TouchBarButton({
|
||||
label: '⏯️'
|
||||
}),
|
||||
new TouchBarButton({
|
||||
label: '⏭'
|
||||
}),
|
||||
new TouchBarButton({
|
||||
label: '👎'
|
||||
}),
|
||||
new TouchBarButton({
|
||||
label: '👍'
|
||||
})
|
||||
],
|
||||
change: i => presskey(win, keys[i])
|
||||
});
|
||||
|
||||
// This is the touchbar object, this combines everything with proper layout
|
||||
const touchBar = new TouchBar({
|
||||
items: [
|
||||
new TouchBarScrubber({
|
||||
items: [songImage, songTitle],
|
||||
continuous: false
|
||||
}),
|
||||
new TouchBarSpacer({
|
||||
size: 'flexible'
|
||||
}),
|
||||
buttons
|
||||
]
|
||||
});
|
||||
|
||||
// If the page title changes, update touchbar and song title
|
||||
win.on('page-title-updated', async () => {
|
||||
// Set the song title
|
||||
songTitle.label = await getTitle(win);
|
||||
|
||||
// Get image source
|
||||
const imageSrc = await getImage(win);
|
||||
|
||||
// Fetch and set song image
|
||||
await fetch(imageSrc)
|
||||
.then(response => response.buffer())
|
||||
.then(data => {
|
||||
songImage.icon = nativeImage.createFromBuffer(data).resize({height: 23});
|
||||
});
|
||||
|
||||
win.setTouchBar(touchBar);
|
||||
});
|
||||
};
|
||||
16
preload.js
16
preload.js
@ -2,31 +2,31 @@ const path = require("path");
|
||||
|
||||
const { remote } = require("electron");
|
||||
|
||||
const { getEnabledPlugins, store } = require("./store");
|
||||
const { fileExists } = require("./plugins/utils");
|
||||
const config = require("./config");
|
||||
const { fileExists } = require("./plugins/utils");
|
||||
|
||||
const plugins = getEnabledPlugins();
|
||||
const plugins = config.plugins.getEnabled();
|
||||
|
||||
plugins.forEach(plugin => {
|
||||
plugins.forEach(([plugin, options]) => {
|
||||
const pluginPath = path.join(__dirname, "plugins", plugin, "actions.js");
|
||||
fileExists(pluginPath, () => {
|
||||
const actions = require(pluginPath).global || {};
|
||||
Object.keys(actions).forEach(actionName => {
|
||||
Object.keys(actions).forEach((actionName) => {
|
||||
global[actionName] = actions[actionName];
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
document.addEventListener("DOMContentLoaded", () => {
|
||||
plugins.forEach(plugin => {
|
||||
plugins.forEach(([plugin, options]) => {
|
||||
const pluginPath = path.join(__dirname, "plugins", plugin, "front.js");
|
||||
fileExists(pluginPath, () => {
|
||||
const run = require(pluginPath);
|
||||
run();
|
||||
run(options);
|
||||
});
|
||||
});
|
||||
|
||||
// Add action for reloading
|
||||
global.reload = () =>
|
||||
remote.getCurrentWindow().webContents.loadURL(store.get("url"));
|
||||
remote.getCurrentWindow().webContents.loadURL(config.get("url"));
|
||||
});
|
||||
|
||||
30
readme.md
30
readme.md
@ -1,13 +1,24 @@
|
||||
# YouTube Music
|
||||
|
||||
[](https://GitHub.com/th-ch/youtube-music/releases/)
|
||||
[](https://github.com/th-ch/youtube-music/blob/master/LICENSE)
|
||||
[](https://github.com/sindresorhus/xo)
|
||||
[](https://GitHub.com/th-ch/youtube-music/releases/)
|
||||
[](https://snyk.io/test/github/th-ch/youtube-music)
|
||||

|
||||
<div align="center">
|
||||
|
||||

|
||||
[](https://github.com/th-ch/youtube-music/releases/)
|
||||
[](https://github.com/th-ch/youtube-music/blob/master/LICENSE)
|
||||
[](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>
|
||||
|
||||

|
||||
|
||||
<div align="center">
|
||||
<a href="https://github.com/th-ch/youtube-music/releases/latest">
|
||||
<img src="web/youtube-music.svg" width="400" height="100">
|
||||
</a>
|
||||
</div>
|
||||
|
||||
**Electron wrapper around YouTube Music featuring:**
|
||||
|
||||
@ -18,6 +29,10 @@
|
||||
|
||||
You can check out the [latest release](https://github.com/th-ch/youtube-music/releases/latest) to quickly find the latest version.
|
||||
|
||||
### 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).
|
||||
|
||||
## Available plugins:
|
||||
|
||||
- **Ad Blocker**: block all ads and tracking out of the box
|
||||
@ -28,6 +43,7 @@ You can check out the [latest release](https://github.com/th-ch/youtube-music/re
|
||||
- **Auto confirm when paused**: when the "Continue Watching?" modal appears, automatically click "Yes"
|
||||
- **Hide video player**: no video in the interface when playing music
|
||||
- **Notifications**: display a notification when a song starts playing
|
||||
- **Touchbar**: custom TouchBar layout for macOS
|
||||
|
||||
## Dev
|
||||
|
||||
|
||||
@ -1,35 +0,0 @@
|
||||
const Store = require("electron-store");
|
||||
const plugins = require("./plugins");
|
||||
|
||||
const store = new Store({
|
||||
defaults: {
|
||||
"window-size": {
|
||||
width: 1100,
|
||||
height: 550,
|
||||
},
|
||||
url: "https://music.youtube.com",
|
||||
plugins: ["navigation", "shortcuts", "adblocker"],
|
||||
options: {
|
||||
tray: false,
|
||||
appVisible: true,
|
||||
autoUpdates: true,
|
||||
startAtLogin: false,
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
module.exports = {
|
||||
store: store,
|
||||
// Plugins
|
||||
isPluginEnabled: plugin => plugins.isEnabled(store, plugin),
|
||||
getEnabledPlugins: () => plugins.getEnabledPlugins(store),
|
||||
enablePlugin: plugin => plugins.enablePlugin(store, plugin),
|
||||
disablePlugin: plugin => plugins.disablePlugin(store, plugin),
|
||||
// Options
|
||||
setOptions: options =>
|
||||
store.set("options", { ...store.get("options"), ...options }),
|
||||
isTrayEnabled: () => store.get("options.tray"),
|
||||
isAppVisible: () => store.get("options.appVisible"),
|
||||
autoUpdate: () => store.get("options.autoUpdates"),
|
||||
startAtLogin: () => store.get("options.startAtLogin"),
|
||||
};
|
||||
@ -1,31 +0,0 @@
|
||||
function getEnabledPlugins(store) {
|
||||
return store.get("plugins");
|
||||
}
|
||||
|
||||
function isEnabled(store, plugin) {
|
||||
return store.get("plugins").indexOf(plugin) > -1;
|
||||
}
|
||||
|
||||
function enablePlugin(store, plugin) {
|
||||
let plugins = getEnabledPlugins(store);
|
||||
if (plugins.indexOf(plugin) === -1) {
|
||||
plugins.push(plugin);
|
||||
store.set("plugins", plugins);
|
||||
}
|
||||
}
|
||||
|
||||
function disablePlugin(store, plugin) {
|
||||
let plugins = getEnabledPlugins(store);
|
||||
let index = plugins.indexOf(plugin);
|
||||
if (index > -1) {
|
||||
plugins.splice(index, 1);
|
||||
store.set("plugins", plugins);
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
isEnabled : isEnabled,
|
||||
getEnabledPlugins: getEnabledPlugins,
|
||||
enablePlugin : enablePlugin,
|
||||
disablePlugin : disablePlugin
|
||||
};
|
||||
4
tray.js
4
tray.js
@ -2,15 +2,15 @@ const path = require("path");
|
||||
|
||||
const { Menu, nativeImage, Tray } = require("electron");
|
||||
|
||||
const config = require("./config");
|
||||
const { mainMenuTemplate } = require("./menu");
|
||||
const { isTrayEnabled } = require("./store");
|
||||
const { clickInYoutubeMusic } = require("./utils/youtube-music");
|
||||
|
||||
// Prevent tray being garbage collected
|
||||
let tray;
|
||||
|
||||
module.exports.setUpTray = (app, win) => {
|
||||
if (!isTrayEnabled()) {
|
||||
if (!config.get("options.tray")) {
|
||||
tray = undefined;
|
||||
return;
|
||||
}
|
||||
|
||||
|
Before Width: | Height: | Size: 816 KiB After Width: | Height: | Size: 816 KiB |
379
web/youtube-music.svg
Normal file
379
web/youtube-music.svg
Normal file
@ -0,0 +1,379 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 800 300" width="800" height="300">
|
||||
<foreignObject width="100%" height="100%">
|
||||
<div xmlns="http://www.w3.org/1999/xhtml">
|
||||
<style>
|
||||
.container {
|
||||
width: 100%;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
a {
|
||||
text-decoration: none;
|
||||
}
|
||||
h1.main, p.demos {
|
||||
-webkit-animation-delay: 18s;
|
||||
-moz-animation-delay: 18s;
|
||||
-ms-animation-delay: 18s;
|
||||
animation-delay: 18s;
|
||||
}
|
||||
.container {
|
||||
position: fixed;
|
||||
top: 0px;
|
||||
left: 0px;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
z-index: 0;
|
||||
}
|
||||
.content {
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
left: 0px;
|
||||
top: 0px;
|
||||
z-index: 1000;
|
||||
}
|
||||
.container h2 {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
line-height: 100px;
|
||||
height: 90px;
|
||||
margin-top: -90px;
|
||||
font-size: 90px;
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
color: transparent;
|
||||
-webkit-animation: blurFadeInOut 3s ease-in backwards;
|
||||
-moz-animation: blurFadeInOut 3s ease-in backwards;
|
||||
-ms-animation: blurFadeInOut 3s ease-in backwards;
|
||||
animation: blurFadeInOut 3s ease-in backwards;
|
||||
}
|
||||
.container h2.frame-1 {
|
||||
-webkit-animation-delay: 0s;
|
||||
-moz-animation-delay: 0s;
|
||||
-ms-animation-delay: 0s;
|
||||
animation-delay: 0s;
|
||||
}
|
||||
.container h2.frame-2 {
|
||||
-webkit-animation-delay: 3s;
|
||||
-moz-animation-delay: 3s;
|
||||
-ms-animation-delay: 3s;
|
||||
animation-delay: 3s;
|
||||
}
|
||||
.container h2.frame-3 {
|
||||
-webkit-animation-delay: 6s;
|
||||
-moz-animation-delay: 6s;
|
||||
-ms-animation-delay: 6s;
|
||||
animation-delay: 6s;
|
||||
}
|
||||
.container h2.frame-4 {
|
||||
-webkit-animation-delay: 9s;
|
||||
-moz-animation-delay: 9s;
|
||||
-ms-animation-delay: 9s;
|
||||
animation-delay: 9s;
|
||||
}
|
||||
.container h2.frame-5 {
|
||||
-webkit-animation: none;
|
||||
-moz-animation: none;
|
||||
-ms-animation: none;
|
||||
animation: none;
|
||||
color: transparent;
|
||||
text-shadow: 0px 0px 1px #fff;
|
||||
}
|
||||
.container h2.frame-5 span {
|
||||
-webkit-animation: blurFadeIn 3s ease-in 12s backwards;
|
||||
-moz-animation: blurFadeIn 1s ease-in 12s backwards;
|
||||
-ms-animation: blurFadeIn 3s ease-in 12s backwards;
|
||||
animation: blurFadeIn 3s ease-in 12s backwards;
|
||||
color: transparent;
|
||||
text-shadow: 0px 0px 1px #fff;
|
||||
}
|
||||
.container h2.frame-5 span:nth-child(2) {
|
||||
-webkit-animation-delay: 13s;
|
||||
-moz-animation-delay: 13s;
|
||||
-ms-animation-delay: 13s;
|
||||
animation-delay: 13s;
|
||||
}
|
||||
.container h2.frame-5 span:nth-child(3) {
|
||||
-webkit-animation-delay: 14s;
|
||||
-moz-animation-delay: 14s;
|
||||
-ms-animation-delay: 14s;
|
||||
animation-delay: 14s;
|
||||
}
|
||||
.circle-link {
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
|
||||
bottom: 50px;
|
||||
margin-left: -100px;
|
||||
text-align: center;
|
||||
line-height: 200px;
|
||||
width: 200px;
|
||||
height: 200px;
|
||||
background: #cc0000;
|
||||
color: #fff;
|
||||
font-size: 25px;
|
||||
-webkit-border-radius: 50%;
|
||||
-moz-border-radius: 50%;
|
||||
border-radius: 50%;
|
||||
box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.1);
|
||||
-webkit-animation: fadeInRotate 0.8s ease 16s backwards;
|
||||
-moz-animation: fadeInRotate 0.8s ease 16s backwards;
|
||||
-ms-animation: fadeInRotate 0.8s ease 16s backwards;
|
||||
animation: fadeInRotate 0.8s ease 16s backwards;
|
||||
-webkit-transform: scale(1) rotate(0deg);
|
||||
-moz-transform: scale(1) rotate(0deg);
|
||||
-o-transform: scale(1) rotate(0deg);
|
||||
-ms-transform: scale(1) rotate(0deg);
|
||||
transform: scale(1) rotate(0deg);
|
||||
|
||||
background-repeat: no-repeat;
|
||||
background-position: -250px -250px, 0 0;
|
||||
|
||||
background-image: -webkit-linear-gradient(
|
||||
top left,
|
||||
rgba(255, 255, 255, 0.2) 0%,
|
||||
rgba(255, 255, 255, 0.2) 37%,
|
||||
rgba(255, 255, 255, 0.8) 45%,
|
||||
rgba(255, 255, 255, 0.0) 50%
|
||||
);
|
||||
background-image: -moz-linear-gradient(
|
||||
0 0,
|
||||
rgba(255, 255, 255, 0.2) 0%,
|
||||
rgba(255, 255, 255, 0.2) 37%,
|
||||
rgba(255, 255, 255, 0.8) 45%,
|
||||
rgba(255, 255, 255, 0.0) 50%
|
||||
);
|
||||
background-image: -o-linear-gradient(
|
||||
0 0,
|
||||
rgba(255, 255, 255, 0.2) 0%,
|
||||
rgba(255, 255, 255, 0.2) 37%,
|
||||
rgba(255, 255, 255, 0.8) 45%,
|
||||
rgba(255, 255, 255, 0.0) 50%
|
||||
);
|
||||
background-image: linear-gradient(
|
||||
0 0,
|
||||
rgba(255, 255, 255, 0.2) 0%,
|
||||
rgba(255, 255, 255, 0.2) 37%,
|
||||
rgba(255, 255, 255, 0.8) 45%,
|
||||
rgba(255, 255, 255, 0.0) 50%
|
||||
);
|
||||
|
||||
-moz-background-size: 250% 250%, 100% 100%;
|
||||
background-size: 250% 250%, 100% 100%;
|
||||
|
||||
-webkit-transition: background-position 0s ease;
|
||||
-moz-transition: background-position 0s ease;
|
||||
-o-transition: background-position 0s ease;
|
||||
transition: background-position 0s ease;
|
||||
}
|
||||
.circle-link:hover {
|
||||
background-position: 0 0, 0 0;
|
||||
|
||||
-webkit-transition-duration: 0.5s;
|
||||
-moz-transition-duration: 0.5s;
|
||||
transition-duration: 0.5s;
|
||||
}
|
||||
|
||||
@-webkit-keyframes blurFadeInOut {
|
||||
0% {
|
||||
opacity: 0;
|
||||
color: #cc0000;
|
||||
text-shadow: 0px 0px 40px #fff;
|
||||
-webkit-transform: scale(1.3);
|
||||
}
|
||||
20%, 75% {
|
||||
opacity: 1;
|
||||
color: #cc0000;
|
||||
text-shadow: 0px 0px 1px #fff;
|
||||
-webkit-transform: scale(1);
|
||||
}
|
||||
100% {
|
||||
opacity: 0;
|
||||
text-shadow: 0px 0px 50px #fff;
|
||||
-webkit-transform: scale(0);
|
||||
}
|
||||
}
|
||||
@-webkit-keyframes blurFadeIn {
|
||||
0% {
|
||||
opacity: 0;
|
||||
color: #cc0000;
|
||||
text-shadow: 0px 0px 40px #fff;
|
||||
-webkit-transform: scale(1.3);
|
||||
}
|
||||
50% {
|
||||
opacity: 0.5;
|
||||
color: #cc0000;
|
||||
text-shadow: 0px 0px 10px #fff;
|
||||
-webkit-transform: scale(1.1);
|
||||
}
|
||||
100% {
|
||||
opacity: 1;
|
||||
text-shadow: 0px 0px 1px #fff;
|
||||
-webkit-transform: scale(1);
|
||||
}
|
||||
}
|
||||
@-webkit-keyframes fadeInBack {
|
||||
0% {
|
||||
opacity: 0;
|
||||
-webkit-transform: scale(0);
|
||||
}
|
||||
50% {
|
||||
opacity: 0.4;
|
||||
-webkit-transform: scale(2);
|
||||
}
|
||||
100% {
|
||||
opacity: 0.2;
|
||||
-webkit-transform: scale(5);
|
||||
}
|
||||
}
|
||||
@-webkit-keyframes fadeInRotate {
|
||||
0% {
|
||||
opacity: 0;
|
||||
-webkit-transform: scale(0) rotate(360deg);
|
||||
}
|
||||
100% {
|
||||
opacity: 1;
|
||||
-webkit-transform: scale(1) rotate(0deg);
|
||||
}
|
||||
}
|
||||
|
||||
@-moz-keyframes blurFadeInOut {
|
||||
0% {
|
||||
opacity: 0;
|
||||
color: #cc0000;
|
||||
text-shadow: 0px 0px 40px #fff;
|
||||
-moz-transform: scale(1.3);
|
||||
}
|
||||
20%, 75% {
|
||||
opacity: 1;
|
||||
color: #cc0000;
|
||||
text-shadow: 0px 0px 1px #fff;
|
||||
-moz-transform: scale(1);
|
||||
}
|
||||
100% {
|
||||
opacity: 0;
|
||||
text-shadow: 0px 0px 50px #fff;
|
||||
-moz-transform: scale(0);
|
||||
}
|
||||
}
|
||||
@-moz-keyframes blurFadeIn {
|
||||
0% {
|
||||
opacity: 0;
|
||||
color: #cc0000;
|
||||
text-shadow: 0px 0px 40px #fff;
|
||||
-moz-transform: scale(1.3);
|
||||
}
|
||||
100% {
|
||||
opacity: 1;
|
||||
text-shadow: 0px 0px 1px #fff;
|
||||
-moz-transform: scale(1);
|
||||
}
|
||||
}
|
||||
@-moz-keyframes fadeInBack {
|
||||
0% {
|
||||
opacity: 0;
|
||||
-moz-transform: scale(0);
|
||||
}
|
||||
50% {
|
||||
opacity: 0.4;
|
||||
-moz-transform: scale(2);
|
||||
}
|
||||
100% {
|
||||
opacity: 0.2;
|
||||
-moz-transform: scale(5);
|
||||
}
|
||||
}
|
||||
@-moz-keyframes fadeInRotate {
|
||||
0% {
|
||||
opacity: 0;
|
||||
-moz-transform: scale(0) rotate(360deg);
|
||||
}
|
||||
100% {
|
||||
opacity: 1;
|
||||
-moz-transform: scale(1) rotate(0deg);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes blurFadeInOut {
|
||||
0% {
|
||||
opacity: 0;
|
||||
color: #cc0000;
|
||||
text-shadow: 0px 0px 40px #fff;
|
||||
transform: scale(1.3);
|
||||
}
|
||||
20%, 75% {
|
||||
opacity: 1;
|
||||
|
||||
color: #cc0000;
|
||||
text-shadow: 0px 0px 1px #fff;
|
||||
transform: scale(1);
|
||||
}
|
||||
100% {
|
||||
opacity: 0;
|
||||
text-shadow: 0px 0px 50px #fff;
|
||||
transform: scale(0);
|
||||
}
|
||||
}
|
||||
@keyframes blurFadeIn {
|
||||
0% {
|
||||
opacity: 0;
|
||||
color: #cc0000;
|
||||
text-shadow: 0px 0px 40px #fff;
|
||||
transform: scale(1.3);
|
||||
}
|
||||
50% {
|
||||
opacity: 0.5;
|
||||
color: #cc0000;
|
||||
text-shadow: 0px 0px 10px #fff;
|
||||
transform: scale(1.1);
|
||||
}
|
||||
100% {
|
||||
opacity: 1;
|
||||
text-shadow: 0px 0px 1px #fff;
|
||||
transform: scale(1);
|
||||
}
|
||||
}
|
||||
@keyframes fadeInBack {
|
||||
0% {
|
||||
opacity: 0;
|
||||
transform: scale(0);
|
||||
}
|
||||
50% {
|
||||
opacity: 0.4;
|
||||
transform: scale(2);
|
||||
}
|
||||
100% {
|
||||
opacity: 0.2;
|
||||
transform: scale(5);
|
||||
}
|
||||
}
|
||||
@keyframes fadeInRotate {
|
||||
0% {
|
||||
opacity: 0;
|
||||
transform: scale(0) rotate(360deg);
|
||||
}
|
||||
100% {
|
||||
opacity: 1;
|
||||
transform: scale(1) rotate(0deg);
|
||||
}
|
||||
}
|
||||
</style>
|
||||
<div class="container">
|
||||
<div class="content">
|
||||
<h2 class="frame-1">YouTube Music Desktop App</h2>
|
||||
<h2 class="frame-2">With built-in ad blocker</h2>
|
||||
<h2 class="frame-3">And built-in downloader</h2>
|
||||
<h2 class="frame-4">Cross-platform</h2>
|
||||
<h2 class="frame-5">
|
||||
<span>Free,</span>
|
||||
<span>Open source</span>
|
||||
</h2>
|
||||
<a class="circle-link" href="https://github.com/th-ch/youtube-music/releases/latest">
|
||||
Download
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</foreignObject>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 9.2 KiB |
194
yarn.lock
194
yarn.lock
@ -372,36 +372,36 @@
|
||||
resolved "https://registry.yarnpkg.com/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz#75a2e8b51cb758a7553d6804a5932d7aace75c39"
|
||||
integrity sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==
|
||||
|
||||
"@cliqz/adblocker-content@^1.18.6":
|
||||
version "1.18.6"
|
||||
resolved "https://registry.yarnpkg.com/@cliqz/adblocker-content/-/adblocker-content-1.18.6.tgz#a65dd518f3e6d1f2e9fee36ca5ae5615ba7b4cfd"
|
||||
integrity sha512-OXrca20n+cMn9Ase+6oeX3fTmkauQMSb//lMLs56pHyra4foxN5o1rNiBG7qNIypdGQBFiTtGG7Vbp7YO5RQMw==
|
||||
"@cliqz/adblocker-content@^1.19.0":
|
||||
version "1.19.0"
|
||||
resolved "https://registry.yarnpkg.com/@cliqz/adblocker-content/-/adblocker-content-1.19.0.tgz#c3e8ce50a719905cfcb66b114882c086b5074131"
|
||||
integrity sha512-sciMicb+zmN5+iKCiDnWPegepgI32XzX4Snf1VxR+HAFwYGJmfk25vpL6ONd6hOlpmumxHkE/y5l7suH0ziP5g==
|
||||
|
||||
"@cliqz/adblocker-electron-preload@^1.18.6":
|
||||
version "1.18.6"
|
||||
resolved "https://registry.yarnpkg.com/@cliqz/adblocker-electron-preload/-/adblocker-electron-preload-1.18.6.tgz#57ec2dac09bbacb03b143609345638e98132f985"
|
||||
integrity sha512-cOK6ZuN3j0qLCZUj8oCf2PmPY837VTxtZM6bZl1x5xWLy/31x7186Wk0DP3C9MXU7gUhlqYxxKpbJDLZgFJ7Qw==
|
||||
"@cliqz/adblocker-electron-preload@^1.19.0":
|
||||
version "1.19.0"
|
||||
resolved "https://registry.yarnpkg.com/@cliqz/adblocker-electron-preload/-/adblocker-electron-preload-1.19.0.tgz#960332fb3bc6e68e13596bc280f68aa9ee5e3170"
|
||||
integrity sha512-ns+VCyb+H8U5rKC4lfvAbb1KxZiIKFs3F8HvivRkGBFqjEzaCUC4s/kf6P+tWCLC69lVgrZUDIzFHkKmGG9LPA==
|
||||
dependencies:
|
||||
"@cliqz/adblocker-content" "^1.18.6"
|
||||
"@cliqz/adblocker-content" "^1.19.0"
|
||||
|
||||
"@cliqz/adblocker-electron@^1.18.6":
|
||||
version "1.18.6"
|
||||
resolved "https://registry.yarnpkg.com/@cliqz/adblocker-electron/-/adblocker-electron-1.18.6.tgz#e387a1dc6f3f4a4005d299b37723899be4f0967b"
|
||||
integrity sha512-RGy003FHsvcLoGYaQIJVNWX8ZUQmK+Dbo0LeQAcsP96vOaTHHFOVj0Auhwkg7mZASiR9/XnoNepKIifO2zQVfw==
|
||||
"@cliqz/adblocker-electron@^1.19.0":
|
||||
version "1.19.0"
|
||||
resolved "https://registry.yarnpkg.com/@cliqz/adblocker-electron/-/adblocker-electron-1.19.0.tgz#9be5e10e93cd0488b79c54e44a265687b3d07a87"
|
||||
integrity sha512-UFhhHAQUI02HXWEX0Yjw+sCzJrdLbcGjCdjbaPjkYSv/w+uGaq7TahE1IXGALkS8vXHenA2iJdJglt2mh96Uuw==
|
||||
dependencies:
|
||||
"@cliqz/adblocker" "^1.18.6"
|
||||
"@cliqz/adblocker-electron-preload" "^1.18.6"
|
||||
"@cliqz/adblocker" "^1.19.0"
|
||||
"@cliqz/adblocker-electron-preload" "^1.19.0"
|
||||
tldts-experimental "^5.6.21"
|
||||
|
||||
"@cliqz/adblocker@^1.18.6":
|
||||
version "1.18.6"
|
||||
resolved "https://registry.yarnpkg.com/@cliqz/adblocker/-/adblocker-1.18.6.tgz#07d075c45017db7cd2aff19afe466ad53217d318"
|
||||
integrity sha512-+ro8DoqBaMt9nmfjJF+0Om03/9hdDhRx6NJKzwmW7Pfvd/XhqJ+NiDtdusABSERhCE3nUXCWdu5j09X9HiX6Vg==
|
||||
"@cliqz/adblocker@^1.19.0":
|
||||
version "1.19.0"
|
||||
resolved "https://registry.yarnpkg.com/@cliqz/adblocker/-/adblocker-1.19.0.tgz#1521673172998d0a691aeb1f2b2c1732c9b8c6ab"
|
||||
integrity sha512-sy/aBjPoQsqLI5XYHAaZfgi+7HpddJmoHn/UMyX0dx0/jnnaM2/Z2LGylOsGwjW97GsNvvqSwXgxsEH2R0K9SQ==
|
||||
dependencies:
|
||||
"@remusao/guess-url-type" "^1.1.2"
|
||||
"@remusao/small" "^1.1.2"
|
||||
"@remusao/smaz" "^1.7.1"
|
||||
"@types/chrome" "^0.0.126"
|
||||
"@types/chrome" "^0.0.127"
|
||||
"@types/firefox-webext-browser" "^82.0.0"
|
||||
tldts-experimental "^5.6.21"
|
||||
|
||||
@ -469,15 +469,15 @@
|
||||
minimatch "^3.0.4"
|
||||
strip-json-comments "^3.1.1"
|
||||
|
||||
"@ffmpeg/core@^0.8.4":
|
||||
version "0.8.4"
|
||||
resolved "https://registry.yarnpkg.com/@ffmpeg/core/-/core-0.8.4.tgz#69062a9b257792a9a8445e1f01e68c3e5e7fe58b"
|
||||
integrity sha512-gEr4qXZpShZpIVUO3hc5Vz7bkk/jLYuzVVQtHluUwrui5eAooQwExOGiEovzLVkRwjJ707/qqfmTrK3r80UkWw==
|
||||
"@ffmpeg/core@^0.8.5":
|
||||
version "0.8.5"
|
||||
resolved "https://registry.yarnpkg.com/@ffmpeg/core/-/core-0.8.5.tgz#2d0b7d4409a4348fa6a1888c247de706ffc0e63f"
|
||||
integrity sha512-hemVFmhVLbD/VZaCG2BvCzFglKytMIMJ5aJfc12eXN4O4cG0wXnGTMVzlK1KKW/6viHhJMPkc9h4UDnJW8Uivg==
|
||||
|
||||
"@ffmpeg/ffmpeg@^0.9.5":
|
||||
version "0.9.5"
|
||||
resolved "https://registry.yarnpkg.com/@ffmpeg/ffmpeg/-/ffmpeg-0.9.5.tgz#6624747dc331632bc7c581e8d4f2046abc933798"
|
||||
integrity sha512-Vtxgi5C89n36pJ3I1/l6xd2qSwn+s1tAtLvFJ98N9P2ZorBvxXCEwTkt2yL7GuOUX9wpdG/vLFqp7iLso8LDwg==
|
||||
"@ffmpeg/ffmpeg@^0.9.6":
|
||||
version "0.9.6"
|
||||
resolved "https://registry.yarnpkg.com/@ffmpeg/ffmpeg/-/ffmpeg-0.9.6.tgz#b44fa1ab34dd860785bb7c317dbfbe8b9ded7036"
|
||||
integrity sha512-ov5FAV3dHRJ/+ZxQH9V5GvY/iczwq5vrKWeu4tpytxZewTSAhZ1aKD/sFBzd79nQNF+CTktxUp3LWuGECXBNeA==
|
||||
dependencies:
|
||||
is-url "^1.2.4"
|
||||
node-fetch "^2.6.1"
|
||||
@ -1100,10 +1100,10 @@
|
||||
"@types/node" "*"
|
||||
"@types/responselike" "*"
|
||||
|
||||
"@types/chrome@^0.0.126":
|
||||
version "0.0.126"
|
||||
resolved "https://registry.yarnpkg.com/@types/chrome/-/chrome-0.0.126.tgz#f9f3436712f0c7c12ea9798abc9b95575ad7b23a"
|
||||
integrity sha512-191z7uoyfbGU+z7/m45j9XbWugWqVHVPMM4hJV5cZ+3YzGCT9wFjMUHO3Wr3Xvo8aVodvRNu28u7lvEaAnfbzg==
|
||||
"@types/chrome@^0.0.127":
|
||||
version "0.0.127"
|
||||
resolved "https://registry.yarnpkg.com/@types/chrome/-/chrome-0.0.127.tgz#9e29f351d558f60e95326ceadc586fdcc824151b"
|
||||
integrity sha512-hBB9EApLYKKn2GvklVkTxVP6vZvxsH9okyIRUinNtMzZHIgIKWQk/ESbX+O5g4Bihfy38+aFGn7Kl7Cxou5JUg==
|
||||
dependencies:
|
||||
"@types/filesystem" "*"
|
||||
"@types/har-format" "*"
|
||||
@ -1258,12 +1258,10 @@
|
||||
dependencies:
|
||||
"@types/node" "*"
|
||||
|
||||
"@types/semver@^7.3.1":
|
||||
version "7.3.1"
|
||||
resolved "https://registry.yarnpkg.com/@types/semver/-/semver-7.3.1.tgz#7a9a5d595b6d873f338c867dcef64df289468cfa"
|
||||
integrity sha512-ooD/FJ8EuwlDKOI6D9HWxgIgJjMg2cuziXm/42npDC8y4NjxplBUn9loewZiBNCt44450lHAU0OSb51/UqXeag==
|
||||
dependencies:
|
||||
"@types/node" "*"
|
||||
"@types/semver@^7.3.4":
|
||||
version "7.3.4"
|
||||
resolved "https://registry.yarnpkg.com/@types/semver/-/semver-7.3.4.tgz#43d7168fec6fa0988bb1a513a697b29296721afb"
|
||||
integrity sha512-+nVsLKlcUCeMzD2ufHEYuJ9a2ovstb6Dp52A5VsoKxDXgvE051XgHI/33I1EymwkRGQkwnA0LkhnUzituGs4EQ==
|
||||
|
||||
"@types/stack-utils@^1.0.1":
|
||||
version "1.0.1"
|
||||
@ -2091,6 +2089,14 @@ builder-util-runtime@8.7.2:
|
||||
debug "^4.1.1"
|
||||
sax "^1.2.4"
|
||||
|
||||
builder-util-runtime@8.7.3:
|
||||
version "8.7.3"
|
||||
resolved "https://registry.yarnpkg.com/builder-util-runtime/-/builder-util-runtime-8.7.3.tgz#0aaafa52d25295c939496f62231ca9ff06c30e40"
|
||||
integrity sha512-1Q2ReBqFblimF5g/TLg2+0M5Xzv0Ih5LxJ/BMWXvEy/e6pQKeeEpbkPMGsN6OiQgkygaZo5VXCXIjOkOQG5EoQ==
|
||||
dependencies:
|
||||
debug "^4.3.2"
|
||||
sax "^1.2.4"
|
||||
|
||||
builder-util@22.8.1:
|
||||
version "22.8.1"
|
||||
resolved "https://registry.yarnpkg.com/builder-util/-/builder-util-22.8.1.tgz#efdfb327dbc22c59aa1e2f55adbe0e771086e839"
|
||||
@ -2690,6 +2696,13 @@ debug@^4.0.1, debug@^4.1.0, debug@^4.1.1:
|
||||
dependencies:
|
||||
ms "^2.1.1"
|
||||
|
||||
debug@^4.3.2:
|
||||
version "4.3.2"
|
||||
resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.2.tgz#f0a49c18ac8779e31d4a0c6029dfb76873c7428b"
|
||||
integrity sha512-mOp8wKcvj7XxC78zLgw/ZA+6TSgkoE2C/ienthhRD298T7UNwAg9diBpLRxC0mOezLl4B0xV7M0cCO6P/O0Xhw==
|
||||
dependencies:
|
||||
ms "2.1.2"
|
||||
|
||||
decamelize-keys@^1.1.0:
|
||||
version "1.1.0"
|
||||
resolved "https://registry.yarnpkg.com/decamelize-keys/-/decamelize-keys-1.1.0.tgz#d171a87933252807eb3cb61dc1c1445d078df2d9"
|
||||
@ -3092,18 +3105,18 @@ electron-store@^6.0.1:
|
||||
conf "^7.1.2"
|
||||
type-fest "^0.16.0"
|
||||
|
||||
electron-updater@^4.3.5:
|
||||
version "4.3.5"
|
||||
resolved "https://registry.yarnpkg.com/electron-updater/-/electron-updater-4.3.5.tgz#4fb36f593a031c87ea07ee141c9f064d5deffb15"
|
||||
integrity sha512-5jjN7ebvfj1cLI0VZMdCnJk6aC4bP+dy7ryBf21vArR0JzpRVk0OZHA2QBD+H5rm6ZSeDYHOY6+8PrMEqJ4wlQ==
|
||||
electron-updater@^4.3.6:
|
||||
version "4.3.7"
|
||||
resolved "https://registry.yarnpkg.com/electron-updater/-/electron-updater-4.3.7.tgz#632434cf1dd856e37f5557a68b55867fae29c39e"
|
||||
integrity sha512-F7l1ZdslA5Do9kABNhiYKMPzreLulFTv+rsbGUQJ3TnRKrEb3JAi/n/jco3mI8LOEG/pgS5f9ytQ+D+5r/PvQw==
|
||||
dependencies:
|
||||
"@types/semver" "^7.3.1"
|
||||
builder-util-runtime "8.7.2"
|
||||
"@types/semver" "^7.3.4"
|
||||
builder-util-runtime "8.7.3"
|
||||
fs-extra "^9.0.1"
|
||||
js-yaml "^3.14.0"
|
||||
js-yaml "^3.14.1"
|
||||
lazy-val "^1.0.4"
|
||||
lodash.isequal "^4.5.0"
|
||||
semver "^7.3.2"
|
||||
semver "^7.3.4"
|
||||
|
||||
electron@^10.1.3:
|
||||
version "10.1.3"
|
||||
@ -4384,11 +4397,6 @@ html-encoding-sniffer@^2.0.1:
|
||||
dependencies:
|
||||
whatwg-encoding "^1.0.5"
|
||||
|
||||
html-entities@^1.3.1:
|
||||
version "1.3.1"
|
||||
resolved "https://registry.yarnpkg.com/html-entities/-/html-entities-1.3.1.tgz#fb9a1a4b5b14c5daba82d3e34c6ae4fe701a0e44"
|
||||
integrity sha512-rhE/4Z3hIhzHAUKbW8jVcCyuT5oJCXXqhN/6mXXVCpzTmvJnoH2HL/bt3EZ6p55jbFJBeAe1ZNpL5BugLujxNA==
|
||||
|
||||
html-escaper@^2.0.0:
|
||||
version "2.0.2"
|
||||
resolved "https://registry.yarnpkg.com/html-escaper/-/html-escaper-2.0.2.tgz#dfd60027da36a36dfcbe236262c00a5822681453"
|
||||
@ -4544,9 +4552,9 @@ inherits@2.0.3:
|
||||
integrity sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=
|
||||
|
||||
ini@^1.3.4, ini@^1.3.5, ini@~1.3.0:
|
||||
version "1.3.5"
|
||||
resolved "https://registry.yarnpkg.com/ini/-/ini-1.3.5.tgz#eee25f56db1c9ec6085e0c22778083f596abf927"
|
||||
integrity sha512-RZY5huIKCMRWDUqZlEi72f/lmXKMvuszcMBduliQ3nnWbx9X/ZBQO7DijMEYS9EhHBb2qacRUMtC7svLwe0lcw==
|
||||
version "1.3.7"
|
||||
resolved "https://registry.yarnpkg.com/ini/-/ini-1.3.7.tgz#a09363e1911972ea16d7a8851005d84cf09a9a84"
|
||||
integrity sha512-iKpRpXP+CrP2jyrxvg1kMUpXDyRUFDWurxbnVT1vQPx+Wz9uCYsMIqYuSBLV+PAaZG/d7kRLKRFc9oDMsH+mFQ==
|
||||
|
||||
interpret@^1.2.0:
|
||||
version "1.2.0"
|
||||
@ -5412,6 +5420,14 @@ js-yaml@^3.14.0:
|
||||
argparse "^1.0.7"
|
||||
esprima "^4.0.0"
|
||||
|
||||
js-yaml@^3.14.1:
|
||||
version "3.14.1"
|
||||
resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.14.1.tgz#dae812fdb3825fa306609a8717383c50c36a0537"
|
||||
integrity sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==
|
||||
dependencies:
|
||||
argparse "^1.0.7"
|
||||
esprima "^4.0.0"
|
||||
|
||||
jsbn@~0.1.0:
|
||||
version "0.1.1"
|
||||
resolved "https://registry.yarnpkg.com/jsbn/-/jsbn-0.1.1.tgz#a5e654c2e5a2deb5f201d96cefbca80c0ef2f513"
|
||||
@ -5857,12 +5873,12 @@ lru-cache@^6.0.0:
|
||||
dependencies:
|
||||
yallist "^4.0.0"
|
||||
|
||||
m3u8stream@^0.8.0:
|
||||
version "0.8.0"
|
||||
resolved "https://registry.yarnpkg.com/m3u8stream/-/m3u8stream-0.8.0.tgz#025a63358ee32d7652bdc0a93f46078582ec5e96"
|
||||
integrity sha512-vvSjdkBPdDHzVr2M+aIXbnYys4zX6m3UzxMaxBJr1PpE0e/3sawkLD4EEmz/q9hv87bleotR70cOWR3UBMtskw==
|
||||
m3u8stream@^0.8.3:
|
||||
version "0.8.3"
|
||||
resolved "https://registry.yarnpkg.com/m3u8stream/-/m3u8stream-0.8.3.tgz#c4624e92b4240eb356d040c4a5e155586cf58108"
|
||||
integrity sha512-0nAcdrF8YJKUkb6PzWdvGftTPyCVWgoiot1AkNVbPKTeIGsWs6DrOjifrJ0Zi8WQfQmD2SuVCjkYIOip12igng==
|
||||
dependencies:
|
||||
miniget "^2.0.1"
|
||||
miniget "^4.0.0"
|
||||
sax "^1.2.4"
|
||||
|
||||
make-dir@^3.0.0, make-dir@^3.0.2:
|
||||
@ -6060,15 +6076,10 @@ min-indent@^1.0.0:
|
||||
resolved "https://registry.yarnpkg.com/min-indent/-/min-indent-1.0.1.tgz#a63f681673b30571fbe8bc25686ae746eefa9869"
|
||||
integrity sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg==
|
||||
|
||||
miniget@^2.0.1:
|
||||
version "2.0.1"
|
||||
resolved "https://registry.yarnpkg.com/miniget/-/miniget-2.0.1.tgz#e2188573317ad8239bab33f056aae64804fc8e47"
|
||||
integrity sha512-MX+QfVIPAutz6c+T7WKuFKtjcw0nOyRRh1ubhTDD+z/e/pKcSAsfAV63aQKUgb1MFRT1GyfJeW53N5fHkX0wIA==
|
||||
|
||||
miniget@^2.1.0:
|
||||
version "2.1.0"
|
||||
resolved "https://registry.yarnpkg.com/miniget/-/miniget-2.1.0.tgz#2dfb9ecb3a9a55d9dc682102f65fca2a06e3f5ca"
|
||||
integrity sha512-fy9x3d/0oOIhkwAms6kgxTYkHwdELhMfgj+9a/aYZpJdTWIIWGta9aXHUtnzUn+LjBmRoTdPRQSi2hkmEvXk3A==
|
||||
miniget@^4.0.0:
|
||||
version "4.1.0"
|
||||
resolved "https://registry.yarnpkg.com/miniget/-/miniget-4.1.0.tgz#018cc1180d2fe4d45ed735ac6bd2ab7224e8bceb"
|
||||
integrity sha512-kzhrNv5L7LlomwGmPGQsLQ2PnT1LeJJWfB0wNFGyv426gEM1gsfziBQmfkr6XOBA8EusZg9nowlNT5CbuKTjZg==
|
||||
|
||||
minimalistic-assert@^1.0.0, minimalistic-assert@^1.0.1:
|
||||
version "1.0.1"
|
||||
@ -6242,9 +6253,9 @@ node-modules-regexp@^1.0.0:
|
||||
integrity sha1-jZ2+KJZKSsVxLpExZCEHxx6Q7EA=
|
||||
|
||||
node-notifier@^8.0.0:
|
||||
version "8.0.0"
|
||||
resolved "https://registry.yarnpkg.com/node-notifier/-/node-notifier-8.0.0.tgz#a7eee2d51da6d0f7ff5094bc7108c911240c1620"
|
||||
integrity sha512-46z7DUmcjoYdaWyXouuFNNfUo6eFa94t23c53c+lG/9Cvauk4a98rAUp9672X5dxGdQmLpPzTxzu8f/OeEPaFA==
|
||||
version "8.0.1"
|
||||
resolved "https://registry.yarnpkg.com/node-notifier/-/node-notifier-8.0.1.tgz#f86e89bbc925f2b068784b31f382afdc6ca56be1"
|
||||
integrity sha512-BvEXF+UmsnAfYfoapKM9nGxnP+Wn7P91YfXmrKnfcYCx6VBeoN5Ez5Ogck6I8Bi5k4RlpqRYaw75pAwzX9OphA==
|
||||
dependencies:
|
||||
growly "^1.3.0"
|
||||
is-wsl "^2.2.0"
|
||||
@ -7508,12 +7519,7 @@ semver-diff@^3.1.1:
|
||||
dependencies:
|
||||
semver "^6.3.0"
|
||||
|
||||
"semver@2 || 3 || 4 || 5", semver@^5.5.0:
|
||||
version "5.6.0"
|
||||
resolved "https://registry.yarnpkg.com/semver/-/semver-5.6.0.tgz#7e74256fbaa49c75aa7c7a205cc22799cac80004"
|
||||
integrity sha512-RS9R6R35NYgQn++fkDWaOmqGoj4Ek9gGs+DPxNUZKuwE183xjJroKvyo1IzVFeXvUrvmALy6FWD5xrdJT25gMg==
|
||||
|
||||
semver@^5.4.1, semver@^5.7.1:
|
||||
"semver@2 || 3 || 4 || 5", semver@^5.4.1, semver@^5.5.0, semver@^5.7.1:
|
||||
version "5.7.1"
|
||||
resolved "https://registry.yarnpkg.com/semver/-/semver-5.7.1.tgz#a954f931aeba508d307bbf069eff0c01c96116f7"
|
||||
integrity sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==
|
||||
@ -7523,15 +7529,12 @@ semver@^6.0.0, semver@^6.1.0, semver@^6.2.0, semver@^6.3.0:
|
||||
resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.0.tgz#ee0a64c8af5e8ceea67687b133761e1becbd1d3d"
|
||||
integrity sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==
|
||||
|
||||
semver@^7.1.2, semver@^7.2.1:
|
||||
version "7.2.2"
|
||||
resolved "https://registry.yarnpkg.com/semver/-/semver-7.2.2.tgz#d01432d74ed3010a20ffaf909d63a691520521cd"
|
||||
integrity sha512-Zo84u6o2PebMSK3zjJ6Zp5wi8VnQZnEaCP13Ul/lt1ANsLACxnJxq4EEm1PY94/por1Hm9+7xpIswdS5AkieMA==
|
||||
|
||||
semver@^7.3.2:
|
||||
version "7.3.2"
|
||||
resolved "https://registry.yarnpkg.com/semver/-/semver-7.3.2.tgz#604962b052b81ed0786aae84389ffba70ffd3938"
|
||||
integrity sha512-OrOb32TeeambH6UrhtShmF7CRDqhL6/5XpPNp2DuRH6+9QLw/orhp72j87v8Qa1ScDkvrrBNpZcDejAirJmfXQ==
|
||||
semver@^7.1.2, semver@^7.2.1, semver@^7.3.2, semver@^7.3.4:
|
||||
version "7.3.4"
|
||||
resolved "https://registry.yarnpkg.com/semver/-/semver-7.3.4.tgz#27aaa7d2e4ca76452f98d3add093a72c943edc97"
|
||||
integrity sha512-tCfb2WLjqFAtXn4KEdxIhalnRtoKFN7nAwj0B3ZXCbQloV2tq5eDbcTmT68JJD3nRJq24/XgxtQKFIpQdtvmVw==
|
||||
dependencies:
|
||||
lru-cache "^6.0.0"
|
||||
|
||||
serialize-error@^5.0.0:
|
||||
version "5.0.0"
|
||||
@ -8527,9 +8530,9 @@ uuid@^3.3.2:
|
||||
integrity sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==
|
||||
|
||||
uuid@^8.0.0, uuid@^8.3.0:
|
||||
version "8.3.0"
|
||||
resolved "https://registry.yarnpkg.com/uuid/-/uuid-8.3.0.tgz#ab738085ca22dc9a8c92725e459b1d507df5d6ea"
|
||||
integrity sha512-fX6Z5o4m6XsXBdli9g7DtWgAx+osMsRRZFKma1mIUsLCz6vRvv+pz5VNbyu9UEDzpMWulZfvpgb/cmDXVulYFQ==
|
||||
version "8.3.2"
|
||||
resolved "https://registry.yarnpkg.com/uuid/-/uuid-8.3.2.tgz#80d5b5ced271bb9af6c445f21a1a04c606cefbe2"
|
||||
integrity sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==
|
||||
|
||||
v8-compile-cache@^2.0.3:
|
||||
version "2.1.0"
|
||||
@ -8941,14 +8944,13 @@ yauzl@^2.10.0:
|
||||
buffer-crc32 "~0.2.3"
|
||||
fd-slicer "~1.1.0"
|
||||
|
||||
ytdl-core@^4.0.3:
|
||||
version "4.0.3"
|
||||
resolved "https://registry.yarnpkg.com/ytdl-core/-/ytdl-core-4.0.3.tgz#9772dc6f7f0272534d50f50903022f8502ae44fa"
|
||||
integrity sha512-+pM+EocvdHHTfH3xCr3c41cIm8bD7IE/wv/QKjaO7PwdLaaOMIj7xc/7yWwy9NwUDgIKA1YTotcn0qpQ0FVtMA==
|
||||
ytdl-core@^4.1.2:
|
||||
version "4.2.1"
|
||||
resolved "https://registry.yarnpkg.com/ytdl-core/-/ytdl-core-4.2.1.tgz#afcc1577a2a35701a5e1369f2ad3b0d1a7d2419d"
|
||||
integrity sha512-7zAoJiWpaBGgiAUCQuvKBuWom7tmSCV0A70gRdrPxR96yQoJOrCZkW6Wg1CofvPtAeQVWTVWThC8bXRsE+SBeA==
|
||||
dependencies:
|
||||
html-entities "^1.3.1"
|
||||
m3u8stream "^0.8.0"
|
||||
miniget "^2.1.0"
|
||||
m3u8stream "^0.8.3"
|
||||
miniget "^4.0.0"
|
||||
sax "^1.1.3"
|
||||
|
||||
zip-stream@^4.0.0:
|
||||
|
||||
Reference in New Issue
Block a user