added a poster image to the search results

master
Arjix 2021-03-11 11:18:05 +02:00 committed by GitHub
parent c43ded9a63
commit 3c1b852e10
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -55,6 +55,7 @@ class TwistMoe(Anime, sitename='twist.moe'):
animes.append(SearchResult(
title=anime['title'],
url='https://twist.moe/a/' + anime['slug']['slug'] + '/',
poster=f"https://media.kitsu.io/anime/poster_images/{anime['hb_id']}/large.jpg"
))
animes = [ani[0] for ani in process.extract(query, animes)]
return animes