Skip to content
This repository

[bilibili] 老视频来源是youku时的特殊情况. #123

Closed
NStal opened this Issue March 06, 2013 · 2 comments

2 participants

NStal Mort Yao
NStal
NStal commented March 06, 2013

视频比较老
地址是:http://www.bilibili.tv/video/av323195/

Traceback (most recent call last):
  File "/usr/bin/you-get", line 9, in <module>
    load_entry_point('you-get==0.3.3', 'console_scripts', 'you-get')()
  File "/usr/lib/python3.3/site-packages/you_get/__main__.py", line 70, in main
    script_main('you-get', any_download, any_download_playlist)
  File "/usr/lib/python3.3/site-packages/you_get/common.py", line 667, in script_main
    download_main(download, download_playlist, args, playlist, output_dir, merge, info_only)
  File "/usr/lib/python3.3/site-packages/you_get/common.py", line 587, in download_main
    download(url, output_dir = output_dir, merge = merge, info_only = info_only)
  File "/usr/lib/python3.3/site-packages/you_get/__main__.py", line 63, 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/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/downloader/bilibili.py", line 65, in bilibili_download_by_cid
    raise NotImplementedError(urls[0])
NotImplementedError: http://f.youku.com/player/getFlvPath/sid/00_00/st/flv/fileid/03000201004F6BEC7757740304A26CE615BEA9-C7A0-D181-69C1-905596C6D22E?K=8fa35b26f84b74102411537f
NStal
NStal commented March 06, 2013

貌似增加一个/flv/的检测就好了.

*** bilibili.py 2013-03-07 00:51:44.048507248 +0800
--- bilibili.fix.py 2013-03-07 00:59:12.266079045 +0800
***************
*** 59,64 ****
--- 59,66 ----

      if re.search(r'\.(flv|hlv)\b', urls[0]):
          type = 'flv'
+     elif re.search(r'/flv/', urls[0]):
+         type = 'flv'
      elif re.search(r'/mp4/', urls[0]):
          type = 'mp4'
      else:
Mort Yao soimort closed this issue from a commit March 07, 2013
NStal fix #123 for bilibili 473ad73
Mort Yao soimort closed this in 473ad73 March 06, 2013
Mort Yao
Owner

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.