|
|
@ -1,4 +1,5 @@
|
|
|
|
using MediaBrowser.Controller.Entities.TV;
|
|
|
|
using System;
|
|
|
|
|
|
|
|
using MediaBrowser.Controller.Entities.TV;
|
|
|
|
using MediaBrowser.Controller.Persistence;
|
|
|
|
using MediaBrowser.Controller.Persistence;
|
|
|
|
using MediaBrowser.Controller.Providers;
|
|
|
|
using MediaBrowser.Controller.Providers;
|
|
|
|
using MediaBrowser.Model.Logging;
|
|
|
|
using MediaBrowser.Model.Logging;
|
|
|
@ -40,7 +41,7 @@ namespace MediaBrowser.Providers.TV
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private static readonly CultureInfo UsCulture = new CultureInfo("en-US");
|
|
|
|
private static readonly CultureInfo UsCulture = new CultureInfo("en-US");
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
|
/// Fetches the data from XML node.
|
|
|
|
/// Fetches the data from XML node.
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
@ -148,11 +149,11 @@ namespace MediaBrowser.Providers.TV
|
|
|
|
|
|
|
|
|
|
|
|
if (!string.IsNullOrWhiteSpace(number))
|
|
|
|
if (!string.IsNullOrWhiteSpace(number))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
int num;
|
|
|
|
float num;
|
|
|
|
|
|
|
|
|
|
|
|
if (int.TryParse(number, out num))
|
|
|
|
if (float.TryParse(number, NumberStyles.Any, UsCulture, out num))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
item.DvdEpisodeNumber = num;
|
|
|
|
item.DvdEpisodeNumber = Convert.ToInt32(num);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
break;
|
|
|
@ -164,11 +165,11 @@ namespace MediaBrowser.Providers.TV
|
|
|
|
|
|
|
|
|
|
|
|
if (!string.IsNullOrWhiteSpace(number))
|
|
|
|
if (!string.IsNullOrWhiteSpace(number))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
int num;
|
|
|
|
float num;
|
|
|
|
|
|
|
|
|
|
|
|
if (int.TryParse(number, out num))
|
|
|
|
if (float.TryParse(number, NumberStyles.Any, UsCulture, out num))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
item.DvdSeasonNumber = num;
|
|
|
|
item.DvdSeasonNumber = Convert.ToInt32(num);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|