Fixed track IDs for DBus
This commit is contained in:
@@ -260,7 +260,7 @@ class SublimeMusicApp(Gtk.Application):
|
||||
invocation,
|
||||
):
|
||||
second_microsecond_conversion = 1000000
|
||||
track_id_re = re.compile(r'/song/(.*)(?:-(.*))')
|
||||
track_id_re = re.compile(r'/song/(.*)(?:/(.*))')
|
||||
playlist_id_re = re.compile(r'/playlist/(.*)')
|
||||
|
||||
def seek_fn(offset):
|
||||
|
@@ -196,7 +196,7 @@ class DBusManager:
|
||||
for song_id in state.play_queue:
|
||||
suffix = ''
|
||||
if (id_ := seen_counts.get(song_id)) is not None:
|
||||
suffix = '-' + id_
|
||||
suffix = '/' + str(id_)
|
||||
|
||||
tracks.append(f'/song/{song_id}{suffix}')
|
||||
seen_counts[song_id] += 1
|
||||
|
Reference in New Issue
Block a user