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] New Year Festa url and variable video formats support #24000

Open
3 tasks done
jc3213 opened this issue Feb 9, 2020 · 0 comments
Open
3 tasks done

[bilibili] New Year Festa url and variable video formats support #24000

jc3213 opened this issue Feb 9, 2020 · 0 comments

Comments

@jc3213
Copy link

jc3213 commented Feb 9, 2020

Checklist

  • I'm reporting a site feature request
  • I've verified that I'm running youtube-dl version 2020.01.24
  • I've searched the bugtracker for similar site feature requests including closed ones

Description

Part 1, Bilibili New Year Festa URL support

The Bilibili New Year Festa [Known as 哔哩哔哩拜年祭] video urls are not supported
URL: https://www.bilibili.com/blackboard/bnj2020.html?aid=78978587

[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-f', 'bestvideo[height=720]+bestaudio/best[height=720]', '-o', 'R:\\temp\\Youtube\\%(title)s.%(ext)s', '--download-archive', 'youtube-dl.txt', 'https://www.bilibili.com/blackboard/bnj2020.html?aid=78978587', '--verbose']
[debug] Encodings: locale cp1252, fs mbcs, out cp437, pref cp1252
[debug] youtube-dl version 2020.01.24
[debug] Python version 3.4.4 (CPython) - Windows-10-10.0.17763
[debug] exe versions: ffmpeg 4.2.2
[debug] Proxy map: {}
[generic] bnj2020: Requesting header
WARNING: Falling back on generic information extractor.
[generic] bnj2020: Downloading webpage
[generic] bnj2020: Extracting information
ERROR: Unsupported URL: https://www.bilibili.com/blackboard/bnj2020.html?aid=78978587
Traceback (most recent call last):
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpw0w300z1\build\youtube_dl\YoutubeDL.py", line 796, in extract_info
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpw0w300z1\build\youtube_dl\extractor\common.py", line 530, in extract
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpw0w300z1\build\youtube_dl\extractor\generic.py", line 3350, in _real_extract
youtube_dl.utils.UnsupportedError: Unsupported URL: https://www.bilibili.com/blackboard/bnj2020.html?aid=78978587

Even I use the video [avcode] link, it won't work.
URL: https://www.bilibili.com/video/av78978587

[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-f', 'bestvideo+bestaudio/best', '-o', 'R:\\temp\\Youtube\\%(title)s.%(ext)s', '--download-archive', 'youtube-dl.txt', 'https://www.bilibili.com/video/av78978587', '--verbose']
[debug] Encodings: locale cp1252, fs mbcs, out cp437, pref cp1252
[debug] youtube-dl version 2020.01.24
[debug] Python version 3.4.4 (CPython) - Windows-10-10.0.17763
[debug] exe versions: ffmpeg 4.2.2
[debug] Proxy map: {}
[BiliBili] 78978587: Downloading webpage
[BiliBili] 78978587: Downloading video info page
ERROR: Unable to extract title; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpw0w300z1\build\youtube_dl\YoutubeDL.py", line 796, in extract_info
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpw0w300z1\build\youtube_dl\extractor\common.py", line 530, in extract
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpw0w300z1\build\youtube_dl\extractor\bilibili.py", line 197, in _real_extract
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpw0w300z1\build\youtube_dl\extractor\common.py", line 1014, in _html_search_regex
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpw0w300z1\build\youtube_dl\extractor\common.py", line 1005, in _search_regex
youtube_dl.utils.RegexNotFoundError: Unable to extract title; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.

Part 2, Variable video formats support [720P, 1080P+]

I'm using parameters -f "bestvideo[height=720]+bestaudio/best[height=720]", but youtube-dl reports the request format is not available,
URL: https://www.bilibili.com/video/av87033247

[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-f', 'bestvideo[height=720]+bestaudio/best[height=720]', '-o', 'R:\\temp\\Youtube\\%(title)s.%(ext)s', '--download-archive', 'youtube-dl.txt', 'https://www.bilibili.com/video/av87033247', '--verbose']
[debug] Encodings: locale cp1252, fs mbcs, out cp437, pref cp1252
[debug] youtube-dl version 2020.01.24
[debug] Python version 3.4.4 (CPython) - Windows-10-10.0.17763
[debug] exe versions: ffmpeg 4.2.2
[debug] Proxy map: {}
[BiliBili] 87033247: Downloading webpage
[BiliBili] 87033247: Downloading video info page
ERROR: requested format not available
Traceback (most recent call last):
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpw0w300z1\build\youtube_dl\YoutubeDL.py", line 807, in extract_info
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpw0w300z1\build\youtube_dl\YoutubeDL.py", line 862, in process_ie_result
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpw0w300z1\build\youtube_dl\YoutubeDL.py", line 1635, in process_video_result
youtube_dl.utils.ExtractorError: requested format not available

While bestvideo+bestaudio/best only downloads 1080P, not 1080P+[VIP] for me. I've sent log-in information using -u xxxxx -p yyyyy [My account is VIP too]

[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-f', 'bestvideo+bestaudio/best', '-o', 'R:\\Temp\\Youtube\\%(title)s.%(ext)s', '--download-archive', 'youtube-dl.txt', 'https://www.bilibili.com/video/av87033247', '-u', 'PRIVATE', '-p', 'PRIVATE', '-v']
[debug] Encodings: locale cp1252, fs mbcs, out cp437, pref cp1252
[debug] youtube-dl version 2020.01.24
[debug] Python version 3.4.4 (CPython) - Windows-10-10.0.17763
[debug] exe versions: ffmpeg 4.2.2
[debug] Proxy map: {}
[BiliBili] 87033247: Downloading webpage
[BiliBili] 87033247: Downloading video info page
[debug] Invoking downloader on 'http://upos-hz-mirrorks3u.acgvideo.com/upgcxcode/53/39/148723953/148723953-1-80.flv?e=ig8euxZM2rNcNbhghwdVhoMzhbdVhwdEto8g5X10ugNcXBlqNxHxNEVE5XREto8KqJZHUa6m5J0SqE85tZvEuENvNC8xNEVE9EKE9IMvXBvE2ENvNCImNEVEK9GVqJIwqa80WXIekXRE9IMvXBvEuENvNCImNEVEua6m2jIxux0CkF6s2JZv5x0DQJZY2F8SkXKE9IB5QK==&deadline=1581222648&gen=playurl&nbs=1&oi=3062535427&os=ks3u&platform=pc&trid=97d25758cb26496380efa946fb8289f0&uipk=5&upsig=0c1795e8be994d226087f233808444a1&uparams=e,deadline,gen,nbs,oi,os,platform,trid,uipk&mid=0'
[download] Destination: R:\Temp\Youtube\互动视频【明日方舟】【动画】局部坏死-为何而战.flv
[download] 100% of 10.85MiB in 00:31

I've got the 1080P+[VIP] download url via Bilibili Helper: Bilibili.com Auxiliary, and the link is http://upos-sz-mirrorhw.bilivideo.com/upgcxcode/53/39/148723953/148723953-1-112.flv?e=ig8euxZM2rNcNb4HhWdVhoM3nWRVhwdEto8g5X10ugNcXBlqNxHxNEVE5XREto8KqJZHUa6m5J0SqE85tZvEuENvNo8g2ENvNo8i8o859r1qXg8xNEVE5XREto8GuFGv2U7SuxI72X6fTr859r1qXg8gNEVE5XREto8z5JZC2X2gkX5L5F1eTX1jkXlsTXHeux_f2o859IB_&uipk=5&nbs=1&deadline=1581222769&gen=playurl&os=hwbv&oi=3062535427&trid=a135c4f3cd154259b642c15c7135ea39u&platform=pc&upsig=32b5f8e6846d6941261831c189dab70f&uparams=e,uipk,nbs,deadline,gen,os,oi,trid,platform&mid=27109 and the file size is 16.7MB

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant