From 3204b82dfd81bbc347d3bf4e04f83297380ff0fb Mon Sep 17 00:00:00 2001 From: charles <30816317+charles7668@users.noreply.github.com> Date: Mon, 5 May 2025 16:52:43 +0800 Subject: [PATCH] Update api/src/processing/services/bilibili.js Co-authored-by: wukko --- api/src/processing/services/bilibili.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/api/src/processing/services/bilibili.js b/api/src/processing/services/bilibili.js index 67ec0acd..0ad1af4b 100644 --- a/api/src/processing/services/bilibili.js +++ b/api/src/processing/services/bilibili.js @@ -18,11 +18,7 @@ function extractBestQuality(dashData) { } async function com_download(id, episode = 1) { - let fetchUrl = `https://bilibili.com/video/${id}`; - if (episode > 1) { - fetchUrl += `?p=${episode}` - } - let html = await fetch(fetchUrl, { + const html = await fetch(`https://bilibili.com/video/${id}?p=${episode}`, { headers: { "user-agent": genericUserAgent }