commit files

This commit is contained in:
szakal
2024-09-25 12:22:14 +02:00
parent 61266427c6
commit 09b883c9eb
14 changed files with 1632 additions and 0 deletions

17
downloader.py Normal file
View File

@@ -0,0 +1,17 @@
#!/usr/bin/python3
import yt_dlp, toml
ytdl_opts = {
#"format": "bv*[height<=720]+ba", # to be defined by the user
"getcomments": True,
"writeinfojson": True,
#"progress_hooks": my_hook,
"outtmpl": {
"default": "%(id)s.%(ext)s",
"chapter": "%(id)s.%(ext)s_%(section_number)03d_%(section_title)s.%(ext)s"
},
"simulate": True
}
# with yt_dlp.YoutubeDL(ytdl_opts) as ytdl:
# ytdl.download(['https://www.youtube.com/watch?v=SL-0B_I6WCM'])