[YouTube] 太蛋疼了。。。 #45

Closed
soimort opened this Issue Dec 20, 2012 · 5 comments

Projects

None yet

2 participants

@soimort
Owner
➜  Downloads  you-get -i http://www.youtube.com/watch\?v\=CwhJGybSYkM
Traceback (most recent call last):
  File "/usr/bin/you-get", line 9, in <module>
    load_entry_point('you-get==0.3dev-20121219', 'console_scripts', 'you-get')()
  File "/usr/lib/python3.3/site-packages/you_get-0.3dev_20121219-py3.3.egg/you_get/main.py", line 60, in main
    script_main('you-get', any_download, any_download_playlist)
  File "/usr/lib/python3.3/site-packages/you_get-0.3dev_20121219-py3.3.egg/you_get/common.py", line 657, in script_main
    download_main(download, download_playlist, args, playlist, output_dir, merge, info_only)
  File "/usr/lib/python3.3/site-packages/you_get-0.3dev_20121219-py3.3.egg/you_get/common.py", line 577, in download_main
    download(url, output_dir = output_dir, merge = merge, info_only = info_only)
  File "/usr/lib/python3.3/site-packages/you_get-0.3dev_20121219-py3.3.egg/you_get/main.py", line 53, in any_download
    m.download(url, output_dir = output_dir, merge = merge, info_only = info_only)
  File "/usr/lib/python3.3/site-packages/you_get-0.3dev_20121219-py3.3.egg/you_get/downloader/youtube.py", line 59, in youtube_download
    youtube_download_by_id(id, None, output_dir, merge = merge, info_only = info_only)
  File "/usr/lib/python3.3/site-packages/you_get-0.3dev_20121219-py3.3.egg/you_get/downloader/youtube.py", line 36, in youtube_download_by_id
    url = unicodize(url)
  File "/usr/lib/python3.3/site-packages/you_get-0.3dev_20121219-py3.3.egg/you_get/common.py", line 48, in unicodize
    return re.sub(r'\\u([0-9A-Fa-f][0-9A-Fa-f][0-9A-Fa-f][0-9A-Fa-f])', lambda x: chr(int(x.group(0)[2:], 16)), text)
  File "/usr/lib/python3.3/re.py", line 170, in sub
    return _compile(pattern, flags).sub(repl, string, count)
TypeError: expected string or buffer
➜  Downloads  you-get -i http://www.youtube.com/watch\?v\=CwhJGybSYkM
Traceback (most recent call last):
  File "/usr/bin/you-get", line 9, in <module>
    load_entry_point('you-get==0.3dev-20121219', 'console_scripts', 'you-get')()
  File "/usr/lib/python3.3/site-packages/you_get-0.3dev_20121219-py3.3.egg/you_get/main.py", line 60, in main
    script_main('you-get', any_download, any_download_playlist)
  File "/usr/lib/python3.3/site-packages/you_get-0.3dev_20121219-py3.3.egg/you_get/common.py", line 657, in script_main
    download_main(download, download_playlist, args, playlist, output_dir, merge, info_only)
  File "/usr/lib/python3.3/site-packages/you_get-0.3dev_20121219-py3.3.egg/you_get/common.py", line 577, in download_main
    download(url, output_dir = output_dir, merge = merge, info_only = info_only)
  File "/usr/lib/python3.3/site-packages/you_get-0.3dev_20121219-py3.3.egg/you_get/main.py", line 53, in any_download
    m.download(url, output_dir = output_dir, merge = merge, info_only = info_only)
  File "/usr/lib/python3.3/site-packages/you_get-0.3dev_20121219-py3.3.egg/you_get/downloader/youtube.py", line 59, in youtube_download
    youtube_download_by_id(id, None, output_dir, merge = merge, info_only = info_only)
  File "/usr/lib/python3.3/site-packages/you_get-0.3dev_20121219-py3.3.egg/you_get/downloader/youtube.py", line 39, in youtube_download_by_id
    url = url + '&signature=' + sig
TypeError: Can't convert 'NoneType' object to str implicitly
@soimort soimort was assigned Dec 20, 2012
@soimort
Owner
➜  Downloads  you-get http://www.youtube.com/watch\?v\=0j-Wakm5B84
Traceback (most recent call last):
  File "/usr/bin/you-get", line 9, in <module>
    load_entry_point('you-get==0.3dev-20121219', 'console_scripts', 'you-get')()
  File "/usr/lib/python3.3/site-packages/you_get-0.3dev_20121219-py3.3.egg/you_get/main.py", line 60, in main
    script_main('you-get', any_download, any_download_playlist)
  File "/usr/lib/python3.3/site-packages/you_get-0.3dev_20121219-py3.3.egg/you_get/common.py", line 657, in script_main
    download_main(download, download_playlist, args, playlist, output_dir, merge, info_only)
  File "/usr/lib/python3.3/site-packages/you_get-0.3dev_20121219-py3.3.egg/you_get/common.py", line 577, in download_main
    download(url, output_dir = output_dir, merge = merge, info_only = info_only)
  File "/usr/lib/python3.3/site-packages/you_get-0.3dev_20121219-py3.3.egg/you_get/main.py", line 53, in any_download
    m.download(url, output_dir = output_dir, merge = merge, info_only = info_only)
  File "/usr/lib/python3.3/site-packages/you_get-0.3dev_20121219-py3.3.egg/you_get/downloader/youtube.py", line 59, in youtube_download
    youtube_download_by_id(id, None, output_dir, merge = merge, info_only = info_only)
  File "/usr/lib/python3.3/site-packages/you_get-0.3dev_20121219-py3.3.egg/you_get/downloader/youtube.py", line 36, in youtube_download_by_id
    url = unicodize(url)
  File "/usr/lib/python3.3/site-packages/you_get-0.3dev_20121219-py3.3.egg/you_get/common.py", line 48, in unicodize
    return re.sub(r'\\u([0-9A-Fa-f][0-9A-Fa-f][0-9A-Fa-f][0-9A-Fa-f])', lambda x: chr(int(x.group(0)[2:], 16)), text)
  File "/usr/lib/python3.3/re.py", line 170, in sub
    return _compile(pattern, flags).sub(repl, string, count)
TypeError: expected string or buffer
@soimort
Owner

this happens a lot recently. don't know why...

@soimort soimort added a commit that referenced this issue Dec 20, 2012
@soimort YouTube: quick dirty fix to #45 ccdeead
@soimort
Owner

a quick dirty fix (fallback every download to default quality & codecs)

will handle that crappy thing when I got a time.

@soimort soimort closed this in ee3d248 Dec 20, 2012
@soimort
Owner

➜  ~  you-get http://www.youtube.com/watch\?v\=0j-Wakm5B84
Video Site: YouTube.com
Title:      Qt5 on Raspberry Pi (from Devaamo Summit 2012)
Type:       WebM video (video/webm)
Size:       226.47 MB (237470527 Bytes)

Downloading Qt5 on Raspberry Pi (from Devaamo Summit 2012).webm ...
100.0% (226.5/226.5MB) [========================================] 1/1
@radaiming

泥好萌 XD

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment