mirror of
https://github.com/zoriya/ags.git
synced 2026-05-31 10:02:29 +00:00
fix: mpris cover-path notify
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user