Skip to content

Commit

Permalink
Update weebo.py
Browse files Browse the repository at this point in the history
  • Loading branch information
code-rgb committed Jul 15, 2020
1 parent ceb4df4 commit 566348c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions userge/plugins/fun/weebo.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,12 @@ async def formatJSON(outData):
else:
jsonData = jsonData['data']['Media']
if f"{jsonData['bannerImage']}" == "None":
title = "[•]"
title = ""
else:
title = f"[•]({jsonData['bannerImage']})"
title = f"<a href='{jsonData['bannerImage']}'>\u200c</a>"
titleL = f" <b>{jsonData['title']['romaji']} ({jsonData['title']['native']})</b>"
link = f"https://anilist.co/anime/{jsonData['id']}"
title += f" [{titleL}]({link})"
title += f"[{titleL}]({link})"
msg += title
msg += f"\n**Type** : <code>{jsonData['format']}</code>"
if f"{jsonData['isAdult']}" == "True":
Expand Down Expand Up @@ -130,7 +130,7 @@ async def bigf_func(message):
for new in anime:
name = new.get("title")
url = new.get("url")
rep += f"•> <a href='{url}'>{name}</a>\n"
rep += f"• <a href='{url}'>{name}</a>\n"
if len(rep) > 1000:
break
await message.edit(rep, parse_mode='html', disable_web_page_preview=True)
Expand Down

0 comments on commit 566348c

Please sign in to comment.