Small fixes V1.0.5
This commit is contained in:
@@ -58,9 +58,12 @@ def download_video(yt_url: str) -> dict:
|
|||||||
|
|
||||||
with yt_dlp.YoutubeDL(ydl_opts) as ydl:
|
with yt_dlp.YoutubeDL(ydl_opts) as ydl:
|
||||||
try:
|
try:
|
||||||
|
print(f'Pobieranie {yt_url}')
|
||||||
info = ydl.extract_info(yt_url, download=True)
|
info = ydl.extract_info(yt_url, download=True)
|
||||||
filename = ydl.prepare_filename(info)
|
filename = ydl.prepare_filename(info)
|
||||||
|
print(f'Pobrano {yt_url}')
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
print(f'Błąd pobierania: {e}')
|
||||||
return {'status': 'error', 'message': f'Błąd pobierania: {e}'}
|
return {'status': 'error', 'message': f'Błąd pobierania: {e}'}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|||||||
Reference in New Issue
Block a user