ソースを参照

新增 emby 连续剧封面获取的规则

Signed-off-by: allan716 <[email protected]>
allan716 3 年 前
コミット
83b1014e08
1 ファイル変更7 行追加0 行削除
  1. 7 0
      pkg/video_list_helper/poster.go

+ 7 - 0
pkg/video_list_helper/poster.go

@@ -64,6 +64,8 @@ func (v *VideoListHelper) GetSeriesPoster(seriesDir string) string {
 		连续剧的
 		1. poster.ext
 		2. folder.ext
+		Emby 的
+		3. fanart.ext
 		Season的
 		1. seasonXX-poster.ext
 		2. <season folder>/seasonXX.ext
@@ -81,6 +83,11 @@ func (v *VideoListHelper) GetSeriesPoster(seriesDir string) string {
 		if pkg.IsFile(posterFPath) {
 			return posterFPath
 		}
+		// 3. fanart.ext
+		posterFPath = filepath.Join(seriesDir, "fanart"+ext)
+		if pkg.IsFile(posterFPath) {
+			return posterFPath
+		}
 	}
 	//files, err := filepath.Glob(filepath.Join(seriesDir, "season*-poster.jpg"))
 	//if err != nil {