it's resilient
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
#!/usr/bin/python3
|
||||
import os
|
||||
#!/usr/bin/env python3
|
||||
import youtube_dl
|
||||
|
||||
|
||||
@@ -13,7 +12,7 @@ if __name__ == "__main__":
|
||||
ydl_parameters = {
|
||||
"format": "bestaudio/best",
|
||||
"postprocessors": [{"key": "FFmpegExtractAudio", "preferredcodec": "vorbis"}],
|
||||
"outtmpl": f"{songs_folder}/%(title)s.ogg",
|
||||
"outtmpl": f"{songs_folder}/%(title)s.godwin",
|
||||
"ignoreerrors": True,
|
||||
"restrictfilenames": True,
|
||||
}
|
||||
@@ -25,7 +24,7 @@ if __name__ == "__main__":
|
||||
|
||||
# Radio Bullshit Jingles
|
||||
## change output path for Radio Bullshit jingles
|
||||
ydl_parameters["outtmpl"] = f"{jingles_folder}/%(title)s.ogg"
|
||||
ydl_parameters["outtmpl"] = f"{jingles_folder}/%(title)s"
|
||||
## download
|
||||
ydl = youtube_dl.YoutubeDL(ydl_parameters)
|
||||
ydl.extract_info(
|
||||
|
||||
Reference in New Issue
Block a user