improve embedding of specials

This commit is contained in:
Luke Pulverenti 2013-11-23 15:01:09 -05:00
parent 16203c52b4
commit e3cf3d73f1
3 changed files with 3 additions and 3 deletions

View File

@ -484,7 +484,7 @@ namespace MediaBrowser.Api.Images
Height = Convert.ToInt32(size.Height)
};
}
catch (IOException ex)
catch (Exception ex)
{
Logger.ErrorException("Error getting image information for {0}", ex, path);

View File

@ -55,7 +55,7 @@ namespace MediaBrowser.Controller.Entities.TV
{
get
{
return AirsBeforeSeasonNumber ?? AirsAfterSeasonNumber ?? PhysicalSeasonNumber;
return AirsAfterSeasonNumber ?? AirsBeforeSeasonNumber ?? PhysicalSeasonNumber;
}
}

View File

@ -100,7 +100,7 @@ namespace MediaBrowser.Server.Implementations.Sorting
{
// First sort by season number
// Since there are three sort orders, pad with 9 digits (3 for each, figure 1000 episode buffer should be enough)
var val = (item.AirsBeforeSeasonNumber ?? item.AirsAfterSeasonNumber ?? 0) * 1000000000;
var val = (item.AirsAfterSeasonNumber ?? item.AirsBeforeSeasonNumber ?? 0) * 1000000000;
// Second sort order is if it airs after the season
if (item.AirsAfterSeasonNumber.HasValue)