radio station compatability

Signed-off-by: Core <core@coredev.uk>
This commit is contained in:
Core 2022-09-14 19:14:22 +01:00
parent bd6552a048
commit 378551bd0c
No known key found for this signature in database
GPG key ID: 2AB8327FBA02D1C0
4 changed files with 6 additions and 10 deletions

View file

@ -50,17 +50,17 @@ export default class lastfm {
});
this._utils.getIPCMain().on("lastfm:nowPlayingChange", (event: any, attributes: any) => {
if (this._utils.getStoreValue("connectivity.lastfm.filter_loop") || this._utils.getStoreValue("general.privateEnabled")) return;
if (this._utils.getStoreValue("connectivity.lastfm.filter_loop") || this._utils.getStoreValue("general.privateEnabled") || attributes.type === "radioStation") return;
this.updateNowPlayingTrack(attributes);
});
this._utils.getIPCMain().on("lastfm:FilteredNowPlayingItemDidChange", (event: any, attributes: any) => {
if (this._utils.getStoreValue("general.privateEnabled")) return;
if (this._utils.getStoreValue("general.privateEnabled") || attributes.type === "radioStation") return;
this.updateNowPlayingTrack(attributes);
});
this._utils.getIPCMain().on("lastfm:scrobbleTrack", (event: any, attributes: any) => {
if (this._utils.getStoreValue("general.privateEnabled")) return;
if (this._utils.getStoreValue("general.privateEnabled") || attributes.type === "radioStation") return;
this.scrobbleTrack(attributes);
});
}