From f5cf162e67790488ac3394e3e409348b83ca79e6 Mon Sep 17 00:00:00 2001
From: cxfksword <718792+cxfksword@users.noreply.github.com>
Date: Sat, 30 Dec 2023 15:00:10 +0800
Subject: [PATCH] feat: add large poster configuration and optimize image
handle. close #59 close #61
---
.../Configuration/PluginConfiguration.cs | 4 ++
.../Configuration/configPage.html | 10 ++++
.../Model/DoubanSubject.cs | 19 ++++++++
.../Providers/BaseProvider.cs | 47 +++++++------------
.../Providers/MovieImageProvider.cs | 4 +-
.../Providers/SeasonImageProvider.cs | 2 +-
.../Providers/SeasonProvider.cs | 1 +
.../Providers/SeriesImageProvider.cs | 4 +-
README.md | 4 +-
9 files changed, 60 insertions(+), 35 deletions(-)
diff --git a/Jellyfin.Plugin.MetaShark/Configuration/PluginConfiguration.cs b/Jellyfin.Plugin.MetaShark/Configuration/PluginConfiguration.cs
index 5cbe2a5..1f966e3 100644
--- a/Jellyfin.Plugin.MetaShark/Configuration/PluginConfiguration.cs
+++ b/Jellyfin.Plugin.MetaShark/Configuration/PluginConfiguration.cs
@@ -24,6 +24,10 @@ public class PluginConfiguration : BasePluginConfiguration
///
public bool EnableDoubanAvoidRiskControl { get; set; } = false;
///
+ /// 豆瓣海报使用大图
+ ///
+ public bool EnableDoubanLargePoster { get; set; } = false;
+ ///
/// 豆瓣背景图使用原图
///
public bool EnableDoubanBackdropRaw { get; set; } = false;
diff --git a/Jellyfin.Plugin.MetaShark/Configuration/configPage.html b/Jellyfin.Plugin.MetaShark/Configuration/configPage.html
index 12497bf..e1ab37c 100644
--- a/Jellyfin.Plugin.MetaShark/Configuration/configPage.html
+++ b/Jellyfin.Plugin.MetaShark/Configuration/configPage.html
@@ -54,6 +54,13 @@
可为空,填写jellyfin访问域名(有端口时要加上端口),只有使用了Nginx代理、Docker部署或启用了HTTPS,并且豆瓣图片无法显示时,才需要填写
+
+
+