From 77812a1dccd12dd7dacc0eea989481b3464b3105 Mon Sep 17 00:00:00 2001 From: LJQ Date: Sat, 2 Mar 2024 16:45:00 +0800 Subject: [PATCH] Combine original titles for multi episode files --- Jellyfin.Plugin.Tvdb/Providers/TvdbEpisodeProvider.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Jellyfin.Plugin.Tvdb/Providers/TvdbEpisodeProvider.cs b/Jellyfin.Plugin.Tvdb/Providers/TvdbEpisodeProvider.cs index d0e46da..5cd7eaf 100644 --- a/Jellyfin.Plugin.Tvdb/Providers/TvdbEpisodeProvider.cs +++ b/Jellyfin.Plugin.Tvdb/Providers/TvdbEpisodeProvider.cs @@ -130,17 +130,21 @@ private MetadataResult CombineResults(List> res var result = results[0]; var name = new StringBuilder(result.Item.Name); + var originalTitle = new StringBuilder(result.Item.OriginalTitle); var overview = new StringBuilder(result.Item.Overview); for (int res = 1; res < results.Count; res++) { name.Append(" / "); name.Append(results[res].Item.Name); + originalTitle.Append(" / "); + originalTitle.Append(results[res].Item.OriginalTitle); overview.Append(" / "); overview.Append(results[res].Item.Overview); } result.Item.Name = name.ToString(); + result.Item.OriginalTitle = originalTitle.ToString(); result.Item.Overview = overview.ToString(); return result;