From 1e8e0faebbaa42199e5acb08dc3145a5570bf5cb Mon Sep 17 00:00:00 2001 From: thsrite Date: Fri, 29 Dec 2023 21:48:53 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E7=94=B5=E5=BD=B1=E4=B8=8D=E8=B6=B35?= =?UTF-8?q?=E4=B8=AA=E6=97=B6=E8=A1=A5=E8=B6=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/embyreporter/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/embyreporter/__init__.py b/plugins/embyreporter/__init__.py index 2f9ec1f..7fe43cb 100644 --- a/plugins/embyreporter/__init__.py +++ b/plugins/embyreporter/__init__.py @@ -367,6 +367,9 @@ class EmbyReporter(_PluginBase): font_count = ImageFont.truetype(font_path, 12) # 合并绘制 + if len(movies) < 5: + movies.extend([] * (5 - len(movies))) + all_ranks = movies + tvshows index, offset_y = (0, 0) for i in all_ranks: