yemingfeng 4 months ago
parent
commit
7ffad33874
1 changed files with 1 additions and 1 deletions
  1. 1 1
      js/youtube/youtubev1.js

+ 1 - 1
js/youtube/youtubev1.js

@@ -226,7 +226,7 @@ detail = async (url, requestId, platform) => {
         console.log(`after android api, format size:${originFormats.length}`);
 
         let audioUrl = ""
-        for (let format of originFormats) {
+        for (let format of [...originFormats].reverse()) {
             if (format["url"]) {
                 const {vcodec, acodec} = parseCodecs(format)
                 if (!vcodec && acodec) {