From e3d523758d2c4cae600c17e7456c9d9803c50133 Mon Sep 17 00:00:00 2001 From: localhost_frssoft Date: Thu, 25 Jul 2024 14:15:55 +0300 Subject: [PATCH] print filename playlist after write --- funkwlplay.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/funkwlplay.py b/funkwlplay.py index f0c21dd..b00bff3 100755 --- a/funkwlplay.py +++ b/funkwlplay.py @@ -23,10 +23,12 @@ if args.instance: 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') for i in track_list: file.write('\n' + i) + print(f'Playlist saved as {filename}') def filter_tracks(tracks):