Jump to content

Folder view in Mixed Library


Go to solution Solved by Happy2Play,

Recommended Posts

Posted

Hey there Embists,

So i noticed a weird difference that i'm trying to root out. I have 2 libraries that are mixed, with a Series and Movies folder. in both of the Movies folders, i have a mix of "loose files" and folders:

When i look at the one (Tokusatsu) in Folder overview i get what i'd expect, a nice mix of movies and series (in this case date sorted) just living in harmony
image.thumb.png.8350a4353b487df40201edba8121a385.png

But with the other one (Anime) there is no mix, the movies in folders get displayed in folders separately from the rest. And i can't really find out why, there's no good indicator of what's different. (you can see 2 folders top left, but then the loose akira goes in nicely)

image.thumb.png.685ee1c3056cc674638665c92dfd943d.png

Is there maybe a library setting i've overlooked?

Thanks for reading, Cheers!

Posted

Hi, the second screenshot is a more accurate representation of your folders, no?

Posted
23 minutes ago, Luke said:

Hi, the second screenshot is a more accurate representation of your folders, no?

Possibly, but then i wonder why the 1st screenshot is able to do it like that (e.g. not show the folders, only show the contents), it's almost like it flattens the folders or something.

To be clear, i'd like the end result to be able to have an overview of all movies and series mixed together (since it's a mixed media library for a reason)

  • Solution
Happy2Play
Posted

Yes this is variation of hidden system/library switches.  I will guess these libraries were made at different times or even different server versions, correct?

system.xml <CollapseVideoFolders>false</CollapseVideoFolders> setting system to true will override library settings.

library options.xml <CollapseSingleItemFolders>false</CollapseSingleItemFolders> (now database only option so you have to check/change in the api)

But default on a NEW install both will be set to false.

 

  • Like 1
Posted
46 minutes ago, Happy2Play said:

Yes this is variation of hidden system/library switches.  I will guess these libraries were made at different times or even different server versions, correct?

system.xml <CollapseVideoFolders>false</CollapseVideoFolders> setting system to true will override library settings.

library options.xml <CollapseSingleItemFolders>false</CollapseSingleItemFolders> (now database only option so you have to check/change in the api)

But default on a NEW install both will be set to false.

 

Yes, looks like that's what's going on, this "misbehaving" library is a new one.

Interestingly in the system.xlm, that collapse flag is set to true, and i found the options.xml for the "correct" library and it has the right flag, but i can't find the options.xml for the newer created library, since i assume that's now handled via database options.

i'm checking the swagger right now to see how to change the option, any pointers? it's a bit much

Happy2Play
Posted
22 minutes ago, Iwamoto said:

i'm checking the swagger right now to see how to change the option, any pointers? it's a bit much

Got to LibraryStructureService and /Library/VirtualFolders/Query to see all library settings.

 

25 minutes ago, Iwamoto said:

Interestingly in the system.xlm, that collapse flag is set to true,

Have not verified if these options are independent of each other now though.

Posted
1 hour ago, Happy2Play said:

Got to LibraryStructureService and /Library/VirtualFolders/Query to see all library settings.

 

Have not verified if these options are independent of each other now though.

Sorry for back and forthing on this, i feel like a monkey launching a NASA mission here, so i did a GET,  got the data attached (indeed the collapse flag is set to false), and then sure, i update it via the Libraryoptions part, but how do i build the request? if you could post it i'd be super grateful

anime.txt

Happy2Play
Posted (edited)

I will have to do some testing here as I was still under the impression system is still overriding options.  But changing the flag at most should need a library scan..

Did you requery to ensure option change took?

Edited by Happy2Play
Happy2Play
Posted
1 hour ago, Iwamoto said:

Interestingly in the system.xlm, that collapse flag is set to true,

But in a quick test with system.xml set to true the library options were ignored.

I can only guess the folders that show the folder image are actually nested folder structure.

example

image.png.d8ca6a85b6a2bc6cb322ff9861b13640.png

image.thumb.png.f10f81d164a59eecd2be8aca9367eab2.png

So we may need to see the content of the first two folder shown in your image.  As it could be doing what it is supposed to.

Posted

Screenshot2024-07-08at20_34_07.thumb.png.c171add26f1fb4b2443137a4108d0de6.png

As you can see, there's nothing really going on in those two, just a single video, i had already been checking this, since my assumption was also "ah, maybe it can't flatten"

Posted

Are those the only ones in folders? A quick fix is get them out of those folders into the root path like the rest. Then rescan.

Posted
5 minutes ago, speechles said:

Are those the only ones in folders? A quick fix is get them out of those folders into the root path like the rest. Then rescan.

No, there's a load more i placed in a separate folder so i can test easily, there's like 100folders not in the current "scope" otherwise yeah, would be easy 😉

Happy2Play
Posted

Minus folder misidentification I can't reproduce.  Have you tried removing the folders, doing a scan and readding them?

Happy2Play
Posted

Are those the only two none series folders?

If you added another movie folder does it do the same thing?

Posted

I've done some adding and removing, also between folders, same behavior.

As mentioned before, it does look like the <CollapseSingleItemFolders> flag is set to false but i have no idea how to use the swagger to change it to true to test that.

Happy2Play
Posted (edited)
9 minutes ago, Iwamoto said:

I've done some adding and removing, also between folders, same behavior.

As mentioned before, it does look like the <CollapseSingleItemFolders> flag is set to false but i have no idea how to use the swagger to change it to true to test that.

Make the change and repost your libraryoptions as the endpoint shows you.

Here is yours

Spoiler

{
  "Id": "1867896",
      "LibraryOptions": {
        "EnableArchiveMediaFiles": false,
        "EnablePhotos": true,
        "EnableRealtimeMonitor": true,
        "EnableMarkerDetection": false,
        "EnableMarkerDetectionDuringLibraryScan": false,
        "IntroDetectionFingerprintLength": 10,
        "EnableChapterImageExtraction": false,
        "ExtractChapterImagesDuringLibraryScan": false,
        "DownloadImagesInAdvance": false,
        "CacheImages": false,
        "PathInfos": [
          {
            "Path": "/Volumes/Share/Anime/Movies"
          },
          {
            "Path": "/Volumes/Share/Anime/Shows"
          }
        ],
        "IgnoreHiddenFiles": false,
        "IgnoreFileExtensions": [],
        "SaveLocalMetadata": true,
        "SaveMetadataHidden": false,
        "SaveLocalThumbnailSets": false,
        "ImportPlaylists": true,
        "EnableAutomaticSeriesGrouping": true,
        "ShareEmbeddedMusicAlbumImages": true,
        "EnableEmbeddedTitles": false,
        "EnableAudioResume": false,
        "AutoGenerateChapters": true,
        "AutomaticRefreshIntervalDays": 0,
        "PlaceholderMetadataRefreshIntervalDays": 0,
        "PreferredMetadataLanguage": "en",
        "PreferredImageLanguage": "ja",
        "MetadataCountryCode": "JP",
        "MetadataSavers": [
          "Nfo"
        ],
        "DisabledLocalMetadataReaders": [],
        "DisabledLyricsFetchers": [],
        "SaveLyricsWithMedia": true,
        "LyricsDownloadMaxAgeDays": 180,
        "LyricsFetcherOrder": [],
        "LyricsDownloadLanguages": [],
        "DisabledSubtitleFetchers": [],
        "SubtitleFetcherOrder": [],
        "SkipSubtitlesIfEmbeddedSubtitlesPresent": true,
        "SkipSubtitlesIfAudioTrackMatches": true,
        "SubtitleDownloadLanguages": [
          "en"
        ],
        "SubtitleDownloadMaxAgeDays": 180,
        "RequirePerfectSubtitleMatch": false,
        "SaveSubtitlesWithMedia": true,
        "ForcedSubtitlesOnly": true,
        "HearingImpairedSubtitlesOnly": false,
        "TypeOptions": [
          {
            "Type": "Series",
            "MetadataFetchers": [
              "TheTVDB",
              "TheMovieDb",
              "The Open Movie Database"
            ],
            "MetadataFetcherOrder": [],
            "ImageFetchers": [
              "TheTVDB",
              "FanArt",
              "TheMovieDb",
              "The Open Movie Database",
              "AniSearch",
              "Proxer",
              "AniList",
              "MyAnimeList",
              "AniDB"
            ],
            "ImageFetcherOrder": [],
            "ImageOptions": [
              {
                "Type": "Primary",
                "Limit": 1,
                "MinWidth": 0
              },
              {
                "Type": "Art",
                "Limit": 1,
                "MinWidth": 0
              },
              {
                "Type": "Banner",
                "Limit": 1,
                "MinWidth": 0
              },
              {
                "Type": "Box",
                "Limit": 0,
                "MinWidth": 0
              },
              {
                "Type": "BoxRear",
                "Limit": 0,
                "MinWidth": 0
              },
              {
                "Type": "Disc",
                "Limit": 0,
                "MinWidth": 0
              },
              {
                "Type": "Logo",
                "Limit": 1,
                "MinWidth": 0
              },
              {
                "Type": "Menu",
                "Limit": 0,
                "MinWidth": 0
              },
              {
                "Type": "Thumb",
                "Limit": 1,
                "MinWidth": 0
              },
              {
                "Type": "Backdrop",
                "Limit": 1,
                "MinWidth": 1280
              }
            ]
          },
          {
            "Type": "Season",
            "MetadataFetchers": [
              "TheMovieDb"
            ],
            "MetadataFetcherOrder": [
              "TheMovieDb",
              "AniDB"
            ],
            "ImageFetchers": [
              "TheTVDB",
              "AniDB",
              "MyAnimeList",
              "AniList",
              "Proxer",
              "AniSearch",
              "FanArt",
              "TheMovieDb"
            ],
            "ImageFetcherOrder": [],
            "ImageOptions": [
              {
                "Type": "Primary",
                "Limit": 1,
                "MinWidth": 0
              },
              {
                "Type": "Art",
                "Limit": 0,
                "MinWidth": 0
              },
              {
                "Type": "Banner",
                "Limit": 1,
                "MinWidth": 0
              },
              {
                "Type": "Box",
                "Limit": 0,
                "MinWidth": 0
              },
              {
                "Type": "BoxRear",
                "Limit": 0,
                "MinWidth": 0
              },
              {
                "Type": "Disc",
                "Limit": 0,
                "MinWidth": 0
              },
              {
                "Type": "Logo",
                "Limit": 0,
                "MinWidth": 0
              },
              {
                "Type": "Menu",
                "Limit": 0,
                "MinWidth": 0
              },
              {
                "Type": "Thumb",
                "Limit": 1,
                "MinWidth": 0
              },
              {
                "Type": "Backdrop",
                "Limit": 1,
                "MinWidth": 1280
              }
            ]
          },
          {
            "Type": "Episode",
            "MetadataFetchers": [
              "TheTVDB",
              "TheMovieDb",
              "The Open Movie Database"
            ],
            "MetadataFetcherOrder": [
              "The Open Movie Database",
              "AniDB",
              "TheMovieDb",
              "TheTVDB"
            ],
            "ImageFetchers": [
              "TheTVDB",
              "Image Capture",
              "TheMovieDb",
              "The Open Movie Database"
            ],
            "ImageFetcherOrder": [],
            "ImageOptions": []
          },
          {
            "Type": "Movie",
            "MetadataFetchers": [
              "TheMovieDb",
              "TheTVDB",
              "The Open Movie Database"
            ],
            "MetadataFetcherOrder": [
              "The Open Movie Database",
              "TheMovieDb",
              "TheTVDB",
              "AniList"
            ],
            "ImageFetchers": [
              "TheMovieDb",
              "TheTVDB",
              "FanArt",
              "Image Capture",
              "AniList",
              "The Open Movie Database"
            ],
            "ImageFetcherOrder": [],
            "ImageOptions": [
              {
                "Type": "Primary",
                "Limit": 1,
                "MinWidth": 0
              },
              {
                "Type": "Art",
                "Limit": 1,
                "MinWidth": 0
              },
              {
                "Type": "Banner",
                "Limit": 1,
                "MinWidth": 0
              },
              {
                "Type": "Box",
                "Limit": 0,
                "MinWidth": 0
              },
              {
                "Type": "BoxRear",
                "Limit": 0,
                "MinWidth": 0
              },
              {
                "Type": "Disc",
                "Limit": 1,
                "MinWidth": 0
              },
              {
                "Type": "Logo",
                "Limit": 1,
                "MinWidth": 0
              },
              {
                "Type": "Menu",
                "Limit": 0,
                "MinWidth": 0
              },
              {
                "Type": "Thumb",
                "Limit": 1,
                "MinWidth": 0
              },
              {
                "Type": "Backdrop",
                "Limit": 1,
                "MinWidth": 1280
              }
            ]
          }
        ],
        "CollapseSingleItemFolders": true,
        "EnableAdultMetadata": true,
        "ImportCollections": true,
        "MinCollectionItems": 2,
        "MinResumePct": 3,
        "MaxResumePct": 90,
        "MinResumeDurationSeconds": 120,
        "ThumbnailImagesIntervalSeconds": 10,
        "SampleIgnoreSize": 314572800
      }
}

But should make no difference but you can test as system override library.

Edited by Happy2Play
Posted
5 hours ago, Iwamoto said:

Possibly, but then i wonder why the 1st screenshot is able to do it like that (e.g. not show the folders, only show the contents), it's almost like it flattens the folders or something.

To be clear, i'd like the end result to be able to have an overview of all movies and series mixed together (since it's a mixed media library for a reason)

First screenshot is the old way. Second screenshot gives you a more accurate view of your folders and is the way forward.

i know that in some cases it adds an extra click layer and there is a solution in the works for that.

  • Like 1
Posted
55 minutes ago, Happy2Play said:

Make the change and repost your libraryoptions as the endpoint shows you.

Here is yours

  Hide contents

{
  "Id": "1867896",
      "LibraryOptions": {
        "EnableArchiveMediaFiles": false,
        "EnablePhotos": true,
        "EnableRealtimeMonitor": true,
        "EnableMarkerDetection": false,
        "EnableMarkerDetectionDuringLibraryScan": false,
        "IntroDetectionFingerprintLength": 10,
        "EnableChapterImageExtraction": false,
        "ExtractChapterImagesDuringLibraryScan": false,
        "DownloadImagesInAdvance": false,
        "CacheImages": false,
        "PathInfos": [
          {
            "Path": "/Volumes/Share/Anime/Movies"
          },
          {
            "Path": "/Volumes/Share/Anime/Shows"
          }
        ],
        "IgnoreHiddenFiles": false,
        "IgnoreFileExtensions": [],
        "SaveLocalMetadata": true,
        "SaveMetadataHidden": false,
        "SaveLocalThumbnailSets": false,
        "ImportPlaylists": true,
        "EnableAutomaticSeriesGrouping": true,
        "ShareEmbeddedMusicAlbumImages": true,
        "EnableEmbeddedTitles": false,
        "EnableAudioResume": false,
        "AutoGenerateChapters": true,
        "AutomaticRefreshIntervalDays": 0,
        "PlaceholderMetadataRefreshIntervalDays": 0,
        "PreferredMetadataLanguage": "en",
        "PreferredImageLanguage": "ja",
        "MetadataCountryCode": "JP",
        "MetadataSavers": [
          "Nfo"
        ],
        "DisabledLocalMetadataReaders": [],
        "DisabledLyricsFetchers": [],
        "SaveLyricsWithMedia": true,
        "LyricsDownloadMaxAgeDays": 180,
        "LyricsFetcherOrder": [],
        "LyricsDownloadLanguages": [],
        "DisabledSubtitleFetchers": [],
        "SubtitleFetcherOrder": [],
        "SkipSubtitlesIfEmbeddedSubtitlesPresent": true,
        "SkipSubtitlesIfAudioTrackMatches": true,
        "SubtitleDownloadLanguages": [
          "en"
        ],
        "SubtitleDownloadMaxAgeDays": 180,
        "RequirePerfectSubtitleMatch": false,
        "SaveSubtitlesWithMedia": true,
        "ForcedSubtitlesOnly": true,
        "HearingImpairedSubtitlesOnly": false,
        "TypeOptions": [
          {
            "Type": "Series",
            "MetadataFetchers": [
              "TheTVDB",
              "TheMovieDb",
              "The Open Movie Database"
            ],
            "MetadataFetcherOrder": [],
            "ImageFetchers": [
              "TheTVDB",
              "FanArt",
              "TheMovieDb",
              "The Open Movie Database",
              "AniSearch",
              "Proxer",
              "AniList",
              "MyAnimeList",
              "AniDB"
            ],
            "ImageFetcherOrder": [],
            "ImageOptions": [
              {
                "Type": "Primary",
                "Limit": 1,
                "MinWidth": 0
              },
              {
                "Type": "Art",
                "Limit": 1,
                "MinWidth": 0
              },
              {
                "Type": "Banner",
                "Limit": 1,
                "MinWidth": 0
              },
              {
                "Type": "Box",
                "Limit": 0,
                "MinWidth": 0
              },
              {
                "Type": "BoxRear",
                "Limit": 0,
                "MinWidth": 0
              },
              {
                "Type": "Disc",
                "Limit": 0,
                "MinWidth": 0
              },
              {
                "Type": "Logo",
                "Limit": 1,
                "MinWidth": 0
              },
              {
                "Type": "Menu",
                "Limit": 0,
                "MinWidth": 0
              },
              {
                "Type": "Thumb",
                "Limit": 1,
                "MinWidth": 0
              },
              {
                "Type": "Backdrop",
                "Limit": 1,
                "MinWidth": 1280
              }
            ]
          },
          {
            "Type": "Season",
            "MetadataFetchers": [
              "TheMovieDb"
            ],
            "MetadataFetcherOrder": [
              "TheMovieDb",
              "AniDB"
            ],
            "ImageFetchers": [
              "TheTVDB",
              "AniDB",
              "MyAnimeList",
              "AniList",
              "Proxer",
              "AniSearch",
              "FanArt",
              "TheMovieDb"
            ],
            "ImageFetcherOrder": [],
            "ImageOptions": [
              {
                "Type": "Primary",
                "Limit": 1,
                "MinWidth": 0
              },
              {
                "Type": "Art",
                "Limit": 0,
                "MinWidth": 0
              },
              {
                "Type": "Banner",
                "Limit": 1,
                "MinWidth": 0
              },
              {
                "Type": "Box",
                "Limit": 0,
                "MinWidth": 0
              },
              {
                "Type": "BoxRear",
                "Limit": 0,
                "MinWidth": 0
              },
              {
                "Type": "Disc",
                "Limit": 0,
                "MinWidth": 0
              },
              {
                "Type": "Logo",
                "Limit": 0,
                "MinWidth": 0
              },
              {
                "Type": "Menu",
                "Limit": 0,
                "MinWidth": 0
              },
              {
                "Type": "Thumb",
                "Limit": 1,
                "MinWidth": 0
              },
              {
                "Type": "Backdrop",
                "Limit": 1,
                "MinWidth": 1280
              }
            ]
          },
          {
            "Type": "Episode",
            "MetadataFetchers": [
              "TheTVDB",
              "TheMovieDb",
              "The Open Movie Database"
            ],
            "MetadataFetcherOrder": [
              "The Open Movie Database",
              "AniDB",
              "TheMovieDb",
              "TheTVDB"
            ],
            "ImageFetchers": [
              "TheTVDB",
              "Image Capture",
              "TheMovieDb",
              "The Open Movie Database"
            ],
            "ImageFetcherOrder": [],
            "ImageOptions": []
          },
          {
            "Type": "Movie",
            "MetadataFetchers": [
              "TheMovieDb",
              "TheTVDB",
              "The Open Movie Database"
            ],
            "MetadataFetcherOrder": [
              "The Open Movie Database",
              "TheMovieDb",
              "TheTVDB",
              "AniList"
            ],
            "ImageFetchers": [
              "TheMovieDb",
              "TheTVDB",
              "FanArt",
              "Image Capture",
              "AniList",
              "The Open Movie Database"
            ],
            "ImageFetcherOrder": [],
            "ImageOptions": [
              {
                "Type": "Primary",
                "Limit": 1,
                "MinWidth": 0
              },
              {
                "Type": "Art",
                "Limit": 1,
                "MinWidth": 0
              },
              {
                "Type": "Banner",
                "Limit": 1,
                "MinWidth": 0
              },
              {
                "Type": "Box",
                "Limit": 0,
                "MinWidth": 0
              },
              {
                "Type": "BoxRear",
                "Limit": 0,
                "MinWidth": 0
              },
              {
                "Type": "Disc",
                "Limit": 1,
                "MinWidth": 0
              },
              {
                "Type": "Logo",
                "Limit": 1,
                "MinWidth": 0
              },
              {
                "Type": "Menu",
                "Limit": 0,
                "MinWidth": 0
              },
              {
                "Type": "Thumb",
                "Limit": 1,
                "MinWidth": 0
              },
              {
                "Type": "Backdrop",
                "Limit": 1,
                "MinWidth": 1280
              }
            ]
          }
        ],
        "CollapseSingleItemFolders": true,
        "EnableAdultMetadata": true,
        "ImportCollections": true,
        "MinCollectionItems": 2,
        "MinResumePct": 3,
        "MaxResumePct": 90,
        "MinResumeDurationSeconds": 120,
        "ThumbnailImagesIntervalSeconds": 10,
        "SampleIgnoreSize": 314572800
      }
}

But should make no difference but you can test as system override library.

So interesting, i did the change, did a library refresh, and yes, now the flattening is performed, so this fixed my problem, but not sure why it took that instead of the system override.

Happy2Play
Posted

Not sure but guess I will just have to remember these can be independent now.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...