shubham1710 / Youtube-downloader

It is a simple YouTube downloader which takes URL of the YouTube Video from the user and saves it in your device. Multiple Video downloads at the same time are also supported by this downloader.
60 stars 23 forks source link

'NoneType' object has no attribute 'download' #15

Closed dhanushreddy291 closed 1 year ago

dhanushreddy291 commented 2 years ago

Getting this error while downloading:

Enter the number of youtube videos to download:   1

Enter all the links one per line:
https://www.youtube.com/watch?v=W93XyXHI8Nw

Details for Video 1 

Title of video:    Is Civilization on the Brink of Collapse?
Number of views:   7303133
Length of video:   693 seconds

All available options for downloads:

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 "/home/coder/project/pypi/code.py", line 46, in <module>
    ys.download()
AttributeError: 'NoneType' object has no attribute 'download'
shubham1710 commented 1 year ago

https://stackoverflow.com/questions/65226109/pytube-error-attributeerror-nonetype-object-has-no-attribute-download

Please refer here.