forgot media['nodes']

idiot
This commit is contained in:
blank X 2021-03-28 18:27:46 +07:00
parent 009342225c
commit 323015cfcf
Signed by: blankie
GPG Key ID: CC15FC822C7F61F5
1 changed files with 2 additions and 0 deletions

View File

@ -157,6 +157,8 @@ async def generate_character(anilist):
site_url = anilist['siteUrl']
image = anilist['image']['large']
media = anilist['media']
if media:
media = media['nodes']
text = f'<a href="{site_url}">{title_full}</a>'
if title_native:
text += f' ({title_native})'