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
@ -58,7 +58,7 @@ namespace MediaBrowser.Controller.Entities
|
|||||||
|
|
||||||
public string PreferredMetadataCountryCode { get; set; }
|
public string PreferredMetadataCountryCode { get; set; }
|
||||||
public string PreferredMetadataLanguage { get; set; }
|
public string PreferredMetadataLanguage { get; set; }
|
||||||
|
|
||||||
public List<ItemImageInfo> ImageInfos { get; set; }
|
public List<ItemImageInfo> ImageInfos { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -198,7 +198,7 @@ namespace MediaBrowser.Controller.Entities
|
|||||||
/// <value>The etag.</value>
|
/// <value>The etag.</value>
|
||||||
[IgnoreDataMember]
|
[IgnoreDataMember]
|
||||||
public string ExternalEtag { get; set; }
|
public string ExternalEtag { get; set; }
|
||||||
|
|
||||||
[IgnoreDataMember]
|
[IgnoreDataMember]
|
||||||
public virtual bool IsHidden
|
public virtual bool IsHidden
|
||||||
{
|
{
|
||||||
@ -373,7 +373,7 @@ namespace MediaBrowser.Controller.Entities
|
|||||||
|
|
||||||
[IgnoreDataMember]
|
[IgnoreDataMember]
|
||||||
public bool IsLocked { get; set; }
|
public bool IsLocked { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the locked fields.
|
/// Gets or sets the locked fields.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -520,7 +520,7 @@ namespace MediaBrowser.Controller.Entities
|
|||||||
}
|
}
|
||||||
set
|
set
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -674,7 +674,7 @@ namespace MediaBrowser.Controller.Entities
|
|||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
if (!string.IsNullOrEmpty(CustomRating))
|
if (!string.IsNullOrWhiteSpace(CustomRating))
|
||||||
{
|
{
|
||||||
return CustomRating;
|
return CustomRating;
|
||||||
}
|
}
|
||||||
@ -717,7 +717,7 @@ namespace MediaBrowser.Controller.Entities
|
|||||||
{
|
{
|
||||||
var files = fileSystemChildren.OfType<DirectoryInfo>()
|
var files = fileSystemChildren.OfType<DirectoryInfo>()
|
||||||
.Where(i => string.Equals(i.Name, ThemeSongsFolderName, StringComparison.OrdinalIgnoreCase))
|
.Where(i => string.Equals(i.Name, ThemeSongsFolderName, StringComparison.OrdinalIgnoreCase))
|
||||||
.SelectMany(i => directoryService.GetFiles(i.FullName))
|
.SelectMany(i => directoryService.GetFiles(i.FullName))
|
||||||
.ToList();
|
.ToList();
|
||||||
|
|
||||||
// Support plex/xbmc convention
|
// Support plex/xbmc convention
|
||||||
@ -753,7 +753,7 @@ namespace MediaBrowser.Controller.Entities
|
|||||||
{
|
{
|
||||||
var files = fileSystemChildren.OfType<DirectoryInfo>()
|
var files = fileSystemChildren.OfType<DirectoryInfo>()
|
||||||
.Where(i => string.Equals(i.Name, ThemeVideosFolderName, StringComparison.OrdinalIgnoreCase))
|
.Where(i => string.Equals(i.Name, ThemeVideosFolderName, StringComparison.OrdinalIgnoreCase))
|
||||||
.SelectMany(i => directoryService.GetFiles(i.FullName));
|
.SelectMany(i => directoryService.GetFiles(i.FullName));
|
||||||
|
|
||||||
return LibraryManager.ResolvePaths(files, directoryService, null)
|
return LibraryManager.ResolvePaths(files, directoryService, null)
|
||||||
.OfType<Video>()
|
.OfType<Video>()
|
||||||
@ -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;
|
||||||
@ -1416,7 +1423,7 @@ namespace MediaBrowser.Controller.Entities
|
|||||||
/// <returns>Task.</returns>
|
/// <returns>Task.</returns>
|
||||||
public virtual Task ChangedExternally()
|
public virtual Task ChangedExternally()
|
||||||
{
|
{
|
||||||
ProviderManager.QueueRefresh(Id, new MetadataRefreshOptions(FileSystem));
|
ProviderManager.QueueRefresh(Id, new MetadataRefreshOptions(FileSystem));
|
||||||
return Task.FromResult(true);
|
return Task.FromResult(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1656,7 +1663,7 @@ namespace MediaBrowser.Controller.Entities
|
|||||||
var newImagePaths = images.Select(i => i.FullName).ToList();
|
var newImagePaths = images.Select(i => i.FullName).ToList();
|
||||||
|
|
||||||
var deleted = existingImages
|
var deleted = existingImages
|
||||||
.Where(i => i.IsLocalFile && !newImagePaths.Contains(i.Path, StringComparer.OrdinalIgnoreCase) && !FileSystem.FileExists(i.Path))
|
.Where(i => i.IsLocalFile && !newImagePaths.Contains(i.Path, StringComparer.OrdinalIgnoreCase) && !FileSystem.FileExists(i.Path))
|
||||||
.ToList();
|
.ToList();
|
||||||
|
|
||||||
ImageInfos = ImageInfos.Except(deleted).ToList();
|
ImageInfos = ImageInfos.Except(deleted).ToList();
|
||||||
|
@ -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,7 +61,16 @@ namespace MediaBrowser.Controller.Providers
|
|||||||
};
|
};
|
||||||
|
|
||||||
//Fetch(item, metadataFile, settings, Encoding.GetEncoding("ISO-8859-1"), cancellationToken);
|
//Fetch(item, metadataFile, settings, Encoding.GetEncoding("ISO-8859-1"), cancellationToken);
|
||||||
Fetch(item, metadataFile, settings, Encoding.UTF8, cancellationToken);
|
|
||||||
|
try
|
||||||
|
{
|
||||||
|
Fetch(item, metadataFile, settings, Encoding.UTF8, cancellationToken);
|
||||||
|
}
|
||||||
|
catch
|
||||||
|
{
|
||||||
|
Logger.Error("Error parsing xml file {0}", metadataFile);
|
||||||
|
throw;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -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