download only 1st video (avoid playlists in yt-dlp)

This commit is contained in:
cquest 2023-01-15 09:35:28 +01:00
parent 1165374824
commit 79f922af24

View File

@ -286,7 +286,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 %s' %
subprocess.run('rm -f out.mp4; yt-dlp -N 8 -o out.mp4 --recode-video mp4 --no-playlist %s' %
(video,), shell=True, capture_output=False)
print("received")
try: