feat: default to extracting cookies directly from Google Chrome profile

This commit is contained in:
Renato
2026-07-02 18:34:03 +02:00
parent 1425afe244
commit 7cd4d9eab8
+1 -1
View File
@@ -155,7 +155,7 @@ async def get_video_title(url: str) -> str:
[ [
YT_DL_PYTHON, "-c", YT_DL_PYTHON, "-c",
f"import yt_dlp, sys; " 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"info = ydl.extract_info(sys.argv[1], download=False); "
f"print(info.get('title', '') if info else '')", f"print(info.get('title', '') if info else '')",
url, url,