ytdl options
This commit is contained in:
parent
ba12e2844e
commit
eead1cdc80
@ -31,12 +31,14 @@ def executeYoutubeDL(url, cb):
|
||||
dirpath + "/bin/youtube-dl",
|
||||
"-o", "-",
|
||||
"-f", "bestaudio/best",
|
||||
# "--extract-audio",
|
||||
"--audio-format", "mp3",
|
||||
"--prefer-ffmpeg",
|
||||
#"--postprocessor-args", "-re",
|
||||
#"--external-downloader", "ffmpeg",
|
||||
#"--external-downloader-args", "-re",
|
||||
"--no-mark-watched",
|
||||
"--geo-bypass",
|
||||
"--no-playlist",
|
||||
"--retries", "100",
|
||||
"--buffer-size", "1M"
|
||||
"--no-call-home"
|
||||
url
|
||||
]
|
||||
popen = subprocess.Popen(cmd, env=env, stdout=subprocess.PIPE, stderr=subprocess.PIPE, preexec_fn=os.setsid)
|
||||
|
2
radio.py
2
radio.py
@ -17,8 +17,8 @@ def run():
|
||||
process.stdin.write(chunk)
|
||||
return False
|
||||
|
||||
downloader.download('https://www.youtube.com/watch?v=BaW_jenozKc', cb)
|
||||
downloader.download('https://www.youtube.com/watch?v=EbnH3VHzhu8', cb)
|
||||
# downloader.download('https://www.youtube.com/watch?v=BaW_jenozKc', cb)
|
||||
# downloader.download('https://www.youtube.com/watch?v=kgBcg4uBd9Q', cb)
|
||||
# downloader.download('https://www.youtube.com/watch?v=EbnH3VHzhu8', cb)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user