Add option to disable loop filter in lastfm

This commit is contained in:
vapormusic 2022-01-26 21:24:30 +07:00
parent 6fb2973b11
commit 1badd13f69
4 changed files with 20 additions and 4 deletions

View file

@ -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)
}