From ecaedc4acbae36823b3ad3604b4bd4e8cbc55a60 Mon Sep 17 00:00:00 2001 From: Patryk Mazur Date: Wed, 22 Apr 2026 20:23:49 +0200 Subject: [PATCH] Verbosity fix V1.0.7 --- bot/__init__.py | 2 +- bot/cogs/mateusz.py | 4 ++-- bot/utils/helpers.py | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/bot/__init__.py b/bot/__init__.py index 9d94baa..bf3fb23 100644 --- a/bot/__init__.py +++ b/bot/__init__.py @@ -1,6 +1,6 @@ import discord -__version__ = '1.0.5' +__version__ = '1.0.7' __author__ = 'Kartoniarz' diff --git a/bot/cogs/mateusz.py b/bot/cogs/mateusz.py index bdf336a..4d5d8bb 100644 --- a/bot/cogs/mateusz.py +++ b/bot/cogs/mateusz.py @@ -16,9 +16,9 @@ class Simp(commands.Cog): if result['status'] == 'error': await ctx.respond(f'Błąd pobierania: {result["message"]}') return - print(f'Wysyłanie {result["title"]} na kanał {ctx.channel.name} ({ctx.guild.name})') + print(f'Wysyłanie "{result["title"]}" na kanał {ctx.channel.name} ({ctx.guild.name})') await ctx.respond(file=discord.File(result['filename'])) - print(f'Wysyłano {result["title"]} na kanał {ctx.channel.name} ({ctx.guild.name})') + print(f'Wysyłano "{result["title"]}" na kanał {ctx.channel.name} ({ctx.guild.name})') def setup(bot: discord.Bot): diff --git a/bot/utils/helpers.py b/bot/utils/helpers.py index f36d8d8..70c1f2d 100644 --- a/bot/utils/helpers.py +++ b/bot/utils/helpers.py @@ -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 {filename} ({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}'}