store dvd episode numbers as floats to match tvdb

This commit is contained in:
Luke Pulverenti 2013-12-08 17:16:59 -05:00
parent 3c9b0a1fb6
commit 3c53aca46b
4 changed files with 4 additions and 4 deletions

View File

@ -49,7 +49,7 @@ namespace MediaBrowser.Controller.Entities.TV
/// Gets or sets the DVD episode number.
/// </summary>
/// <value>The DVD episode number.</value>
public int? DvdEpisodeNumber { get; set; }
public float? DvdEpisodeNumber { get; set; }
/// <summary>
/// We want to group into series not show individually in an index

View File

@ -43,7 +43,7 @@ namespace MediaBrowser.Model.Dto
/// Gets or sets the DVD episode number.
/// </summary>
/// <value>The DVD episode number.</value>
public int? DvdEpisodeNumber { get; set; }
public float? DvdEpisodeNumber { get; set; }
/// <summary>
/// Gets or sets the name of the sort.

View File

@ -153,7 +153,7 @@ namespace MediaBrowser.Providers.TV
if (float.TryParse(number, NumberStyles.Any, UsCulture, out num))
{
item.DvdEpisodeNumber = Convert.ToInt32(num);
item.DvdEpisodeNumber = num;
}
}
break;

View File

@ -414,7 +414,7 @@ namespace MediaBrowser.Providers.TV
if (float.TryParse(val, NumberStyles.Any, _usCulture, out num))
{
item.DvdEpisodeNumber = Convert.ToInt32(num);
item.DvdEpisodeNumber = num;
}
}