3.0.5768.3

This commit is contained in:
Luke Pulverenti 2015-10-19 06:51:20 -04:00
parent d74ded0fd6
commit 79a7e907d4
5 changed files with 31 additions and 15 deletions

View File

@ -674,7 +674,7 @@ namespace MediaBrowser.Controller.Entities
{
get
{
if (!string.IsNullOrEmpty(CustomRating))
if (!string.IsNullOrWhiteSpace(CustomRating))
{
return CustomRating;
}
@ -1112,7 +1112,14 @@ namespace MediaBrowser.Controller.Entities
// Could not determine the integer value
if (!value.HasValue)
{
return !GetBlockUnratedValue(user.Policy);
var isAllowed = !GetBlockUnratedValue(user.Policy);
if (!isAllowed)
{
Logger.Debug("{0} has an unrecognized parental rating of {1}.", Name, rating);
}
return isAllowed;
}
return value.Value <= maxAllowedRating.Value;

View File

@ -207,7 +207,7 @@ namespace MediaBrowser.Controller.Entities
return base.OfficialRatingForComparison;
}
return !string.IsNullOrEmpty(base.OfficialRatingForComparison) ? base.OfficialRatingForComparison : "None";
return !string.IsNullOrWhiteSpace(base.OfficialRatingForComparison) ? base.OfficialRatingForComparison : "None";
}
}

View File

@ -61,8 +61,17 @@ namespace MediaBrowser.Controller.Providers
};
//Fetch(item, metadataFile, settings, Encoding.GetEncoding("ISO-8859-1"), cancellationToken);
try
{
Fetch(item, metadataFile, settings, Encoding.UTF8, cancellationToken);
}
catch
{
Logger.Error("Error parsing xml file {0}", metadataFile);
throw;
}
}
/// <summary>
/// Fetches the specified item.

View File

@ -128,7 +128,7 @@ namespace MediaBrowser.Server.Implementations.FileOrganization
/// </summary>
/// <param name="path">The path.</param>
/// <returns>IEnumerable{FileInfo}.</returns>
private IEnumerable<FileSystemMetadata> GetFilesToOrganize(string path)
private List<FileSystemMetadata> GetFilesToOrganize(string path)
{
try
{

View File

@ -1,4 +1,4 @@
using System.Reflection;
[assembly: AssemblyVersion("3.0.*")]
//[assembly: AssemblyVersion("3.0.5768.2")]
//[assembly: AssemblyVersion("3.0.*")]
[assembly: AssemblyVersion("3.0.5768.3")]