it's resilient

This commit is contained in:
Aethor
2021-06-15 23:27:04 +02:00
parent 147f406219
commit 88aa22ad32
8 changed files with 31 additions and 14 deletions

View File

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