From cded24243292232160ff70f0597e741c90705e60 Mon Sep 17 00:00:00 2001 From: jeancf Date: Sun, 16 Jul 2023 21:53:14 +0200 Subject: [PATCH] Refine tag search --- twoot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/twoot.py b/twoot.py index 7507852..af5a378 100755 --- a/twoot.py +++ b/twoot.py @@ -653,12 +653,12 @@ def process_attachments(nitter_url, attachments_container, status_id, author_acc logging.debug("downloading video from twitter") import youtube_dl - video_path = vid_container.video['data-url'] + video_path = vid_container.source['src'] if video_path is not None: video_file = urljoin(nitter_url, video_path) ydl_opts = { 'outtmpl': "output/" + TOML['config']['twitter_account'] + "/" + status_id + "/%(id)s.%(ext)s", - 'format': "best[width<=500]", + # 'format': "best[width<=500]", 'socket_timeout': 60, 'quiet': True, }