diff --git a/api/app.py b/api/app.py index 822e949..a69101b 100644 --- a/api/app.py +++ b/api/app.py @@ -31,6 +31,7 @@ def _extract_info(url: str) -> Dict: "quiet": True, "skip_download": True, "noprogress": True, + "extractor_args": {"youtube": {"player_client": ["android", "web"]}}, } with YoutubeDL(ydl_opts) as ydl: return ydl.extract_info(url, download=False) @@ -145,6 +146,7 @@ def download(): "noprogress": True, "restrictfilenames": True, "merge_output_format": "mp4", + "extractor_args": {"youtube": {"player_client": ["android", "web"]}}, } if mode == "video": diff --git a/api/requirements.txt b/api/requirements.txt index 512b173..219f05b 100644 --- a/api/requirements.txt +++ b/api/requirements.txt @@ -1,4 +1,4 @@ Flask==3.0.0 gunicorn==21.2.0 -yt-dlp==2024.03.10 +yt-dlp>=2024.12.23 python-dotenv==1.0.1 diff --git a/frontend/index.html b/frontend/index.html index 481a514..ed02e01 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -12,7 +12,7 @@
-

YT Downloader

+

PycoNet Youtube Downloader

Inserisci il link, scegli video o solo audio, poi scarica.

@@ -34,13 +34,13 @@