-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1. Imported the `pytube` library to handle YouTube video downloads. 2. Added a new function `download_youtube_video()` to handle YouTube video downloads with quality options. 3. Added a check to detect YouTube links in the user input and invoke the `download_youtube_video()` function if a YouTube link is detected. 4. 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). 5. Updated the error handling to catch exceptions specific to YouTube video downloads. 6. Introduced formatted text box display for the available quality options using the `dedent()` function from the `textwrap` module.
- Loading branch information
Showing
1 changed file
with
63 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters