aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Controller
diff options
context:
space:
mode:
Diffstat (limited to 'MediaBrowser.Controller')
-rw-r--r--MediaBrowser.Controller/LiveTv/LiveTvChannel.cs5
1 files changed, 3 insertions, 2 deletions
diff --git a/MediaBrowser.Controller/LiveTv/LiveTvChannel.cs b/MediaBrowser.Controller/LiveTv/LiveTvChannel.cs
index 69a1c24ea..610d4b6f8 100644
--- a/MediaBrowser.Controller/LiveTv/LiveTvChannel.cs
+++ b/MediaBrowser.Controller/LiveTv/LiveTvChannel.cs
@@ -5,6 +5,7 @@ using MediaBrowser.Model.Entities;
using MediaBrowser.Model.LiveTv;
using MediaBrowser.Model.MediaInfo;
using System.Collections.Generic;
+using System.Globalization;
using System.Runtime.Serialization;
namespace MediaBrowser.Controller.LiveTv
@@ -81,10 +82,10 @@ namespace MediaBrowser.Controller.LiveTv
if (!string.IsNullOrEmpty(Number))
{
- double.TryParse(Number, out number);
+ double.TryParse(Number, NumberStyles.Any, CultureInfo.InvariantCulture, out number);
}
- return number.ToString("000-") + (Name ?? string.Empty);
+ return number.ToString("00000-") + (Name ?? string.Empty);
}
[IgnoreDataMember]