Skip to content

Commit 1ad54bc

Browse files
authored
api/bilibili: use another user agent (#1472)
1 parent 91989b8 commit 1ad54bc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

api/src/processing/services/bilibili.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { genericUserAgent, env } from "../../config.js";
1+
import { env } from "../../config.js";
22
import { resolveRedirectingURL } from "../url.js";
33

44
// TO-DO: higher quality downloads (currently requires an account)
@@ -26,7 +26,7 @@ async function com_download(id, partId) {
2626

2727
const html = await fetch(url, {
2828
headers: {
29-
"user-agent": genericUserAgent
29+
"user-agent": "facebookexternalhit/1.1 (+http://www.facebook.com/externalhit_uatext.php)",
3030
}
3131
})
3232
.then(r => r.text())

0 commit comments

Comments
 (0)