From 99d22554a1679c83378c05ce9a101bb8d78c78b1 Mon Sep 17 00:00:00 2001 From: zhu0823 Date: Wed, 22 May 2024 13:34:03 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20plex=E6=9C=80=E8=BF=91=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B=E4=B8=BAshow=E7=9A=84=E8=B5=84=E6=BA=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/modules/plex/plex.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/modules/plex/plex.py b/app/modules/plex/plex.py index 72fb2a5e..40076e1b 100644 --- a/app/modules/plex/plex.py +++ b/app/modules/plex/plex.py @@ -708,6 +708,10 @@ class Plex: title = "%s 第%s季 第%s集" % (item.grandparentTitle, item.parentIndex, item.index) thumb = (item.parentThumb or item.grandparentThumb or '').lstrip('/') image = (self._host + thumb + f"?X-Plex-Token={self._token}") + elif item.TYPE == "show": + item_type = MediaType.TV.value + title = "%s 共%s季" % (item.title, item.seasonCount) + image = item.posterUrl link = self.get_play_url(item.key) ret_resume.append(schemas.MediaServerPlayItem( id=item.key, @@ -717,7 +721,5 @@ class Plex: image=image, link=link )) - offset += num - return ret_resume[:num]