소스 검색

mod: youtube

Ben 9 달 전
부모
커밋
c564427a0c
6개의 변경된 파일10개의 추가작업 그리고 10개의 파일을 삭제
  1. 0 0
      js/pornhub.bundle.js
  2. 0 0
      js/tiktok.bundle.js
  3. 0 0
      js/xvideos.bundle.js
  4. 0 0
      js/youtube.bundle.js
  5. 10 10
      js/youtube/youtube.js
  6. 0 0
      js/youtube_audio.bundle.js

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 0
js/pornhub.bundle.js


파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 0
js/tiktok.bundle.js


파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 0
js/xvideos.bundle.js


파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 0
js/youtube.bundle.js


+ 10 - 10
js/youtube/youtube.js

@@ -182,7 +182,7 @@ detail = async (url, platform) => {
             console.log(`android api result: ${JSON.stringify(apiResp)}`);
             const res = JSON.parse(apiData);
             const currentFormats = [];
-            for (const format of [].concat(res["streamingData"]["formats"]).concat(res["streamingData"]["adaptiveFormats"])) {
+            for (const format of [].concat(res["streamingData"]["formats"] || []).concat(res["streamingData"]["adaptiveFormats"] || [])) {
                 if (format) {
                     format["from"] = "android"
                     currentFormats.push(format);
@@ -201,15 +201,15 @@ detail = async (url, platform) => {
         console.log(`after android api, format size:${originFormats.length}`);
 
         // web
-        const currentFormats = [];
-        for (const format of ytInitialPlayerResponse["streamingData"]["formats"].concat(ytInitialPlayerResponse["streamingData"]["adaptiveFormats"])) {
-            if (format) {
-                format["from"] = "web"
-                currentFormats.push(format);
-            }
-        }
-        originFormats = originFormats.concat(currentFormats);
-        console.log(`after html, format size:${originFormats.length}`);
+        // const currentFormats = [];
+        // for (const format of ytInitialPlayerResponse["streamingData"]["formats"].concat(ytInitialPlayerResponse["streamingData"]["adaptiveFormats"])) {
+        //     if (format) {
+        //         format["from"] = "web"
+        //         currentFormats.push(format);
+        //     }
+        // }
+        // originFormats = originFormats.concat(currentFormats);
+        // console.log(`after html, format size:${originFormats.length}`);
 
         let qualities = [];
         const formats = [];

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 0
js/youtube_audio.bundle.js


이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.