mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-11 10:31:47 +00:00
Add plugin options in migration
This commit is contained in:
@ -1,4 +1,3 @@
|
|||||||
const { dialog } = require("electron");
|
|
||||||
const Store = require("electron-store");
|
const Store = require("electron-store");
|
||||||
|
|
||||||
const defaults = require("./defaults");
|
const defaults = require("./defaults");
|
||||||
@ -11,9 +10,22 @@ const migrations = {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const plugins = {};
|
// 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) => {
|
enabledPlugins.forEach((enabledPlugin) => {
|
||||||
plugins[enabledPlugin] = {
|
plugins[enabledPlugin] = {
|
||||||
|
...plugins[enabledPlugin],
|
||||||
enabled: true,
|
enabled: true,
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user