Releases: akhi07rx/Youtube-To-Google-Drive
Releases · akhi07rx/Youtube-To-Google-Drive
v1.6
Fixed issue with exiting the program
- Added the option to enter 'quit' to exit the program entirely. The program will terminate immediately when 'quit' is entered.
- Modified the prompt message when asking for user input to include the 'exit' and 'quit' options.
- Added a conditional check to handle the 'exit' command. If the user enters 'exit', the program will continue to the next iteration of the while loop, allowing them to enter a new YouTube video URL or the 'exit' or 'quit' commands.
- Added a conditional check to handle the 'quit' command. If the user enters 'quit', the program will exit immediately using
sys.exit()
and display the "Exiting the program." message.
v1.5
- The import statement for
pytube
library is added at the beginning. - The code now uses
pytube
library instead ofYouTube
frompytube3
. - The filtering of video streams is added using
type='video'
in thestreams
filter. - The
mime_type
property is used to display the format of the video along with the resolution in the available video qualities list. - The file name for downloading is constructed using the video's title and the selected stream's resolution.
- The
output_path
parameter is used instead ofdestination_folder
in theselected_stream.download()
method. - The prompt message for selecting the video quality is modified to ask for the number of the desired video quality instead of "option."
- The error handling for invalid input is added in the selection of video quality.
v1.4: updated
- Imported the
pytube
library to handle YouTube video downloads. - Added a new function
download_youtube_video()
to handle YouTube video downloads with quality options. - Added a check to detect YouTube links in the user input and invoke the
download_youtube_video()
function if a YouTube link is detected. - Modified the file naming logic to append the video quality at the end of the file name, but only for video files (excluding audio files).
- Updated the error handling to catch exceptions specific to YouTube video downloads.
- Introduced formatted text box display for the available quality options using the
dedent()
function from thetextwrap
module.