Revert "Merge remote-tracking branch 'origin/develop' into develop"
This reverts commit5b360e74fa
, reversing changes made to548688341d
.
This commit is contained in:
parent
5b360e74fa
commit
0fb6802ff3
1 changed files with 37 additions and 40 deletions
|
@ -118,8 +118,7 @@ export default class LastFMPlugin {
|
|||
}
|
||||
} else {
|
||||
return console.log('[LastFM] Did not add ', attributes.name, '—', artist, 'because now playing a other song.');
|
||||
}
|
||||
}, Math.round(attributes.durationInMillis * (self._store.lastfm.scrobble_after / 100)));
|
||||
}},Math.round(attributes.durationInMillis * (self._store.lastfm.scrobble_after / 100)));
|
||||
}
|
||||
|
||||
private async updateNowPlayingSong(attributes: any) {
|
||||
|
@ -259,19 +258,17 @@ export default class LastFMPlugin {
|
|||
*/
|
||||
onPlaybackStateDidChange(attributes: object): void {
|
||||
this.updateNowPlayingSong(attributes)
|
||||
// this.scrobbleSong(attributes)
|
||||
this.scrobbleSong(attributes)
|
||||
}
|
||||
|
||||
/**
|
||||
* Runs on song change
|
||||
* @param attributes Music Attributes
|
||||
*/
|
||||
lfmItemChange(attributes: any): void {
|
||||
attributes.status = true
|
||||
nowPlayingItemDidChangeLastFM(attributes: object): void {
|
||||
if (!this._store.lastfm.filterLoop){
|
||||
this._lastfm.cachedNowPlayingAttributes = false;
|
||||
this._lastfm.cachedAttributes = false
|
||||
}
|
||||
this._lastfm.cachedAttributes = false}
|
||||
this.updateNowPlayingSong(attributes)
|
||||
this.scrobbleSong(attributes)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue