++ fix
This commit is contained in:
@@ -31,6 +31,7 @@ def _extract_info(url: str) -> Dict:
|
|||||||
"quiet": True,
|
"quiet": True,
|
||||||
"skip_download": True,
|
"skip_download": True,
|
||||||
"noprogress": True,
|
"noprogress": True,
|
||||||
|
"extractor_args": {"youtube": {"player_client": ["android", "web"]}},
|
||||||
}
|
}
|
||||||
with YoutubeDL(ydl_opts) as ydl:
|
with YoutubeDL(ydl_opts) as ydl:
|
||||||
return ydl.extract_info(url, download=False)
|
return ydl.extract_info(url, download=False)
|
||||||
@@ -145,6 +146,7 @@ def download():
|
|||||||
"noprogress": True,
|
"noprogress": True,
|
||||||
"restrictfilenames": True,
|
"restrictfilenames": True,
|
||||||
"merge_output_format": "mp4",
|
"merge_output_format": "mp4",
|
||||||
|
"extractor_args": {"youtube": {"player_client": ["android", "web"]}},
|
||||||
}
|
}
|
||||||
|
|
||||||
if mode == "video":
|
if mode == "video":
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
Flask==3.0.0
|
Flask==3.0.0
|
||||||
gunicorn==21.2.0
|
gunicorn==21.2.0
|
||||||
yt-dlp==2024.03.10
|
yt-dlp>=2024.12.23
|
||||||
python-dotenv==1.0.1
|
python-dotenv==1.0.1
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
<body>
|
<body>
|
||||||
<main class="shell">
|
<main class="shell">
|
||||||
<header>
|
<header>
|
||||||
<h1>YT Downloader</h1>
|
<h1>PycoNet Youtube Downloader</h1>
|
||||||
<p>Inserisci il link, scegli video o solo audio, poi scarica.</p>
|
<p>Inserisci il link, scegli video o solo audio, poi scarica.</p>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
@@ -34,13 +34,13 @@
|
|||||||
<div>
|
<div>
|
||||||
<label for="videoFormat">Risoluzione video</label>
|
<label for="videoFormat">Risoluzione video</label>
|
||||||
<select id="videoFormat" disabled>
|
<select id="videoFormat" disabled>
|
||||||
<option value="">Best disponibile</option>
|
<option value="">Migliore</option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<label for="audioFormat">Formato audio</label>
|
<label for="audioFormat">Formato audio</label>
|
||||||
<select id="audioFormat" disabled>
|
<select id="audioFormat" disabled>
|
||||||
<option value="">Best disponibile</option>
|
<option value="">Migliore</option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
|
|||||||
Reference in New Issue
Block a user