Verbosity fix V1.0.7

This commit is contained in:
Patryk Mazur
2026-04-22 20:28:59 +02:00
parent 5dfb4de2a9
commit 5173e603d4
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -35,7 +35,7 @@ def download_video(yt_url: str) -> dict:
with yt_dlp.YoutubeDL({'quiet': True}) as ydl:
try:
print(f'Pobieranie \"{yt_url}\"')
print(f'Pobieranie "{yt_url}"')
info = ydl.extract_info(yt_url, download=False)
except Exception as e:
print(f'Nie można pobrać metadanych: {e}')
@@ -63,7 +63,7 @@ def download_video(yt_url: str) -> dict:
try:
info = ydl.extract_info(yt_url, download=True)
filename = ydl.prepare_filename(info)
print(f'Pobrano \"{info.get('title')}\" ({yt_url})')
print(f'Pobrano "{info.get("title")}" ({yt_url})')
except Exception as e:
print(f'Błąd pobierania: {e}')
return {'status': 'error', 'message': f'Błąd pobierania: {e}'}