feat: cookies-from-browser per bypass HTTP 403 YouTube (v1.10.1)
Alcuni video YouTube restituiscono 403 anche con yt-dlp aggiornato. Fix: nuova opzione Impostazioni "Cookies da browser" con dropdown (chrome/safari/firefox/edge/brave). Priorita': file cookies.txt esistente -> --cookies-from-browser <name> -> nessuno. Bonus: - core/paths.py::_bundle_dirs() ora include <project>/bundle_bin/ anche in dev, cosi' python main.py usa lo stesso yt-dlp del build invece di Homebrew (spesso obsoleto) - Helper _cookie_args() in downloader.py per non ripetere la logica su tutti i punti dove serve --cookies
This commit is contained in:
1 parent
e7d11d0235
commit
39a117f08b
6 files changed
+60
-15
No files matched your search
@@ -45,6 +45,13 @@ def _bundle_dirs() -> list[Path]:
|
||||
sub_macos = frameworks / sub / "Contents" / "MacOS"
|
||||
if sub_macos.exists():
|
||||
dirs.append(sub_macos)
|
||||
else:
|
||||
# Dev: cerca in <project_root>/bundle_bin/ così `python main.py`
|
||||
# usa gli stessi binari del bundle (aggiornati via build_*.py)
|
||||
# invece di Homebrew/PATH che possono essere obsoleti.
|
||||
project_bundle = Path(__file__).resolve().parent.parent / "bundle_bin"
|
||||
if project_bundle.exists():
|
||||
dirs.append(project_bundle)
|
||||
return dirs
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user