From ec12ffc622e087369482a1818c5a43dacab99d28 Mon Sep 17 00:00:00 2001 From: skeeperloyaltie Date: Thu, 28 Sep 2023 21:30:04 +0300 Subject: [PATCH] well most update - recent --- main.py | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/main.py b/main.py index cc893d6..9abdd34 100644 --- a/main.py +++ b/main.py @@ -53,16 +53,16 @@ def download_playlist(playlist_url, directory): # download_playlist(i, 'music') -download_playlist('https://www.youtube.com/watch?v=TJjc94NMmkk&list=RDTJjc94NMmkk&start_radio=1&ab_channel=JessieMurphVEVO', 'music') +# download_playlist('https://www.youtube.com/watch?v=TJjc94NMmkk&list=RDTJjc94NMmkk&start_radio=1&ab_channel=JessieMurphVEVO', 'music') -# if __name__ == '__main__': -# if len(sys.argv) != 3: -# print("Usage: python playlist_downloader.py ") -# sys.exit(1) +if __name__ == '__main__': + if len(sys.argv) != 3: + print("Usage: python playlist_downloader.py ") + sys.exit(1) -# url = sys.argv[1] -# directory = sys.argv[2] + url = sys.argv[1] + directory = sys.argv[2] -# downloaded_videos = download_playlist(url, directory) -# print(f'The following videos have been downloaded and saved in {directory}:') -# print(downloaded_videos) + downloaded_videos = download_playlist(url, directory) + print(f'The following videos have been downloaded and saved in {directory}:') + print(downloaded_videos)