Ben 11 月之前
父節點
當前提交
79319a1c90
共有 2 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      app.py
  2. 0 0
      data.json

+ 2 - 1
app.py

@@ -15,7 +15,8 @@ def extract():
     result = db.search(lambda x: x["url"] == url)
     if result:
         logging.info("find from data.json, so return")
-        return result[0]
+        if result[0].get("result"):
+            return result[0].get("result")
     logging.info(f"url: ${url}")
     with yt_dlp.YoutubeDL({"flat-playlist": True, "extract_flat": "flat-playlist"}) as ydl:
         info = ydl.extract_info(url, download=False)

文件差異過大導致無法顯示
+ 0 - 0
data.json


部分文件因文件數量過多而無法顯示