Private implemented

This commit is contained in:
Core 2022-06-16 14:33:24 +01:00
parent 4defeb82f0
commit 23ad2640dc
No known key found for this signature in database
GPG key ID: FE9BF1B547F8F3C6
2 changed files with 30 additions and 34 deletions

View file

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