code
This commit is contained in:
parent
00d91c7d15
commit
cf7f4564ac
|
@ -112,10 +112,8 @@ async def generate_media(anilist):
|
||||||
text += f'<b>Average Score:</b> {average_score}%\n'
|
text += f'<b>Average Score:</b> {average_score}%\n'
|
||||||
if episodes:
|
if episodes:
|
||||||
text += f'<b>Episodes:</b> '
|
text += f'<b>Episodes:</b> '
|
||||||
if anilist['airingSchedule']:
|
if anilist['airingSchedule'] and anilist['airingSchedule']['nodes']:
|
||||||
for i in anilist['airingSchedule']['nodes']:
|
text += f'{anilist["airingSchedule"]["nodes"][0]["episode"] - 1}/'
|
||||||
if i['airingAt'] == anilist['nextAiringEpisode']['airingAt']:
|
|
||||||
text += f'{i["episode"] - 1}/'
|
|
||||||
text += f'{episodes}\n'
|
text += f'{episodes}\n'
|
||||||
if duration:
|
if duration:
|
||||||
text += f'<b>Duration:</b> {duration} minutes per episode\n'
|
text += f'<b>Duration:</b> {duration} minutes per episode\n'
|
||||||
|
|
Loading…
Reference in New Issue