fix: mpris cover-path notify

This commit is contained in:
Aylur
2023-10-22 21:02:54 +02:00
parent 741d8f9ebf
commit b903646420
+2 -2
View File
@@ -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);