From 561793286c71feaa71ec79f6133af7cfd6b50608 Mon Sep 17 00:00:00 2001 From: a Date: Mon, 21 Oct 2024 22:21:42 +0000 Subject: [PATCH] Add: support using cookies --- cogs/music.py | 1 + 1 file changed, 1 insertion(+) diff --git a/cogs/music.py b/cogs/music.py index cbcd63d..8ab4961 100644 --- a/cogs/music.py +++ b/cogs/music.py @@ -863,6 +863,7 @@ 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", } username = getenv("YOUTUBE_USERNAME") password = getenv("YOUTUBE_PASSWORD")