Add: support using cookies

This commit is contained in:
a 2024-10-21 22:21:42 +00:00
parent 52ed4f40bb
commit 561793286c

View file

@ -863,6 +863,7 @@ ytdl_format_options = {
"default_search": "auto", "default_search": "auto",
# "source_address": "0.0.0.0", # Bind to ipv4 since ipv6 addresses cause issues # "source_address": "0.0.0.0", # Bind to ipv4 since ipv6 addresses cause issues
"extract_flat": True, # massive speedup for fetching metadata, at the cost of no upload date "extract_flat": True, # massive speedup for fetching metadata, at the cost of no upload date
"cookiefile": "cookies.txt",
} }
username = getenv("YOUTUBE_USERNAME") username = getenv("YOUTUBE_USERNAME")
password = getenv("YOUTUBE_PASSWORD") password = getenv("YOUTUBE_PASSWORD")