Prechádzať zdrojové kódy

update translations

Luke Pulverenti 8 rokov pred
rodič
commit
2b61894e3c

+ 4 - 2
MediaBrowser.Controller/Entities/TV/Episode.cs

@@ -137,7 +137,8 @@ namespace MediaBrowser.Controller.Entities.TV
         {
             get
             {
-                return SeriesId.HasValue ? (LibraryManager.GetItemById(SeriesId.Value) as Series) : null;
+                var seriesId = SeriesId ?? FindSeriesId();
+                return seriesId.HasValue ? (LibraryManager.GetItemById(seriesId.Value) as Series) : null;
             }
         }
 
@@ -146,7 +147,8 @@ namespace MediaBrowser.Controller.Entities.TV
         {
             get
             {
-                return SeasonId.HasValue ? (LibraryManager.GetItemById(SeasonId.Value) as Season) : null;
+                var seasonId = SeasonId ?? FindSeasonId();
+                return seasonId.HasValue ? (LibraryManager.GetItemById(seasonId.Value) as Season) : null;
             }
         }
 

+ 2 - 1
MediaBrowser.Controller/Entities/TV/Season.cs

@@ -101,7 +101,8 @@ namespace MediaBrowser.Controller.Entities.TV
         {
             get
             {
-                return SeriesId.HasValue ? (LibraryManager.GetItemById(SeriesId.Value) as Series) : null;
+                var seriesId = SeriesId ?? FindSeriesId();
+                return seriesId.HasValue ? (LibraryManager.GetItemById(seriesId.Value) as Series) : null;
             }
         }