public static DBSeason getSeason(int SeriesID, int SeasonIndex) { singleSeriesRef = _cache.getSubItem(SeriesID); DBSeason s = singleSeriesRef == null ? null : singleSeriesRef.getItemOfSubItem(SeasonIndex); //MPTVSeriesLog.Write("Cache: Requested Season: " + SeriesID.ToString() + " S" + SeasonIndex.ToString() + (s == null ? " - Failed" : " - Sucess", MPTVSeriesLog.LogLevel.Debug)); return(s); }
public static DBEpisode getEpisode(int SeriesID, int SeasonIndex, int EpisodeIndex) { singleSeriesRef = _cache.getSubItem(SeriesID); DBEpisode e = null; if (singleSeriesRef != null) { singleSeasonRef = singleSeriesRef.getSubItem(SeasonIndex); e = singleSeasonRef == null ? null : singleSeasonRef.getItemOfSubItem(EpisodeIndex); } //MPTVSeriesLog.Write("Cache: Requested Episode: " + SeriesID.ToString() + " S" + SeasonIndex.ToString() + " E" + EpisodeIndex.ToString() + (e == null ? " - Failed" : " - Sucess"), MPTVSeriesLog.LogLevel.Debug); return(e); }