Skip to content

Commit

Permalink
Actually fix wkt images (scrape)
Browse files Browse the repository at this point in the history
  • Loading branch information
joinemm committed Nov 28, 2023
1 parent 5f95480 commit ee5fc85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cogs/lastfm.py
Original file line number Diff line number Diff line change
Expand Up @@ -2035,7 +2035,7 @@ async def user_playcount(lastfm_username: str, user_id: int) -> tuple[int, int]:
)

# get album image
image = LastFmImage.from_url(trackinfo["image"][0]["#text"])
image = await self.api.scrape_track_image(trackinfo["url"])
if image:
content.set_thumbnail(url=image.as_full())
content.colour = await self.image_color(image)
Expand Down

0 comments on commit ee5fc85

Please sign in to comment.