enforce Private Sessions on RPC and LastFM

This commit is contained in:
vapormusic 2022-02-22 07:52:58 +07:00
parent 3c5ac8446c
commit ae9ea1d668
3 changed files with 9 additions and 4 deletions

View file

@ -258,13 +258,14 @@ export default class LastFMPlugin {
* @param attributes Music Attributes
*/
nowPlayingItemDidChangeLastFM(attributes: any): void {
if (this._store.visual.showuserinfo){
attributes.status = true
if (!this._store.lastfm.filterLoop) {
this._lastfm.cachedNowPlayingAttributes = false;
this._lastfm.cachedAttributes = false
}
this.updateNowPlayingSong(attributes)
this.scrobbleSong(attributes)
this.scrobbleSong(attributes)}
}
}