From 221e97f47f69fa96cb38f8a83a166d4a44a58b88 Mon Sep 17 00:00:00 2001 From: bacon Date: Sun, 10 Mar 2024 16:12:44 +0300 Subject: [PATCH] cleanup --- cogs/disabled/test.py | 1 - lib/YandexPlayer.py | 2 -- 2 files changed, 3 deletions(-) diff --git a/cogs/disabled/test.py b/cogs/disabled/test.py index 628209f..494fa08 100644 --- a/cogs/disabled/test.py +++ b/cogs/disabled/test.py @@ -25,6 +25,5 @@ class Testing(commands.Cog, name='Testing'): await inter.response.send_message(result, ephemeral=True) - def setup(bot): # an extension must have a setup function bot.add_cog(Testing(bot)) # adding a cog diff --git a/lib/YandexPlayer.py b/lib/YandexPlayer.py index e1b1c6a..0b47b00 100644 --- a/lib/YandexPlayer.py +++ b/lib/YandexPlayer.py @@ -45,9 +45,7 @@ def search(_str: str, _type: str = 'all') -> dict: } } elif type_ == 'album': - artists = '' if best.artists: - artists = ', '.join(artist.name for artist in best.artists) for i in best.artists: artist_id = i.id artist_name = i.name