mirror of
https://gitlab.com/jeancf/twoot.git
synced 2024-11-23 20:11:11 +00:00
Refine tag search
This commit is contained in:
parent
b1d56e1f96
commit
cded242432
4
twoot.py
4
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,
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user