do not download very large video files !

This commit is contained in:
cquest 2023-02-09 16:51:53 +01:00
parent fba2318929
commit 887474a1f3

View File

@ -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: