Fixed track IDs for DBus

This commit is contained in:
Sumner Evans
2019-11-24 20:37:39 -07:00
parent dc8d330a1b
commit e5374d8ade
2 changed files with 2 additions and 2 deletions

View File

@@ -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):

View File

@@ -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