shawenguan 1 yıl önce
ebeveyn
işleme
1a202e87a9
1 değiştirilmiş dosya ile 2 ekleme ve 1 silme
  1. 2 1
      Scripts/bilibili/bilibiliHelper.js

+ 2 - 1
Scripts/bilibili/bilibiliHelper.js

@@ -1251,7 +1251,7 @@ async function dynamic() {
                 "cookie": config.cookieStr
             }
         };
-        await magicJS.http.get(myRequest).then(response => {
+        magicJS.http.get(myRequest).then(response => {
             try {
                 const body = response.body;
                 if (body?.data?.cards) {
@@ -1265,6 +1265,7 @@ async function dynamic() {
             } catch (e) {
                 magicJS.logger.error(JSON.stringify(e));
             }
+            resolve();
         }).catch(err => {
             const msg = `获取首页视频异常\n${JSON.stringify(err)}`;
             magicJS.logger.error(msg);