feat: default to extracting cookies directly from Google Chrome profile
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user