Add option to disable loop filter in lastfm
This commit is contained in:
parent
6fb2973b11
commit
1badd13f69
4 changed files with 20 additions and 4 deletions
|
@ -79,6 +79,7 @@ export class ConfigStore {
|
|||
"scrobble_after": 30,
|
||||
"auth_token": "",
|
||||
"enabledRemoveFeaturingArtists": true,
|
||||
"filterLoop": true,
|
||||
"NowPlaying": "true"
|
||||
},
|
||||
"advanced": {
|
||||
|
|
|
@ -243,6 +243,8 @@ export default class LastFMPlugin {
|
|||
* @param attributes Music Attributes
|
||||
*/
|
||||
onNowPlayingItemDidChange(attributes: object): void {
|
||||
if (!this._store.lastfm.filterLoop){
|
||||
this._lastfm.cachedAttributes = []}
|
||||
this.scrobbleSong(attributes)
|
||||
this.updateNowPlayingSong(attributes)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue