Show episode count where there's an airing schedule, but the total episode count hasn't been announced (like One Piece)

This commit is contained in:
blank X 2020-10-19 21:58:49 +07:00
parent f42d655b78
commit 4e488453ca
1 changed files with 2 additions and 2 deletions

View File

@ -112,11 +112,11 @@ async def generate_media(anilist):
text += f'<b>Airing At:</b> {airing_at}\n<b>Airing In:</b> {time_until_airing}\n'
if average_score is not None:
text += f'<b>Average Score:</b> {average_score}%\n'
if episodes:
if episodes or next_airing_episode:
text += f'<b>Episodes:</b> '
if next_airing_episode:
text += f'{next_airing_episode["episode"] - 1}/'
text += f'{episodes}\n'
text += f'{"???" if episodes is None else episodes}\n'
if duration:
text += f'<b>Duration:</b> {duration} minutes per episode\n'
if chapters: