aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Providers/TV/TvdbEpisodeProvider.cs
diff options
context:
space:
mode:
Diffstat (limited to 'MediaBrowser.Providers/TV/TvdbEpisodeProvider.cs')
-rw-r--r--MediaBrowser.Providers/TV/TvdbEpisodeProvider.cs14
1 files changed, 6 insertions, 8 deletions
diff --git a/MediaBrowser.Providers/TV/TvdbEpisodeProvider.cs b/MediaBrowser.Providers/TV/TvdbEpisodeProvider.cs
index d80985fe1a..4cf7c79da9 100644
--- a/MediaBrowser.Providers/TV/TvdbEpisodeProvider.cs
+++ b/MediaBrowser.Providers/TV/TvdbEpisodeProvider.cs
@@ -410,12 +410,11 @@ namespace MediaBrowser.Providers.TV
if (!string.IsNullOrWhiteSpace(val))
{
- int rval;
+ float num;
- // int.TryParse is local aware, so it can be probamatic, force us culture
- if (int.TryParse(val, NumberStyles.Integer, _usCulture, out rval))
+ if (float.TryParse(val, NumberStyles.Any, _usCulture, out num))
{
- item.DvdEpisodeNumber = rval;
+ item.DvdEpisodeNumber = Convert.ToInt32(num);
}
}
@@ -428,12 +427,11 @@ namespace MediaBrowser.Providers.TV
if (!string.IsNullOrWhiteSpace(val))
{
- int rval;
+ float num;
- // int.TryParse is local aware, so it can be probamatic, force us culture
- if (int.TryParse(val, NumberStyles.Integer, _usCulture, out rval))
+ if (float.TryParse(val, NumberStyles.Any, _usCulture, out num))
{
- item.DvdSeasonNumber = rval;
+ item.DvdSeasonNumber = Convert.ToInt32(num);
}
}