|
@@ -17,7 +17,11 @@ def get_key(url: str) -> str:
|
|
@cachetools.cached(cache=cachetools.TTLCache(maxsize=100000, ttl=60 * 5))
|
|
@cachetools.cached(cache=cachetools.TTLCache(maxsize=100000, ttl=60 * 5))
|
|
def fetch_info(url):
|
|
def fetch_info(url):
|
|
logging.info(f"fetching: {url}")
|
|
logging.info(f"fetching: {url}")
|
|
- with yt_dlp.YoutubeDL({"flat-playlist": True, "extract_flat": "flat-playlist"}) as ydl:
|
|
|
|
|
|
+ with yt_dlp.YoutubeDL({
|
|
|
|
+ "flat-playlist": True,
|
|
|
|
+ "extract_flat": "flat-playlist",
|
|
|
|
+ "proxy": "socks5-proxy-69759aa5e4d9b48a.elb.us-east-1.amazonaws.com"
|
|
|
|
+ }) as ydl:
|
|
info = ydl.extract_info(url, download=False)
|
|
info = ydl.extract_info(url, download=False)
|
|
return info
|
|
return info
|
|
|
|
|