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
Add support for Bilibili international (and download subtitles) #29279
Comments
@minhngoc25a Doing some early research, the single video link isn't a single video, it's a season. This is a single video: https://www.biliintl.com/en/play/35452/357787 |
@SuperSonicHub1 I've just recently found out that Subtitle Edit support Bilibili JSON subtitle format (.bcc or .json). |
youtube-dl should still be able to parse and convert it without outside help, and we should also include the original JSON just for good measure. |
@minhngoc25a The site also supports Siamese, using the URL scheme https://www.biliintl.com/th/ |
How to Crack Bilibili InternationalParse URL
Season
Episode
youtube-dl will have to mux the video and audio streams in post using a post-processor, a la the YouTube extractor. Input would be heavily appreciated on generating URLs for the other video streams. I'll probably not make the extractor myself, but I hope this is helpful to whoever does. |
Oh, totally forgot subtitles! Those can be requested with |
Another amendment; in order to get the proper subtitle URL, you'll need to iterate over each item in |
Yet another amendment; when doing that season request, if a "show" on BiliIntl has more than one season, there will be a {
"seasons": [
{
"title": "S1",
"season_id": 37653
},
{
"title": "S2",
"season_id": 1005556
}
]
} The episodes array will only contain the episodes relevant to the season ID requested. When a youtube-dl user gives us a URL that contains more than one season, should we download only the season from the season ID in the URL, or should we iterate over the seasons array and make multiple requests? |
I think it should be only the season ID in the URl. |
there's also global.bilibili.com, which is more of the same, best include that too. |
is it possible to add support for download subtitles from Bilibili.tv (.tv not .com) |
It was implemented in yt-dlp already. This repo is currently less active, maybe because the devs lost interest or IRL issues. |
You can use this script I wrote to download video, audio, sub: https://github.com/AdvMaple/biliintl_subtitle_download_plugin I haven't implement language choosing, but You can change it in the code. If you have difficulty installing or changing the code, just open an issue in the repo. |
.tv not .com |
I just tested it, still work, change change the "match" URL to fit your need. |
Thank you very much 💯 |
Go open issue in my repo. I don't want to clutterr this youtube-dl issue with other script problems. Sorry for causing you hassle. |
@AdvMaple help me, I have installed tampermonkey+script and changed the domain to bilibili.tv but tampermonkey when I check 'no scripts is running' the script is enabled, how to make this script active when I open bilibili.tv . thank you |
Open on issue in my repo, I don't want to clutter yt-dl with my script problem |
@AdvMaple yes, I have checked your repo and the results are the same, can you share the steps in the form of a video, it really helped me, you can share it on youtube or something :) |
https://user-images.githubusercontent.com/46006210/138014304-c4fa2476-bbc5-4f7e-8edc-3ccc91b474c5.mp4 |
Bilibili also change their URL from: www.biliint.com to www.bilibili.tv . I've updated my script to match their change. You probably test my script when I haven't known about these changes. |
@AdvMaple yes, this is very valuable for a money :) . Thank you for your hard work and the results are very satisfying. I have tried and it works :) |
Checklist
Example URLs
Description
Bilibili is like Youtube but in China. It also has an international site, which is used for Chinese animation and anime. The international version doesn't have a search bar, and you can't switch the subtitle on your own. "What's Wrong with My Big Brother" is the series name of the example URLs. It was used as an example since it's not geo-restricted. To get to my point, the Bilibili app on Android and iOS has more features such as switching subtitles, commenting and searching series. I've looked for many ways to switch the subtitle language to another one to download it, but it always ends up with the top one (when sorted by A-Z). Therefore, along with video downloading, I would like someone with great knowledge in this field to implement a multilanguage subtitle download solution. Note that Bilibili subtitles are usually in the JSON format (there is a converter for this) or CC and BCC (related repo).
The text was updated successfully, but these errors were encountered: