Don't show episode and 'per episode' for movies
This commit is contained in:
parent
776639d2a1
commit
71f5d02039
|
@ -112,13 +112,13 @@ 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 or next_airing_episode:
|
||||
if (episodes is not None or next_airing_episode) and anilist['format'] != 'MOVIE':
|
||||
text += f'<b>Episodes:</b> '
|
||||
if next_airing_episode:
|
||||
text += f'{next_airing_episode["episode"] - 1}/'
|
||||
text += f'{"???" if episodes is None else episodes}\n'
|
||||
if duration:
|
||||
text += f'<b>Duration:</b> {duration} minutes per episode\n'
|
||||
text += f'<b>Duration:</b> {duration} minutes{" per episode" if aniist["format"] != "MOVIE" else ""}\n'
|
||||
if chapters:
|
||||
text += f'<b>Chapters:</b> {chapters}\n'
|
||||
if volumes:
|
||||
|
|
Loading…
Reference in New Issue