-
Notifications
You must be signed in to change notification settings - Fork 2
fix(youtube): stop cookie write-back poisoning (netcup bot-detection) + PO token provider + cache dir #42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 5 commits
b77a6ad
b45729f
cd0c02d
c15d768
6d526c6
b8d3dab
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -243,7 +243,12 @@ def check_youtube_credentials() -> CredentialCheckResult: | |
| 'skip_download': True, | ||
| } | ||
|
|
||
| with yt_dlp.YoutubeDL(ydl_opts) as ydl: | ||
| # Use a throwaway cookie copy so this validation check never writes yt-dlp's | ||
| # rotated (and, on a flagged IP, rejected) cookies back over the canonical | ||
| # keeper-managed file. See downloaders.youtube.isolated_cookiefile. | ||
| from ...downloaders.youtube import ytdlp_opts_isolated | ||
|
|
||
| with ytdlp_opts_isolated(ydl_opts) as opts, yt_dlp.YoutubeDL(opts) as ydl: | ||
|
Comment on lines
+246
to
+251
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🩺 Stability & Availability | 🟠 Major | ⚡ Quick win Pass the dedicated yt-dlp cache directory to these direct yt-dlp callers. Both paths isolate
📍 Affects 2 files
🤖 Prompt for AI Agents |
||
| info = ydl.extract_info(test_url, download=False) | ||
|
|
||
| if info and info.get('title'): | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.