mirror of
https://github.com/cquest/tootbot.git
synced 2024-11-23 20:11:06 +00:00
do not download very large video files !
This commit is contained in:
parent
fba2318929
commit
887474a1f3
|
@ -290,7 +290,7 @@ else:
|
|||
c = c.replace(l, '')
|
||||
video = redir
|
||||
print('video:', video)
|
||||
subprocess.run('rm -f out.mp4; yt-dlp -N 8 -o out.mp4 --recode-video mp4 --no-playlist %s' %
|
||||
subprocess.run('rm -f out.mp4; yt-dlp -N 8 -o out.mp4 --recode-video mp4 --no-playlist %s --max-filesize 100M' %
|
||||
(video,), shell=True, capture_output=False)
|
||||
print("received")
|
||||
try:
|
||||
|
|
Loading…
Reference in New Issue
Block a user