Update api/src/processing/services/bilibili.js

Co-authored-by: wukko <me@wukko.me>
This commit is contained in:
charles 2025-05-05 16:52:09 +08:00 committed by GitHub
parent f9e3b00ab2
commit 86c4f2da15
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -17,7 +17,7 @@ function extractBestQuality(dashData) {
return [ bestVideo, bestAudio ]; return [ bestVideo, bestAudio ];
} }
async function com_download(id , episode = 1) { async function com_download(id, episode = 1) {
let fetchUrl = `https://bilibili.com/video/${id}`; let fetchUrl = `https://bilibili.com/video/${id}`;
if (episode > 1) { if (episode > 1) {
fetchUrl += `?p=${episode}` fetchUrl += `?p=${episode}`