Skip to content

Commit

Permalink
Fix missing release date error
Browse files Browse the repository at this point in the history
  • Loading branch information
joinemm committed Nov 28, 2023
1 parent 64e70a7 commit a62cd24
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 @@ -473,7 +473,7 @@ async def nowplaying(self, ctx: MisoContext):
)
content.set_thumbnail(url=image.as_full())

if metadata:
if metadata and metadata["release_date"]:
content.description = (
f'{content.description} [{metadata["release_date"].format("YYYY")}]'
)
Expand Down

0 comments on commit a62cd24

Please sign in to comment.