mirror of
https://github.com/cquest/tootbot.git
synced 2024-11-27 14:01:07 +00:00
download only 1st video (avoid playlists in yt-dlp)
This commit is contained in:
parent
1165374824
commit
79f922af24
|
@ -286,7 +286,7 @@ else:
|
||||||
c = c.replace(l, '')
|
c = c.replace(l, '')
|
||||||
video = redir
|
video = redir
|
||||||
print('video:', video)
|
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)
|
(video,), shell=True, capture_output=False)
|
||||||
print("received")
|
print("received")
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user