Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added YouTube Downloader application to this repo #50

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

TheKidPadra
Copy link

@TheKidPadra TheKidPadra commented Jun 4, 2023

I wrote a YouTube downloader python application
I hope it's useful for this repo and gets merge
I learned a lot from this repo and I just wanted to make a contribution

I wrote a youtube downloader python application
@ibnaleem
Copy link
Contributor

ibnaleem commented Dec 2, 2023

You should handle errors for unavailable itags:

1) itag="17" and res="144p"
2) itag="18" and res="360p"
3) itag="22" and res="720p"

Enter the itag of your preferred stream to download:   3

Downloading...
Traceback (most recent call last):
  File "C:\Users\xxxx\Desktop\main.py", line 59, in <module>
    ys.download()
    ^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'download'

yt.streams.get_by_itag(tag) returns None because the stream with the specified itag is not available for the particular video.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants