Use correct name of image attachment

This commit is contained in:
Kenzuya
2025-10-25 16:09:22 +07:00
parent 45f18b046f
commit fe7a3f019f

View File

@@ -285,13 +285,17 @@ class Netflix(Service):
if title.data and "boxart" in title.data and title.data["boxart"]:
tracks.add(
Attachment.from_url(
url=title.data["boxart"][0]["url"]
url=title.data["boxart"][0]["url"],
name=f"{title.name} ({title.year}) Poster"
)
)
else:
if title.data and "stills" in title.data and title.data["stills"]:
tracks.add(
Attachment.from_url(title.data["stills"][0]["url"])
Attachment.from_url(
url=title.data["stills"][0]["url"],
name=f"{title.title} S{title.season:02d}E{title.number:02d}{' - ' + title.name if title.name else ''} Poster"
)
)
return tracks