From 00adc73dd4d06aca3d0b0d565bd9826f963d21d8 Mon Sep 17 00:00:00 2001 From: blank X Date: Wed, 31 Mar 2021 17:08:56 +0700 Subject: [PATCH] Prepend featured in list with "- " --- sukuinote/slave-plugins/anilist.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sukuinote/slave-plugins/anilist.py b/sukuinote/slave-plugins/anilist.py index ebc3a76..7fa8b69 100644 --- a/sukuinote/slave-plugins/anilist.py +++ b/sukuinote/slave-plugins/anilist.py @@ -172,7 +172,7 @@ async def generate_character(anilist): text += '\n' to_add = [] for i in media[:5]: - atext = f'{i["title"]["romaji"]}' + atext = f'- {i["title"]["romaji"]}' if i['title']['english']: atext += f' ({i["title"]["english"]})' if i['title']['native']: @@ -184,7 +184,7 @@ async def generate_character(anilist): to_add.append(f'{atext} [{type}]') text += '\n'.join(to_add) if len(media) > 5: - text += f'\n(and {len(media) - 5} other{"" if len(media) == 6 else "s"})' + text += f'\n- (and {len(media) - 5} other{"" if len(media) == 6 else "s"})' if description: text += '\n' parser = pyrogram_html.HTML(None)