[PR #1551] api/bilibili: fetch playinfo from their api #12800

Open
opened 2026-05-08 09:25:48 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/imputnet/cobalt/pull/1551
Author: @zImPatrick
Created: 5/5/2026
Status: 🔄 Open

Base: developHead: pr/bilibili


📝 Commits (1)

  • 6fa4cef api/bilibili: fix by fetching playinfo from their api

📊 Changes

1 file changed (+38 additions, -5 deletions)

View changed files

📝 api/src/processing/services/bilibili.js (+38 -5)

📄 Description

Bilibili downloading broke a few days ago because they just stopped returning __playinfo__ for some requests?
Getting the aid (video id), cid (channel id..?) and bvid (this one isn't actually required but why not) and sending those to the endpoint the site uses when it has no playinfo seems to work just fine

The only thing that matters when calling that endpoint is the Referer header, otherwise you don't get a successful response

Should fix #1545


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/imputnet/cobalt/pull/1551 **Author:** [@zImPatrick](https://github.com/zImPatrick) **Created:** 5/5/2026 **Status:** 🔄 Open **Base:** `develop` ← **Head:** `pr/bilibili` --- ### 📝 Commits (1) - [`6fa4cef`](https://github.com/imputnet/cobalt/commit/6fa4cefd2d9b77b47cf62ade794f709de91661fb) api/bilibili: fix by fetching playinfo from their api ### 📊 Changes **1 file changed** (+38 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `api/src/processing/services/bilibili.js` (+38 -5) </details> ### 📄 Description Bilibili downloading broke a few days ago because they just stopped returning `__playinfo__` for some requests? Getting the aid (video id), cid (channel id..?) and bvid (this one isn't actually required but why not) and sending those to the endpoint the site uses when it has no playinfo seems to work just fine The only thing that matters when calling that endpoint is the `Referer` header, otherwise you don't get a successful response Should fix #1545 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-05-08 09:25:48 -05:00
Sign in to join this conversation.