mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
3.0.5768.3
This commit is contained in:
parent
d74ded0fd6
commit
79a7e907d4
@ -674,7 +674,7 @@ namespace MediaBrowser.Controller.Entities
|
|||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
if (!string.IsNullOrEmpty(CustomRating))
|
if (!string.IsNullOrWhiteSpace(CustomRating))
|
||||||
{
|
{
|
||||||
return CustomRating;
|
return CustomRating;
|
||||||
}
|
}
|
||||||
@ -1112,7 +1112,14 @@ namespace MediaBrowser.Controller.Entities
|
|||||||
// Could not determine the integer value
|
// Could not determine the integer value
|
||||||
if (!value.HasValue)
|
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;
|
return value.Value <= maxAllowedRating.Value;
|
||||||
|
@ -207,7 +207,7 @@ namespace MediaBrowser.Controller.Entities
|
|||||||
return base.OfficialRatingForComparison;
|
return base.OfficialRatingForComparison;
|
||||||
}
|
}
|
||||||
|
|
||||||
return !string.IsNullOrEmpty(base.OfficialRatingForComparison) ? base.OfficialRatingForComparison : "None";
|
return !string.IsNullOrWhiteSpace(base.OfficialRatingForComparison) ? base.OfficialRatingForComparison : "None";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -61,8 +61,17 @@ namespace MediaBrowser.Controller.Providers
|
|||||||
};
|
};
|
||||||
|
|
||||||
//Fetch(item, metadataFile, settings, Encoding.GetEncoding("ISO-8859-1"), cancellationToken);
|
//Fetch(item, metadataFile, settings, Encoding.GetEncoding("ISO-8859-1"), cancellationToken);
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
Fetch(item, metadataFile, settings, Encoding.UTF8, cancellationToken);
|
Fetch(item, metadataFile, settings, Encoding.UTF8, cancellationToken);
|
||||||
}
|
}
|
||||||
|
catch
|
||||||
|
{
|
||||||
|
Logger.Error("Error parsing xml file {0}", metadataFile);
|
||||||
|
throw;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Fetches the specified item.
|
/// Fetches the specified item.
|
||||||
|
@ -128,7 +128,7 @@ namespace MediaBrowser.Server.Implementations.FileOrganization
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="path">The path.</param>
|
/// <param name="path">The path.</param>
|
||||||
/// <returns>IEnumerable{FileInfo}.</returns>
|
/// <returns>IEnumerable{FileInfo}.</returns>
|
||||||
private IEnumerable<FileSystemMetadata> GetFilesToOrganize(string path)
|
private List<FileSystemMetadata> GetFilesToOrganize(string path)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
|
|
||||||
[assembly: AssemblyVersion("3.0.*")]
|
//[assembly: AssemblyVersion("3.0.*")]
|
||||||
//[assembly: AssemblyVersion("3.0.5768.2")]
|
[assembly: AssemblyVersion("3.0.5768.3")]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user