forked from Wobbl/Wobuzz
Playlists now get loaded when they are started and removed debug prints.
This commit is contained in:
parent
0879575882
commit
0c2c91389d
5 changed files with 12 additions and 30 deletions
|
@ -23,9 +23,7 @@ def main():
|
|||
app.post_init()
|
||||
|
||||
if arguments.playlist:
|
||||
playlist = Playlist(app, "Temporary Playlist")
|
||||
|
||||
playlist.load_from_m3u(arguments.playlist)
|
||||
playlist = Playlist(app, "Temporary Playlist", arguments.playlist)
|
||||
|
||||
app.library.playlists.append(playlist)
|
||||
|
||||
|
@ -34,15 +32,7 @@ def main():
|
|||
app.library.temporary_playlist = playlist
|
||||
|
||||
if arguments.track:
|
||||
# make track paths absolute
|
||||
tracks = []
|
||||
|
||||
for track in arguments.track:
|
||||
tracks.append(os.path.abspath(track))
|
||||
|
||||
playlist = Playlist(app, "Temporary Playlist")
|
||||
|
||||
playlist.load_from_paths(tracks)
|
||||
playlist = Playlist(app, "Temporary Playlist", arguments.track)
|
||||
|
||||
app.library.playlists.append(playlist)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue