Skip to content

Commit

Permalink
Add plugin options in migration
Browse files Browse the repository at this point in the history
  • Loading branch information
th-ch committed Dec 3, 2020
1 parent b94d0d4 commit 4dcbd2e
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions config/store.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
const { dialog } = require("electron");
const Store = require("electron-store");

const defaults = require("./defaults");
Expand All @@ -11,9 +10,22 @@ const migrations = {
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) => {
plugins[enabledPlugin] = {
...plugins[enabledPlugin],
enabled: true,
};
});
Expand Down

0 comments on commit 4dcbd2e

Please sign in to comment.