Added a button that adds a playlist.

This commit is contained in:
The Wobbler 2025-01-25 21:46:48 +01:00
parent 1007ac045f
commit 31e72c25d3
6 changed files with 57 additions and 9 deletions

View file

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