瀏覽代碼

mod: cache

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

+ 0 - 2
app.py

@@ -1,7 +1,6 @@
 import logging
 
 import boto3
-import cachetools
 import yt_dlp
 from flask import Flask, request
 
@@ -15,7 +14,6 @@ def get_key(url: str) -> str:
     return f"v2:{url}"
 
 
-@cachetools.cached(cache=cachetools.TTLCache(maxsize=100000, ttl=60 * 5))
 def fetch_info(url):
     logging.info(f"fetching: {url}")
     with yt_dlp.YoutubeDL({