From af263ce55f27672dd04f6ec129dff46baf89c9a5 Mon Sep 17 00:00:00 2001 From: Robin Universe Date: Sun, 4 Jul 2021 16:54:23 -0500 Subject: [PATCH] fixed it for the /info/ path too --- twitfix.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/twitfix.py b/twitfix.py index 9ad2e94..136074b 100644 --- a/twitfix.py +++ b/twitfix.py @@ -51,7 +51,7 @@ def twitfix(subpath): @app.route('/info/') def info(subpath): - with ydl: + with youtube_dl.YoutubeDL({'outtmpl': '%(id)s.%(ext)s'}) as ydl: result = ydl.extract_info(subpath, download=False) return result