(3) Download YouTube Videos and Convert Into MP3 Downloading copyrighted YouTube videos is illegal! I am not responsible for your downloads! Go at your own risk! Copyright (c) NeuralNine 2020 ''') choice = input("Choice: ") if choice == "1" or choice == "2": quality = input("Please choose a quality (low, medium, high, very high):") if choice == "2": link = input("Enter the link to the playlist: ") print("Downloading playlist...") youtube_downloader.download_playlist(link, quality) print("Download finished!") if choice == "1": links = youtube_downloader.input_links() for link in links: youtube_downloader.download_video(link, quality) elif choice == "3": links = youtube_downloader.input_links() for link in links: print("Downloading...") filename = youtube_downloader.download_video(link, 'low') print("Converting...") file_converter.convert_to_mp3(filename) else: print("Invalid input! Terminating...")
choice = input('Enter Your Choice: ') if (choice == '1' or choice == '2'): quality = input('Choose Quality (low, medium, high, very high): ') if (choice == '2'): playlist_link = input('Enter URL of Playlist: ') destination_path = input('Enter destination path: ') video_downloader.download_playlist(playlist_link, quality, destination_path) if (choice == '1'): links = video_downloader.input_links() destination_path = input('Enter destination path: ') for link in links: video_downloader.download_video(link, quality, destination_path) elif choice == "3": links = video_downloader.input_links() destination_path = input('Enter destination path: ') for link in links: filename, flag = video_downloader.download_video( link, 'low', destination_path) if not flag: print("[+] Converting to mp3") file_converter.convert_to_mp3(destination_path, filename) os.remove(os.path.join(destination_path, filename)) else: print('You\'ve Entered Invalid Input!') print('Terminating Script...')