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,