From 7cd4d9eab8db0cb3c13669dde99ba7a838a22da9 Mon Sep 17 00:00:00 2001 From: Renato Date: Thu, 2 Jul 2026 18:34:03 +0200 Subject: [PATCH] feat: default to extracting cookies directly from Google Chrome profile --- openshorts/telegram_bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openshorts/telegram_bot.py b/openshorts/telegram_bot.py index bf70778..e3b360d 100644 --- a/openshorts/telegram_bot.py +++ b/openshorts/telegram_bot.py @@ -155,7 +155,7 @@ async def get_video_title(url: str) -> str: [ YT_DL_PYTHON, "-c", f"import yt_dlp, sys; " - f"ydl = yt_dlp.YoutubeDL({{'quiet': True, 'no_warnings': True, 'cookiefile': '{YT_COOKIES}'}}); " + f"ydl = yt_dlp.YoutubeDL({{'quiet': True, 'no_warnings': True, 'cookiesfrombrowser': ('chrome',)}}); " f"info = ydl.extract_info(sys.argv[1], download=False); " f"print(info.get('title', '') if info else '')", url,