Private implemented
This commit is contained in:
parent
4defeb82f0
commit
23ad2640dc
2 changed files with 30 additions and 34 deletions
|
@ -1,9 +1,3 @@
|
|||
// https://github.com/maxkueng/node-lastfmapi
|
||||
// https://github.com/maxkueng/lastfm-autocorrect
|
||||
// @todo: add autocorrect
|
||||
// @todo: add scrobble and filter to prevent no-title-found being scrobbled
|
||||
// @todo: handle session keys through config to stop aids session.json
|
||||
|
||||
export default class lastfm {
|
||||
|
||||
/**
|
||||
|
@ -74,6 +68,7 @@ export default class lastfm {
|
|||
* @param attributes Music Attributes
|
||||
*/
|
||||
onNowPlayingItemDidChange(attributes: any): void {
|
||||
if (this._utils.getStoreValue("general.privateEnabled")) return;
|
||||
this._attributes = attributes
|
||||
if (!attributes?.lfmTrack || !attributes?.lfmAlbum) {
|
||||
this.verifyTrack(attributes)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue