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] bangumi links have changed. #22012

Open
thanksshu opened this issue Aug 5, 2019 · 6 comments · May be fixed by #24322
Open

[bilibili] bangumi links have changed. #22012

thanksshu opened this issue Aug 5, 2019 · 6 comments · May be fixed by #24322

Comments

@thanksshu
Copy link

@thanksshu thanksshu commented Aug 5, 2019

Checklist

  • I'm reporting a broken site support
  • I've verified that I'm running youtube-dl version 2019.08.02
  • I've checked that all provided URLs are alive and playable in a browser
  • I've checked that all URLs and arguments with special characters are properly quoted or escaped
  • I've searched the bugtracker for similar issues including closed ones

Verbose log

 .\youtube-dl.exe -v https://www.bilibili.com/bangumi/play/ss5802#100643
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', 'https://www.bilibili.com/bangumi/play/ss5802#100643']
[debug] Encodings: locale cp936, fs mbcs, out cp936, pref cp936
[debug] youtube-dl version 2019.08.02
[debug] Python version 3.4.4 (CPython) - Windows-10-10.0.18362
[debug] exe versions: none
[debug] Proxy map: {}
[generic] ss5802#100643: Requesting header
WARNING: Falling back on generic information extractor.
[generic] ss5802#100643: Downloading webpage
[generic] ss5802#100643: Extracting information
ERROR: Unsupported URL: https://www.bilibili.com/bangumi/play/ss5802#100643
Traceback (most recent call last):
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpjwvl_v2x\build\youtube_dl\YoutubeDL.py", line 796, in extract_info
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpjwvl_v2x\build\youtube_dl\extractor\common.py", line 530, in extract
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpjwvl_v2x\build\youtube_dl\extractor\generic.py", line 3333, in _real_extract
youtube_dl.utils.UnsupportedError: Unsupported URL: https://www.bilibili.com/bangumi/play/ss5802#100643

Description

Now BiliBili redirects the link http://bangumi.bilibili.com/anime/1869/play#40062 (which is a test in the bilibili extractor) to https://www.bilibili.com/bangumi/play/ss1869#40062. A new solution is needed ?

@1349422030
Copy link

@1349422030 1349422030 commented Nov 12, 2019

there month passed...

@snylonue snylonue linked a pull request that will close this issue Mar 11, 2020
5 of 9 tasks complete
@AtlasQuan
Copy link

@AtlasQuan AtlasQuan commented May 5, 2020

Any updates?

@ywwzwb ywwzwb mentioned this issue May 18, 2020
6 of 9 tasks complete
@tinytangent
Copy link

@tinytangent tinytangent commented Jul 21, 2020

https://www.bilibili.com/bangumi/play/ep and https://www.bilibili.com/bangumi/play/ss
are different kinds of address, and new anime seems to have all migrated to https://www.bilibili.com/bangumi/play/ss.

Not really familiar with reverse engineering those web video protocols but seems https://www.bilibili.com/bangumi/play/ss use a different protocol from https://www.bilibili.com/bangumi/play/ep. Because after reading the code of #25308 I noticed that it uses
https://api.bilibili.com/pgc/view/web/season?ep_id= to extract video info, but the ep_id is not the number after ss for addresses starting with https://www.bilibili.com/bangumi/play/ss.

Any ideas?
@ywwzwb @AtlasChuen @thanksshu

I also wonder why #25308 is still not merged...neither does #24322

@tinytangent
Copy link

@tinytangent tinytangent commented Jul 21, 2020

No...seems the protocol is not different, just the URL...After reading the API result I noticed something interesting. ss addresses might have a corresponsding ep address, for example:
https://www.bilibili.com/bangumi/play/ss3814
https://www.bilibili.com/bangumi/play/ep86635

It might be just the different API interface.

https://api.bilibili.com/pgc/view/web/season?season_id=3814
https://api.bilibili.com/pgc/view/web/season?ep_id=86635

@aboutqx
Copy link

@aboutqx aboutqx commented Aug 6, 2020

Could anyone merge some of these PRs?

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.

7 participants
You can’t perform that action at this time.