mirror of
https://gitea.phreedom.club/localhost_frssoft/funkwlmpv
synced 2024-11-23 19:49:21 +02:00
print filename playlist after write
This commit is contained in:
parent
bf5f4c9811
commit
e3d523758d
|
@ -23,10 +23,12 @@ if args.instance:
|
||||||
|
|
||||||
|
|
||||||
def create_playlist_file(track_list):
|
def create_playlist_file(track_list):
|
||||||
with open('playlist.m3u8', 'w') as file:
|
filename = 'playlist.m3u8'
|
||||||
|
with open(filename, 'w') as file:
|
||||||
file.write('#EXTM3U\n')
|
file.write('#EXTM3U\n')
|
||||||
for i in track_list:
|
for i in track_list:
|
||||||
file.write('\n' + i)
|
file.write('\n' + i)
|
||||||
|
print(f'Playlist saved as {filename}')
|
||||||
|
|
||||||
|
|
||||||
def filter_tracks(tracks):
|
def filter_tracks(tracks):
|
||||||
|
|
Loading…
Reference in New Issue