diff --git a/bot/helper/listeners/ytdlp_listener.py b/bot/helper/listeners/ytdlp_listener.py index 9508446445dd..054008fc6149 100644 --- a/bot/helper/listeners/ytdlp_listener.py +++ b/bot/helper/listeners/ytdlp_listener.py @@ -231,7 +231,10 @@ async def get_quality(self, result): tbr_dict ) in self.formats.items(): if len(tbr_dict) == 1: - tbr, v_list = next(iter(tbr_dict.items())) + ( + tbr, + v_list + ) = next(iter(tbr_dict.items())) buttonName = f"{b_name} ({get_readable_file_size(v_list[0])})" buttons.ibutton( buttonName, @@ -289,7 +292,10 @@ async def back_to_main(self): async def qual_subbuttons(self, b_name): buttons = ButtonMaker() tbr_dict = self.formats[b_name] - for tbr, d_data in tbr_dict.items(): + for ( + tbr, + d_data + ) in tbr_dict.items(): button_name = f"{tbr}K ({get_readable_file_size(d_data[0])})" buttons.ibutton( button_name, @@ -350,13 +356,13 @@ async def audio_format(self): i = "s" if self._is_playlist else "" buttons = ButtonMaker() for frmt in [ - "ᴀᴀᴄ", - "ᴀʟᴀᴄ", - "ꜰʟᴀᴄ", - "ᴍ4ᴀ", - "ᴏᴘᴜꜱ", - "ᴠᴏʀʙɪꜱ", - "ᴡᴀᴠ" + "aac", + "alac", + "flac", + "m4a", + "opus", + "vorbis", + "wav" ]: audio_format = f"ba/b-{frmt}-" buttons.ibutton(