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'