From 7fca69c6458da8f8b7ca48b8c2907c1f0ca45111 Mon Sep 17 00:00:00 2001 From: a Date: Tue, 22 Oct 2024 13:17:39 +0000 Subject: [PATCH] WIP: test oauth2 --- cogs/music.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cogs/music.py b/cogs/music.py index e77fb1d..f117e86 100644 --- a/cogs/music.py +++ b/cogs/music.py @@ -864,7 +864,10 @@ ytdl_format_options = { "default_search": "auto", # "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 - "cookiefile": "cookies.txt", + #"cookiefile": "cookies.txt", + "cachedir": "cache", + "username": "oauth", + "password": "", } username = getenv("YOUTUBE_USERNAME") password = getenv("YOUTUBE_PASSWORD")