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

TypeError: object of type 'generator' has no len() #4465

Closed
computerfreak105 opened this issue Dec 14, 2014 · 1 comment
Closed

TypeError: object of type 'generator' has no len() #4465

computerfreak105 opened this issue Dec 14, 2014 · 1 comment

Comments

@computerfreak105
Copy link

@computerfreak105 computerfreak105 commented Dec 14, 2014

Hi, this url doesn't work for me:
https://www.youtube.com/channel/UCRqPLUhVrHf2aBWG45vsQNg

D:>youtube-dl -f 140/m4a -o d:\yt/%(uploader)s/%(title)s_%(upload_date)s.%(ext)
s -a yt.txt --verbose
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['-f', '140/m4a', '-o', 'd:\yt/%(uploader)s/%(title)
s_%(upload_date)s.%(ext)s', '-a', 'yt.txt', '--verbose']
[debug] Batch file urls: [u'https://www.youtube.com/channel/UCRqPLUhVrHf2aBWG45v
sQNg', u'https://www.youtube.com/channel/UCTrzehjmmSq8LGelmdVgkSQ', u'https://ww
w.youtube.com/channel/UC6hF8KUR8IBl79elnmmyxtg', u'https://www.youtube.com/chann
el/UClSI_tMwPf7jML91xBV4TIQ']
[debug] Encodings: locale cp1252, fs mbcs, out cp850, pref cp1252
[debug] youtube-dl version 2014.12.14
[debug] Python version 2.7.8 - Windows-XP-5.1.2600-SP3
[debug] exe versions: none
[debug] Proxy map: {}
[youtube:channel] UCRqPLUhVrHf2aBWG45vsQNg: Downloading webpage
[download] Downloading playlist: UCRqPLUhVrHf2aBWG45vsQNg
[youtube:channel] playlist UCRqPLUhVrHf2aBWG45vsQNg: Downloading 18 videos
[download] Downloading video #1 of 18
[youtube] cssnsNZkaHU: Downloading webpage
[youtube] cssnsNZkaHU: Extracting video information
[youtube] cssnsNZkaHU: Downloading DASH manifest
[debug] Invoking downloader on 'https://r7---sn-nfpnnjvh-1giz.googlevideo.com/vi
deoplayback?id=72cb27b0d6646875&itag=140&source=youtube&requiressl=yes&ms=au&mm=
31&gcr=ch&mv=m&ratebypass=yes&mime=audio/mp4&gir=yes&clen=43419819&lmt=141692649
3237674&dur=2704.590&key=dg_yt0&sver=3&fexp=900064,900718,901493,927622,932404,9
405645,9405855,943917,947209,947218,948124,952302,952605,952901,953912,955301,95
7103,957105,957201&mt=1418537162&signature=0E6CA914561781F920A30F1288141E764160E
A95.7278400F519BF21659A58818ED0BFC9797936ACA&upn=3QmmOsMrnOE&ip=178.192.42.248&i
pbits=0&expire=1418558781&sparams=ip,ipbits,expire,id,itag,source,requiressl,ms,
mm,gcr,mv,ratebypass,mime,gir,clen,lmt,dur'
Traceback (most recent call last):
File "main.py", line 19, in
File "youtube_dl__init__.pyo", line 356, in main
File "youtube_dl__init__.pyo", line 346, in _real_main
File "youtube_dl\YoutubeDL.pyo", line 1129, in download
File "youtube_dl\YoutubeDL.pyo", line 566, in extract_info
File "youtube_dl\YoutubeDL.pyo", line 698, in process_ie_result
File "youtube_dl\YoutubeDL.pyo", line 619, in process_ie_result
File "youtube_dl\YoutubeDL.pyo", line 566, in extract_info
File "youtube_dl\YoutubeDL.pyo", line 612, in process_ie_result
File "youtube_dl\YoutubeDL.pyo", line 901, in process_video_result
File "youtube_dl\YoutubeDL.pyo", line 1099, in process_info
File "youtube_dl\YoutubeDL.pyo", line 1075, in dl
File "youtube_dl\downloader\common.pyo", line 297, in download
File "youtube_dl\downloader\http.pyo", line 157, in real_download
File "youtube_dl\utils.pyo", line 244, in sanitize_open
File "ntpath.pyo", line 64, in join
File "ntpath.pyo", line 114, in splitdrive
TypeError: object of type 'generator' has no len()

Hope this helps.
Thanks
Ben

@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Dec 14, 2014

Duplicate of #4324.

@jaimeMF jaimeMF closed this Dec 14, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.