Skip to content

Commit

Permalink
feat: set id_ for windows nowplaying
Browse files Browse the repository at this point in the history
  • Loading branch information
mokurin000 authored Jan 10, 2024
1 parent 70336f5 commit 3608599
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion feeluown/nowplaying/nowplaying.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,9 @@ def update_song_metadata(self, meta: dict):
metadata.album = meta.get('album', '')
metadata.title = meta.get('title', '')
metadata.cover = meta.get('artwork', '')
metadata.url = ''
metadata.url = meta.get('uri', '')
if os.name == 'nt':
metadata.id_ = meta.get('uri', '')
self.set_playback_property(PlayProp.Metadata, metadata)

def update_duration(self, duration):
Expand Down

0 comments on commit 3608599

Please sign in to comment.