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

Bilibili broken again #4750

Closed
shichao-an opened this issue Jan 19, 2015 · 3 comments
Closed

Bilibili broken again #4750

shichao-an opened this issue Jan 19, 2015 · 3 comments

Comments

@shichao-an
Copy link

@shichao-an shichao-an commented Jan 19, 2015

Version 2015.01.16 seemed to work a few days ago, although when tested with a 20-min video, youtude-dl only gets an 5-min clip (initial part of the video instead of the whole).

Now the entire extractor seems broken:

$ youtube-dl http://www.bilibili.com/video/av530528/index_11.html --verbose
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['http://www.bilibili.com/video/av530528/index_11.html', '--verbose']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2015.01.16
[debug] Python version 2.7.8 - Darwin-14.0.0-x86_64-i386-64bit
[debug] exe versions: none
[debug] Proxy map: {}
[BiliBili] 530528: Downloading webpage
ERROR: Unable to extract video code; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
  File "/Users/shichao/envs/youtube-dl/lib/python2.7/site-packages/youtube_dl/YoutubeDL.py", line 600, in extract_info
    ie_result = ie.extract(url)
  File "/Users/shichao/envs/youtube-dl/lib/python2.7/site-packages/youtube_dl/extractor/common.py", line 260, in extract
    return self._real_extract(url)
  File "/Users/shichao/envs/youtube-dl/lib/python2.7/site-packages/youtube_dl/extractor/bilibili.py", line 34, in _real_extract
    r'(?s)<div itemprop="video".*?>(.*?)</div>', webpage, 'video code')
  File "/Users/shichao/envs/youtube-dl/lib/python2.7/site-packages/youtube_dl/extractor/common.py", line 516, in _search_regex
    raise RegexNotFoundError('Unable to extract %s' % _name)
RegexNotFoundError: Unable to extract video code; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
@dstftw
Copy link
Collaborator

@dstftw dstftw commented Jan 20, 2015

Could you run it with --write-pages and upload *.dump files that will be created?

@shichao-an
Copy link
Author

@shichao-an shichao-an commented Jan 20, 2015

It seems it is working today (no broken problem), but still, only part of the whole video is downloaded. For the link above, the downloaded video (in flv format) is only 6 minutes long, though it should be approx 20 minutes.

I put the dump files in a single gist at https://gist.github.com/shichao-an/03e49eaf02fec307ad1a

@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Apr 30, 2015

The video you provide has multiple parts, and I've extend BiliBili extractor so that multipart videos can be downloaded correctly. (See c4a21bc) If you still encounter problems, feel free to open a new issue.

@yan12125 yan12125 closed this Apr 30, 2015
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
3 participants
You can’t perform that action at this time.