forked from Wobbl/Wobuzz
Added a button that adds a playlist.
This commit is contained in:
parent
1007ac045f
commit
31e72c25d3
6 changed files with 57 additions and 9 deletions
|
@ -26,7 +26,8 @@ class Playlist:
|
|||
|
||||
i += 1
|
||||
|
||||
if self.current_track is None: # set current track to the first track if there is no currently playing track
|
||||
# set current track to the first track if there is no currently playing track
|
||||
if self.current_track is None and self.has_tracks():
|
||||
self.current_track = self.tracks[0]
|
||||
|
||||
def load_from_m3u(self, path):
|
||||
|
@ -52,7 +53,8 @@ class Playlist:
|
|||
|
||||
i += 1
|
||||
|
||||
if self.current_track is None: # set current track to the first track if there is no currently playing track
|
||||
# set current track to the first track if there is no currently playing track
|
||||
if self.current_track is None and self.has_tracks():
|
||||
self.current_track = self.tracks[0]
|
||||
|
||||
def load_from_wbz(self, path):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue