mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
add setting for photo libraries
This commit is contained in:
parent
51411fff82
commit
caab8299d1
@ -3,5 +3,11 @@
|
|||||||
public class LibraryOptions
|
public class LibraryOptions
|
||||||
{
|
{
|
||||||
public bool EnableArchiveMediaFiles { get; set; }
|
public bool EnableArchiveMediaFiles { get; set; }
|
||||||
|
public bool EnablePhotos { get; set; }
|
||||||
|
|
||||||
|
public LibraryOptions()
|
||||||
|
{
|
||||||
|
EnablePhotos = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -364,7 +364,7 @@ namespace MediaBrowser.Server.Implementations.Library
|
|||||||
|
|
||||||
if (item.IsFolder)
|
if (item.IsFolder)
|
||||||
{
|
{
|
||||||
if (!(item is ICollectionFolder) && !(item is UserView) && !(item is Channel))
|
if (!(item is ICollectionFolder) && !(item is UserView) && !(item is Channel) && !(item is AggregateFolder))
|
||||||
{
|
{
|
||||||
if (item.SourceType != SourceType.Library)
|
if (item.SourceType != SourceType.Library)
|
||||||
{
|
{
|
||||||
|
@ -34,8 +34,9 @@ namespace MediaBrowser.Server.Implementations.Library.Resolvers
|
|||||||
// Must be an image file within a photo collection
|
// Must be an image file within a photo collection
|
||||||
var collectionType = args.GetCollectionType();
|
var collectionType = args.GetCollectionType();
|
||||||
|
|
||||||
|
|
||||||
if (string.Equals(collectionType, CollectionType.Photos, StringComparison.OrdinalIgnoreCase) ||
|
if (string.Equals(collectionType, CollectionType.Photos, StringComparison.OrdinalIgnoreCase) ||
|
||||||
string.Equals(collectionType, CollectionType.HomeVideos, StringComparison.OrdinalIgnoreCase))
|
(string.Equals(collectionType, CollectionType.HomeVideos, StringComparison.OrdinalIgnoreCase) && args.GetLibraryOptions().EnablePhotos))
|
||||||
{
|
{
|
||||||
if (IsImageFile(args.Path, _imageProcessor))
|
if (IsImageFile(args.Path, _imageProcessor))
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user