|
@@ -243,12 +243,12 @@ detail = async (url, requestId, platform) => {
|
|
|
}
|
|
|
fallbackFormats = fallbackFormats.concat(currentFormats);
|
|
|
} catch (e) {
|
|
|
- console.log(`can not found format android fallback api error: ${e}`);
|
|
|
+ // console.log(`can not found format android fallback api error: ${e}`);
|
|
|
// const ret = {
|
|
|
// "code": -1, "msg": e.toString()
|
|
|
// }
|
|
|
// console.log(`detail2 fallback result error: ${JSON.stringify(ret)}`);
|
|
|
- return ret;
|
|
|
+ // return ret;
|
|
|
}
|
|
|
|
|
|
let audioUrl = ""
|
|
@@ -261,6 +261,17 @@ detail = async (url, requestId, platform) => {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+ if (audioUrl == "") {
|
|
|
+ for (let format in originFormats) {
|
|
|
+ if (format["url"]) {
|
|
|
+ const {vcodec, acodec} = parseCodecs(format)
|
|
|
+ if (!vcodec && acodec) {
|
|
|
+ audioUrl = format["url"]
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
const formats = [];
|
|
|
const qualities = [];
|