From acda49f3fbb1848d78eed64e1af98b71ca572a21 Mon Sep 17 00:00:00 2001 From: blank X Date: Sun, 18 Oct 2020 19:25:02 +0700 Subject: [PATCH] i am dumb --- sukuinote/slave-plugins/anilist.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sukuinote/slave-plugins/anilist.py b/sukuinote/slave-plugins/anilist.py index 1e1615c..e2d9965 100644 --- a/sukuinote/slave-plugins/anilist.py +++ b/sukuinote/slave-plugins/anilist.py @@ -105,7 +105,7 @@ async def generate_media(anilist): if anilist['type'] != 'MANGA': text += f'Format: {format}\n' text += f'Status: {status}\n' - if anilist['nextAiringEpisode']: + if next_airing_episode: airing_at = str(datetime.datetime.fromtimestamp(next_airing_episode['airingAt'])) time_until_airing = str(datetime.timedelta(seconds=next_airing_episode['timeUntilAiring'])) text += f'Airing At: {airing_at}\nAiring In: {time_until_airing}\n'