【速报】B站把you-get玩坏了 (´д`;) #106

Closed
soimort opened this Issue Feb 14, 2013 · 2 comments

Projects

None yet

1 participant

@soimort
Owner
➜  Downloads  you-get -i http://www.bilibili.tv/video/av463498/
Traceback (most recent call last):
  File "/usr/bin/you-get", line 9, in <module>
    load_entry_point('you-get==0.3.1rc', 'console_scripts', 'you-get')()
  File "/usr/lib/python3.3/site-packages/you_get-0.3.1rc-py3.3.egg/you_get/__main__.py", line 67, in main
    script_main('you-get', any_download, any_download_playlist)
  File "/usr/lib/python3.3/site-packages/you_get-0.3.1rc-py3.3.egg/you_get/common.py", line 664, 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.3.1rc-py3.3.egg/you_get/common.py", line 584, 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.3.1rc-py3.3.egg/you_get/__main__.py", line 60, 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.3.1rc-py3.3.egg/you_get/downloader/bilibili.py", line 89, in bilibili_download
    bilibili_download_by_cid(id, title, output_dir = output_dir, merge = merge, info_only = info_only)
  File "/usr/lib/python3.3/site-packages/you_get-0.3.1rc-py3.3.egg/you_get/downloader/bilibili.py", line 69, in bilibili_download_by_cid
    _, _, temp = url_info(url)
  File "/usr/lib/python3.3/site-packages/you_get-0.3.1rc-py3.3.egg/you_get/common.py", line 136, in url_info
    filename = parse.unquote(r1(r'filename="?(.+)"?', headers['content-disposition']))
  File "/usr/lib/python3.3/site-packages/you_get-0.3.1rc-py3.3.egg/you_get/common.py", line 37, in r1
    m = re.search(pattern, text)
  File "/usr/lib/python3.3/re.py", line 161, in search
    return _compile(pattern, flags).search(string)
TypeError: expected string or buffer
@soimort soimort was assigned Feb 14, 2013
@soimort
Owner

This regression appears only in git version, not in 0.3.0.
have no idea why...

@soimort
Owner

Commit 4aaa73d has caused this...

I'm fixing it.

@soimort soimort added a commit that closed this issue Feb 14, 2013
@soimort fix #106 0967d73
@soimort soimort closed this in 0967d73 Feb 14, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment