diff --git a/MediaBrowser.Controller/Entities/TV/Episode.cs b/MediaBrowser.Controller/Entities/TV/Episode.cs index 4e94c39428..f24d86408e 100644 --- a/MediaBrowser.Controller/Entities/TV/Episode.cs +++ b/MediaBrowser.Controller/Entities/TV/Episode.cs @@ -49,7 +49,7 @@ namespace MediaBrowser.Controller.Entities.TV /// Gets or sets the DVD episode number. /// /// The DVD episode number. - public int? DvdEpisodeNumber { get; set; } + public float? DvdEpisodeNumber { get; set; } /// /// We want to group into series not show individually in an index diff --git a/MediaBrowser.Model/Dto/BaseItemDto.cs b/MediaBrowser.Model/Dto/BaseItemDto.cs index 08d8df21f6..3bdbf2ae67 100644 --- a/MediaBrowser.Model/Dto/BaseItemDto.cs +++ b/MediaBrowser.Model/Dto/BaseItemDto.cs @@ -43,7 +43,7 @@ namespace MediaBrowser.Model.Dto /// Gets or sets the DVD episode number. /// /// The DVD episode number. - public int? DvdEpisodeNumber { get; set; } + public float? DvdEpisodeNumber { get; set; } /// /// Gets or sets the name of the sort. diff --git a/MediaBrowser.Providers/TV/EpisodeXmlParser.cs b/MediaBrowser.Providers/TV/EpisodeXmlParser.cs index b17ef6ebb8..a06a3bf23b 100644 --- a/MediaBrowser.Providers/TV/EpisodeXmlParser.cs +++ b/MediaBrowser.Providers/TV/EpisodeXmlParser.cs @@ -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; diff --git a/MediaBrowser.Providers/TV/TvdbEpisodeProvider.cs b/MediaBrowser.Providers/TV/TvdbEpisodeProvider.cs index 4cf7c79da9..b7709b5d35 100644 --- a/MediaBrowser.Providers/TV/TvdbEpisodeProvider.cs +++ b/MediaBrowser.Providers/TV/TvdbEpisodeProvider.cs @@ -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; } }