mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-13 11:21:46 +00:00
Merge branch 'master' into lastfm
This commit is contained in:
@ -41,7 +41,11 @@ const defaultConfig = {
|
||||
api_key: "04d76faaac8726e60988e14c105d421a", // api key registered by @semvis123
|
||||
secret: "a5d2a36fdf64819290f6982481eaffa2",
|
||||
suffixesToRemove: [' - Topic', 'VEVO'] // removes suffixes of the artist name, for better recognition
|
||||
}
|
||||
},
|
||||
discord: {
|
||||
activityTimoutEnabled: true, // if enabled, the discord rich presence gets cleared when music paused after the time specified below
|
||||
activityTimoutTime: 10 * 60 * 1000 // 10 minutes
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
@ -24,6 +24,10 @@ function setOptions(plugin, options) {
|
||||
});
|
||||
}
|
||||
|
||||
function getOptions(plugin) {
|
||||
return store.get("plugins")[plugin];
|
||||
}
|
||||
|
||||
function enable(plugin) {
|
||||
setOptions(plugin, { enabled: true });
|
||||
}
|
||||
@ -38,4 +42,5 @@ module.exports = {
|
||||
enable,
|
||||
disable,
|
||||
setOptions,
|
||||
getOptions,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user