From b9036464205417cda727fbe2289cbaa035e2ffd9 Mon Sep 17 00:00:00 2001 From: Aylur Date: Sun, 22 Oct 2023 21:02:54 +0200 Subject: [PATCH] fix: mpris cover-path notify --- src/service/mpris.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/service/mpris.ts b/src/service/mpris.ts index 2dcd53f..d72168b 100644 --- a/src/service/mpris.ts +++ b/src/service/mpris.ts @@ -178,9 +178,9 @@ class MprisPlayer extends Service { } private _cacheCoverArt() { - this._coverPath = MEDIA_CACHE_PATH + '/' + + this.updateProperty('cover-path', MEDIA_CACHE_PATH + '/' + `${this._trackArtists.join(', ')}-${this._trackTitle}` - .replace(/[\,\*\?\"\<\>\|\#\:\?\/\'\(\)]/g, ''); + .replace(/[\,\*\?\"\<\>\|\#\:\?\/\'\(\)]/g, '')); if (this._coverPath.length > 255) this._coverPath = this._coverPath.substring(0, 255);