[PR #1472] [MERGED] bilibili: use another user agent #10854

Closed
opened 2026-04-27 15:11:04 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/imputnet/cobalt/pull/1472
Author: @zImPatrick
Created: 11/21/2025
Status: Merged
Merged: 12/20/2025
Merged by: @dumbmoron

Base: developHead: bilibili-ua


📝 Commits (1)

  • fd1b36a api/bilibili: use another user agent

📊 Changes

1 file changed (+2 additions, -2 deletions)

View changed files

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

📄 Description

it seems that they're specifically allergic against user agents that start with Mozilla/ OR include the word github (that rules out the generic UA and the cobalt-specific UA in config.js), so I've just chosen to use facebookexternalhit/1.1 (+http://www.facebook.com/externalhit_uatext.php)

(also, the bilibili.com link with part id test seems to be broken because the video it depends on seems to be gone?)


🔄 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/1472 **Author:** [@zImPatrick](https://github.com/zImPatrick) **Created:** 11/21/2025 **Status:** ✅ Merged **Merged:** 12/20/2025 **Merged by:** [@dumbmoron](https://github.com/dumbmoron) **Base:** `develop` ← **Head:** `bilibili-ua` --- ### 📝 Commits (1) - [`fd1b36a`](https://github.com/imputnet/cobalt/commit/fd1b36a95b025d1c0b72b8db8326436768a41c58) api/bilibili: use another user agent ### 📊 Changes **1 file changed** (+2 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `api/src/processing/services/bilibili.js` (+2 -2) </details> ### 📄 Description it seems that they're specifically allergic against user agents that start with `Mozilla/` OR include the word `github` (that rules out the generic UA and the cobalt-specific UA in `config.js`), so I've just chosen to use `facebookexternalhit/1.1 (+http://www.facebook.com/externalhit_uatext.php)` (also, the `bilibili.com link with part id` test seems to be broken because the video it depends on seems to be gone?) --- <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-04-27 15:11:04 -05:00
Sign in to join this conversation.