From 0b8431255979c79a416a042dd83071d2c144e05a Mon Sep 17 00:00:00 2001 From: zhu0823 Date: Tue, 7 May 2024 18:28:53 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=9F=90=E4=BA=9B=E5=89=A7=E9=9B=86pare?= =?UTF-8?q?ntThumb=E4=B8=BANone=E6=97=B6=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/modules/plex/plex.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/modules/plex/plex.py b/app/modules/plex/plex.py index 14a8e558..ac14c667 100644 --- a/app/modules/plex/plex.py +++ b/app/modules/plex/plex.py @@ -691,7 +691,8 @@ class Plex: elif item.TYPE == "episode": item_type = MediaType.TV.value 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) ret_resume.append(schemas.MediaServerPlayItem( id=item.key,