The Free Software Media System - Server Backend & API
Fix TVDB plugin not handling absolute display order
lmaonator76172f76d974
diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.mdindex e383d02b74..f0724b4129 100644--- a/CONTRIBUTORS.md+++ b/CONTRIBUTORS.md@@ -57,6 +57,7 @@- [Larvitar](https://github.com/Larvitar)- [LeoVerto](https://github.com/LeoVerto)- [Liggy](https://github.com/Liggy)+ - [lmaonator](https://github.com/lmaonator)- [LogicalPhallacy](https://github.com/LogicalPhallacy)- [loli10K](https://github.com/loli10K)- [lostmypillow](https://github.com/lostmypillow)diff --git a/MediaBrowser.Providers/Plugins/TheTvdb/TvdbEpisodeProvider.cs b/MediaBrowser.Providers/Plugins/TheTvdb/TvdbEpisodeProvider.csindex 07167bda63..c088d8cec1 100644--- a/MediaBrowser.Providers/Plugins/TheTvdb/TvdbEpisodeProvider.cs+++ b/MediaBrowser.Providers/Plugins/TheTvdb/TvdbEpisodeProvider.cs@@ -154,6 +154,13 @@ namespace MediaBrowser.Providers.Plugins.TheTvdbitem.IndexNumber = Convert.ToInt32(episode.DvdEpisodeNumber ?? episode.AiredEpisodeNumber);item.ParentIndexNumber = episode.DvdSeason ?? episode.AiredSeason;}+ else if (string.Equals(id.SeriesDisplayOrder, "absolute", StringComparison.OrdinalIgnoreCase))+ {+ if (episode.AbsoluteNumber.GetValueOrDefault() != 0)+ {+ item.IndexNumber = episode.AbsoluteNumber;+ }+ }else if (episode.AiredEpisodeNumber.HasValue){item.IndexNumber = episode.AiredEpisodeNumber;