This commit is contained in:
jxxghp
2024-01-05 20:21:19 +08:00
parent cfb029b6b4
commit bc4931d971
4 changed files with 15 additions and 24 deletions

View File

@ -615,12 +615,8 @@ class Plex(metaclass=Singleton):
title = item.title
subtitle = item.year
else:
if item.parentIndex == 1:
title = item.grandparentTitle
subtitle = f"{item.index}"
else:
title = item.grandparentTitle
subtitle = f"{item.parentIndex}季 第{item.index}"
title = item.grandparentTitle
subtitle = f"S{item.parentIndex}:E{item.index} - {item.title}"
link = self.get_play_url(item.key)
image = item.artUrl
ret_resume.append(schemas.MediaServerPlayItem(
@ -651,6 +647,7 @@ class Plex(metaclass=Singleton):
ret_resume.append(schemas.MediaServerPlayItem(
id=item.key,
title=title,
subtitle=item.year,
type=item_type,
image=image,
link=link