Ben 11 tháng trước cách đây
mục cha
commit
afda0dd1a7
1 tập tin đã thay đổi với 9 bổ sung3 xóa
  1. 9 3
      js/info.js

+ 9 - 3
js/info.js

@@ -201,7 +201,7 @@ detail = async (url, local) => {
             "channelURL": `https://www.youtube.com/channel/${originVideoDetails["channelId"]}`,
             "videoId": originVideoDetails["videoId"]
         }
-        return {
+        const ret = {
             "code": 200,
             "msg": "",
             "data": {
@@ -212,6 +212,8 @@ detail = async (url, local) => {
             },
             "id": "MusicDetailViewModel_detail_url"
         }
+        console.log(ret);
+        return ret;
     } catch (e) {
         console.log(e);
         return {
@@ -257,7 +259,7 @@ search = async (keyword, next, local) => {
                     });
                 }
             }
-            return {
+            const ret = {
                 "code": 200,
                 "msg": "",
                 "data": {
@@ -269,6 +271,8 @@ search = async (keyword, next, local) => {
                 },
                 "id": "MusicSearchResultViewModel_search_result"
             }
+            console.log(ret);
+            return ret;
         } else {
             let url = `https://www.youtube.com/results?q=${encodeURIComponent(keyword)}&sp=EgIQAQ%253D%253D`;
 
@@ -315,7 +319,7 @@ search = async (keyword, next, local) => {
             }
             next["continuation"] = ytInitialDataResp["contents"]["twoColumnSearchResultsRenderer"]["primaryContents"]["sectionListRenderer"]["contents"][1]["continuationItemRenderer"]["continuationEndpoint"]["continuationCommand"]["token"]
 
-            return {
+            const ret = {
                 "code": 200,
                 "msg": "",
                 "data": {
@@ -324,6 +328,8 @@ search = async (keyword, next, local) => {
                 },
                 "id": "MusicSearchResultViewModel_search_result"
             }
+            console.log(ret);
+            return ret;
         }
     } catch (e) {
         console.log(e);