Merge pull request #2026 from zhu0823/main
This commit is contained in:
commit
5be2fc35b5
@ -691,7 +691,8 @@ class Plex:
|
|||||||
elif item.TYPE == "episode":
|
elif item.TYPE == "episode":
|
||||||
item_type = MediaType.TV.value
|
item_type = MediaType.TV.value
|
||||||
title = "%s 第%s季 第%s集" % (item.grandparentTitle, item.parentIndex, item.index)
|
title = "%s 第%s季 第%s集" % (item.grandparentTitle, item.parentIndex, item.index)
|
||||||
image = self._host + item.parentThumb.lstrip('/') + f"?X-Plex-Token={self._token}"
|
thumb = (item.parentThumb or item.grandparentThumb or '').lstrip('/')
|
||||||
|
image = (self._host + thumb + f"?X-Plex-Token={self._token}")
|
||||||
link = self.get_play_url(item.key)
|
link = self.get_play_url(item.key)
|
||||||
ret_resume.append(schemas.MediaServerPlayItem(
|
ret_resume.append(schemas.MediaServerPlayItem(
|
||||||
id=item.key,
|
id=item.key,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user