Update app.py
Browse files
app.py
CHANGED
@@ -67,7 +67,8 @@ def get_video_link(req: VideoRequest):
|
|
67 |
'format': 'best[height<=720][width<=1280]',
|
68 |
'skip_download': True,
|
69 |
'forceurl': True,
|
70 |
-
'cookies': COOKIES_PATH if os.path.isfile(COOKIES_PATH) else None
|
|
|
71 |
}
|
72 |
try:
|
73 |
with yt_dlp.YoutubeDL(ydl_opts) as ydl:
|
|
|
67 |
'format': 'best[height<=720][width<=1280]',
|
68 |
'skip_download': True,
|
69 |
'forceurl': True,
|
70 |
+
'cookies': COOKIES_PATH if os.path.isfile(COOKIES_PATH) else None
|
71 |
+
'cache_dir': False
|
72 |
}
|
73 |
try:
|
74 |
with yt_dlp.YoutubeDL(ydl_opts) as ydl:
|