print filename playlist after write

This commit is contained in:
localhost_frssoft 2024-07-25 14:15:55 +03:00
parent bf5f4c9811
commit e3d523758d

View File

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