mirror of
https://github.com/imputnet/cobalt.git
synced 2025-06-28 09:28:29 +00:00
Update api/src/processing/services/bilibili.js
Co-authored-by: wukko <me@wukko.me>
This commit is contained in:
parent
f9e3b00ab2
commit
86c4f2da15
@ -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}`
|
||||||
|
Loading…
Reference in New Issue
Block a user