Refine tag search

This commit is contained in:
jeancf 2023-07-16 21:53:14 +02:00
parent b1d56e1f96
commit cded242432

View File

@ -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,
}