added optional api call
This commit is contained in:
parent
ac410dfeb9
commit
3879562e82
@ -163,9 +163,10 @@ class PlaylistEngine:
|
|||||||
if counter_track.added_at < track.added_at:
|
if counter_track.added_at < track.added_at:
|
||||||
counter_track = track
|
counter_track = track
|
||||||
|
|
||||||
self.net.reorder_playlist_tracks(playlist.playlist_id,
|
if counter_track != tracks_to_sort[0]:
|
||||||
i + tracks_to_sort.index(counter_track),
|
self.net.reorder_playlist_tracks(playlist.playlist_id,
|
||||||
1, i)
|
i + tracks_to_sort.index(counter_track),
|
||||||
|
1, i)
|
||||||
tracks_to_sort.remove(counter_track)
|
tracks_to_sort.remove(counter_track)
|
||||||
|
|
||||||
def execute_playlist(self,
|
def execute_playlist(self,
|
||||||
|
Loading…
Reference in New Issue
Block a user