LeidenSpain 33 Posted May 5, 2025 Posted May 5, 2025 Hello everyone, I have my personal library of family photos and videos organized by year/event (emby 4.8.11 runing on linux) I just realized that if I have only one video in one of the folders, it shows up in the root folder for the year, and the event folder doesn't show up in Emby. Look at folders 1 and 4, they don't appear as folders but the videos do in the root of 2025. Ideally, if you use the folder view, it should remain the same regardless of the number of files in each folder. Regards,
ebr 16177 Posted May 5, 2025 Posted May 5, 2025 Hi. A single video file in a folder is the definition of a movie to Emby. What is the type of this library?
LeidenSpain 33 Posted May 5, 2025 Author Posted May 5, 2025 2 minutes ago, ebr said: Hi. A single video file in a folder is the definition of a movie to Emby. What is the type of this library? Hi Home videos & photos
ebr 16177 Posted May 5, 2025 Posted May 5, 2025 10 minutes ago, LeidenSpain said: Home videos & photos Hmmm... I thought we didn't try to identify movies in that library type. Luke?
Happy2Play 9780 Posted May 5, 2025 Posted May 5, 2025 Some of the issue here will be the existing system.xml <CollapseVideoFolders> setting in conjustion with per library <CollapseSingleItemFolders> config only accessible via api now. As Old and New setups can/will have different values as mentioned in many topics. And additional change coming with new display option "jump through single item folders". 1
LeidenSpain 33 Posted May 5, 2025 Author Posted May 5, 2025 (edited) 4 minutes ago, Happy2Play said: Some of the issue here will be the existing system.xml <CollapseVideoFolders> setting in conjustion with per library <CollapseSingleItemFolders> config only accessible via api now. As Old and New setups can/will have different values as mentioned in many topics. And additional change coming with new display option "jump through single item folders". So I understand this will be fixed in future releases, correct? "Add option for folder view to auto open single items in folders" Thanks Edited May 5, 2025 by LeidenSpain
Happy2Play 9780 Posted May 5, 2025 Posted May 5, 2025 1 minute ago, LeidenSpain said: So I understand this will be fixed in future releases, correct? Thanks Dev will have to comment as I don't know if the two hidden switches are being removed or added to with the new display switch. As you currently want both switches set to false. As dev is not inclined to force the switch changes across all existing systems. linked topics over here. 1
ebr 16177 Posted May 5, 2025 Posted May 5, 2025 Ah, yes, it isn't an issue of it being seen as a movie. Thanks Happy.
LeidenSpain 33 Posted May 6, 2025 Author Posted May 6, 2025 (edited) 16 hours ago, Happy2Play said: Some of the issue here will be the existing system.xml <CollapseVideoFolders> setting in conjustion with per library <CollapseSingleItemFolders> config only accessible via api now. As Old and New setups can/will have different values as mentioned in many topics. And additional change coming with new display option "jump through single item folders". hi Where can I find (on Linux) those files, so I can manually modify my library settings, so that the folders are always displayed? In the /var/lib/emby folder I can't find the library information Regards Edited May 6, 2025 by LeidenSpain
Luke 42078 Posted May 6, 2025 Posted May 6, 2025 Quote it shows up in the root folder for the year, and the event folder doesn't show up in Emby. If you remove the library altogether and then add it back again, I think that will do what you want. 1
LeidenSpain 33 Posted May 6, 2025 Author Posted May 6, 2025 1 hour ago, Luke said: If you remove the library altogether and then add it back again, I think that will do what you want. Same situation
Luke 42078 Posted May 6, 2025 Posted May 6, 2025 OK for some users it might require a fresh install. the point being, the behavior is being changed to show the original folders.
LeidenSpain 33 Posted May 6, 2025 Author Posted May 6, 2025 42 minutes ago, Luke said: OK for some users it might require a fresh install. the point being, the behavior is being changed to show the original folders. A new installation is a very radical solution Is there a plan to add this option to the folder view?
Luke 42078 Posted May 7, 2025 Posted May 7, 2025 @Happy2Playknows a trick although it will end up with content being rescanned anyway.
LeidenSpain 33 Posted May 7, 2025 Author Posted May 7, 2025 1 hour ago, Luke said: @Happy2Playknows a trick although it will end up with content being rescanned anyway. Otherwise, the only thing I can think of is to create an image from the video, and put it inside the folder so that there are two elements. 1
Happy2Play 9780 Posted May 7, 2025 Posted May 7, 2025 You have to verify/change the <CollapseVideoFolders> in system.xml to false and use Emby api LibraryStructureService /Library/VirtualFolders/Query to get all library options/configs, then use /Library/VirtualFolders/LibraryOptions to repost the specific library option changing <CollapseSingleItemFolders> to false and Rescanning all libraries. Not specific to this but most of the step are shown in this how to. 1 1
LeidenSpain 33 Posted May 9, 2025 Author Posted May 9, 2025 On 5/8/2025 at 1:45 AM, Happy2Play said: You have to verify/change the <CollapseVideoFolders> in system.xml to false and use Emby api LibraryStructureService /Library/VirtualFolders/Query to get all library options/configs, then use /Library/VirtualFolders/LibraryOptions to repost the specific library option changing <CollapseSingleItemFolders> to false and Rescanning all libraries. Not specific to this but most of the step are shown in this how to. I've tried it step by step, but it just created a new library. I don't quite understand the connection with displaying single-item folders.
Happy2Play 9780 Posted May 9, 2025 Posted May 9, 2025 (edited) 2 hours ago, LeidenSpain said: I've tried it step by step, but it just created a new library. I don't quite understand the connection with displaying single-item folders. The how to sort of just lets you know how to use the api and general area you need as all you are doing is Querying your libraries, then from that query you will pull out your secific library setting ie similar to what the how to shows for a Collection library. Then you will take your existing libraryid and its configs and rePOST it updating the CollapseSingleItemFolders setting. You are using the wrong endpoint if you are creating a new library. You will update with libraryoptions So here is an example as I did a query and pulled out my Home Video and Photo library from the full query. Spoiler { "Name": "Home videos & photos", "Locations": [ "E:\\Media\\Photo" ], "CollectionType": "homevideos", "LibraryOptions": { "EnableArchiveMediaFiles": false, "EnablePhotos": true, "EnableRealtimeMonitor": true, "EnableMarkerDetection": false, "EnableMarkerDetectionDuringLibraryScan": false, "IntroDetectionFingerprintLength": 10, "EnableChapterImageExtraction": true, "ExtractChapterImagesDuringLibraryScan": true, "DownloadImagesInAdvance": true, "CacheImages": false, "PathInfos": [ { "Path": "E:\\Media\\Photo" } ], "IgnoreHiddenFiles": false, "IgnoreFileExtensions": [], "SaveLocalMetadata": true, "SaveMetadataHidden": false, "SaveLocalThumbnailSets": false, "ImportPlaylists": true, "EnableAutomaticSeriesGrouping": true, "ShareEmbeddedMusicAlbumImages": true, "EnableEmbeddedTitles": false, "EnableAudioResume": false, "AutoGenerateChapters": true, "AutoGenerateChapterIntervalMinutes": 5, "AutomaticRefreshIntervalDays": 0, "PlaceholderMetadataRefreshIntervalDays": 0, "PreferredMetadataLanguage": "", "PreferredImageLanguage": "", "ContentType": "homevideos", "MetadataCountryCode": "", "MetadataSavers": [ "Nfo" ], "DisabledLocalMetadataReaders": [], "LocalMetadataReaderOrder": [ "Emby Xml", "Nfo" ], "DisabledLyricsFetchers": [], "SaveLyricsWithMedia": true, "LyricsDownloadMaxAgeDays": 180, "LyricsFetcherOrder": [], "LyricsDownloadLanguages": [], "DisabledSubtitleFetchers": [], "SubtitleFetcherOrder": [], "SkipSubtitlesIfEmbeddedSubtitlesPresent": false, "SkipSubtitlesIfAudioTrackMatches": false, "SubtitleDownloadLanguages": [], "SubtitleDownloadMaxAgeDays": 180, "RequirePerfectSubtitleMatch": true, "SaveSubtitlesWithMedia": true, "ForcedSubtitlesOnly": false, "HearingImpairedSubtitlesOnly": false, "TypeOptions": [ { "Type": "Video", "MetadataFetchers": [], "MetadataFetcherOrder": [], "ImageFetchers": [ "Image Capture" ], "ImageFetcherOrder": [ "Image Capture" ], "ImageOptions": [] } ], "CollapseSingleItemFolders": true, "EnableAdultMetadata": false, "ImportCollections": true, "EnableMultiVersionByFiles": true, "EnableMultiVersionByMetadata": true, "EnableMultiPartItems": true, "MinCollectionItems": 2, "MinResumePct": 5, "MaxResumePct": 90, "MinResumeDurationSeconds": 180, "ThumbnailImagesIntervalSeconds": -1, "SampleIgnoreSize": 314572800 }, "ItemId": "67", "Id": "67", "Guid": "f1ffda17fff72a19997ec7e667bb8d3c", "PrimaryImageItemId": "67", "PrimaryImageTag": "3c9b8e2d4ad377fd571d5caed0b5a972" } So I need the libraryid of 67 and everything in the "LibraryOptions" section to POST in libraryoptions endpoint. Spoiler { "Id": "67", "LibraryOptions": { "EnableArchiveMediaFiles": false, "EnablePhotos": true, "EnableRealtimeMonitor": true, "EnableMarkerDetection": false, "EnableMarkerDetectionDuringLibraryScan": false, "IntroDetectionFingerprintLength": 10, "EnableChapterImageExtraction": true, "ExtractChapterImagesDuringLibraryScan": true, "DownloadImagesInAdvance": true, "CacheImages": false, "PathInfos": [ { "Path": "E:\\Media\\Photo" } ], "IgnoreHiddenFiles": false, "IgnoreFileExtensions": [], "SaveLocalMetadata": true, "SaveMetadataHidden": false, "SaveLocalThumbnailSets": false, "ImportPlaylists": true, "EnableAutomaticSeriesGrouping": true, "ShareEmbeddedMusicAlbumImages": true, "EnableEmbeddedTitles": false, "EnableAudioResume": false, "AutoGenerateChapters": true, "AutoGenerateChapterIntervalMinutes": 5, "AutomaticRefreshIntervalDays": 0, "PlaceholderMetadataRefreshIntervalDays": 0, "PreferredMetadataLanguage": "", "PreferredImageLanguage": "", "ContentType": "homevideos", "MetadataCountryCode": "", "MetadataSavers": [ "Nfo" ], "DisabledLocalMetadataReaders": [], "LocalMetadataReaderOrder": [ "Emby Xml", "Nfo" ], "DisabledLyricsFetchers": [], "SaveLyricsWithMedia": true, "LyricsDownloadMaxAgeDays": 180, "LyricsFetcherOrder": [], "LyricsDownloadLanguages": [], "DisabledSubtitleFetchers": [], "SubtitleFetcherOrder": [], "SkipSubtitlesIfEmbeddedSubtitlesPresent": false, "SkipSubtitlesIfAudioTrackMatches": false, "SubtitleDownloadLanguages": [], "SubtitleDownloadMaxAgeDays": 180, "RequirePerfectSubtitleMatch": true, "SaveSubtitlesWithMedia": true, "ForcedSubtitlesOnly": false, "HearingImpairedSubtitlesOnly": false, "TypeOptions": [ { "Type": "Video", "MetadataFetchers": [], "MetadataFetcherOrder": [], "ImageFetchers": [ "Image Capture" ], "ImageFetcherOrder": [ "Image Capture" ], "ImageOptions": [] } ], "CollapseSingleItemFolders": false, "EnableAdultMetadata": false, "ImportCollections": true, "EnableMultiVersionByFiles": true, "EnableMultiVersionByMetadata": true, "EnableMultiPartItems": true, "MinCollectionItems": 2, "MinResumePct": 5, "MaxResumePct": 90, "MinResumeDurationSeconds": 180, "ThumbnailImagesIntervalSeconds": -1, "SampleIgnoreSize": 314572800 } } Now you verify your system.xml setting CollapseVideoFolders is set to false and restart your server and run a library scan. Obviously path with be platform specific. Now if you do not want to navigate to the system.xml file you can make the update via the api als doing a query (GET) then with that info update (POST) it with your changes. Then restart Emby. Edited May 9, 2025 by Happy2Play added system.xml api info 1 1 1
LeidenSpain 33 Posted May 9, 2025 Author Posted May 9, 2025 5 hours ago, Happy2Play said: The how to sort of just lets you know how to use the api and general area you need as all you are doing is Querying your libraries, then from that query you will pull out your secific library setting ie similar to what the how to shows for a Collection library. Then you will take your existing libraryid and its configs and rePOST it updating the CollapseSingleItemFolders setting. You are using the wrong endpoint if you are creating a new library. You will update with libraryoptions So here is an example as I did a query and pulled out my Home Video and Photo library from the full query. Reveal hidden contents { "Name": "Home videos & photos", "Locations": [ "E:\\Media\\Photo" ], "CollectionType": "homevideos", "LibraryOptions": { "EnableArchiveMediaFiles": false, "EnablePhotos": true, "EnableRealtimeMonitor": true, "EnableMarkerDetection": false, "EnableMarkerDetectionDuringLibraryScan": false, "IntroDetectionFingerprintLength": 10, "EnableChapterImageExtraction": true, "ExtractChapterImagesDuringLibraryScan": true, "DownloadImagesInAdvance": true, "CacheImages": false, "PathInfos": [ { "Path": "E:\\Media\\Photo" } ], "IgnoreHiddenFiles": false, "IgnoreFileExtensions": [], "SaveLocalMetadata": true, "SaveMetadataHidden": false, "SaveLocalThumbnailSets": false, "ImportPlaylists": true, "EnableAutomaticSeriesGrouping": true, "ShareEmbeddedMusicAlbumImages": true, "EnableEmbeddedTitles": false, "EnableAudioResume": false, "AutoGenerateChapters": true, "AutoGenerateChapterIntervalMinutes": 5, "AutomaticRefreshIntervalDays": 0, "PlaceholderMetadataRefreshIntervalDays": 0, "PreferredMetadataLanguage": "", "PreferredImageLanguage": "", "ContentType": "homevideos", "MetadataCountryCode": "", "MetadataSavers": [ "Nfo" ], "DisabledLocalMetadataReaders": [], "LocalMetadataReaderOrder": [ "Emby Xml", "Nfo" ], "DisabledLyricsFetchers": [], "SaveLyricsWithMedia": true, "LyricsDownloadMaxAgeDays": 180, "LyricsFetcherOrder": [], "LyricsDownloadLanguages": [], "DisabledSubtitleFetchers": [], "SubtitleFetcherOrder": [], "SkipSubtitlesIfEmbeddedSubtitlesPresent": false, "SkipSubtitlesIfAudioTrackMatches": false, "SubtitleDownloadLanguages": [], "SubtitleDownloadMaxAgeDays": 180, "RequirePerfectSubtitleMatch": true, "SaveSubtitlesWithMedia": true, "ForcedSubtitlesOnly": false, "HearingImpairedSubtitlesOnly": false, "TypeOptions": [ { "Type": "Video", "MetadataFetchers": [], "MetadataFetcherOrder": [], "ImageFetchers": [ "Image Capture" ], "ImageFetcherOrder": [ "Image Capture" ], "ImageOptions": [] } ], "CollapseSingleItemFolders": true, "EnableAdultMetadata": false, "ImportCollections": true, "EnableMultiVersionByFiles": true, "EnableMultiVersionByMetadata": true, "EnableMultiPartItems": true, "MinCollectionItems": 2, "MinResumePct": 5, "MaxResumePct": 90, "MinResumeDurationSeconds": 180, "ThumbnailImagesIntervalSeconds": -1, "SampleIgnoreSize": 314572800 }, "ItemId": "67", "Id": "67", "Guid": "f1ffda17fff72a19997ec7e667bb8d3c", "PrimaryImageItemId": "67", "PrimaryImageTag": "3c9b8e2d4ad377fd571d5caed0b5a972" } So I need the libraryid of 67 and everything in the "LibraryOptions" section to POST in libraryoptions endpoint. Reveal hidden contents { "Id": "67", "LibraryOptions": { "EnableArchiveMediaFiles": false, "EnablePhotos": true, "EnableRealtimeMonitor": true, "EnableMarkerDetection": false, "EnableMarkerDetectionDuringLibraryScan": false, "IntroDetectionFingerprintLength": 10, "EnableChapterImageExtraction": true, "ExtractChapterImagesDuringLibraryScan": true, "DownloadImagesInAdvance": true, "CacheImages": false, "PathInfos": [ { "Path": "E:\\Media\\Photo" } ], "IgnoreHiddenFiles": false, "IgnoreFileExtensions": [], "SaveLocalMetadata": true, "SaveMetadataHidden": false, "SaveLocalThumbnailSets": false, "ImportPlaylists": true, "EnableAutomaticSeriesGrouping": true, "ShareEmbeddedMusicAlbumImages": true, "EnableEmbeddedTitles": false, "EnableAudioResume": false, "AutoGenerateChapters": true, "AutoGenerateChapterIntervalMinutes": 5, "AutomaticRefreshIntervalDays": 0, "PlaceholderMetadataRefreshIntervalDays": 0, "PreferredMetadataLanguage": "", "PreferredImageLanguage": "", "ContentType": "homevideos", "MetadataCountryCode": "", "MetadataSavers": [ "Nfo" ], "DisabledLocalMetadataReaders": [], "LocalMetadataReaderOrder": [ "Emby Xml", "Nfo" ], "DisabledLyricsFetchers": [], "SaveLyricsWithMedia": true, "LyricsDownloadMaxAgeDays": 180, "LyricsFetcherOrder": [], "LyricsDownloadLanguages": [], "DisabledSubtitleFetchers": [], "SubtitleFetcherOrder": [], "SkipSubtitlesIfEmbeddedSubtitlesPresent": false, "SkipSubtitlesIfAudioTrackMatches": false, "SubtitleDownloadLanguages": [], "SubtitleDownloadMaxAgeDays": 180, "RequirePerfectSubtitleMatch": true, "SaveSubtitlesWithMedia": true, "ForcedSubtitlesOnly": false, "HearingImpairedSubtitlesOnly": false, "TypeOptions": [ { "Type": "Video", "MetadataFetchers": [], "MetadataFetcherOrder": [], "ImageFetchers": [ "Image Capture" ], "ImageFetcherOrder": [ "Image Capture" ], "ImageOptions": [] } ], "CollapseSingleItemFolders": false, "EnableAdultMetadata": false, "ImportCollections": true, "EnableMultiVersionByFiles": true, "EnableMultiVersionByMetadata": true, "EnableMultiPartItems": true, "MinCollectionItems": 2, "MinResumePct": 5, "MaxResumePct": 90, "MinResumeDurationSeconds": 180, "ThumbnailImagesIntervalSeconds": -1, "SampleIgnoreSize": 314572800 } } Now you verify your system.xml setting CollapseVideoFolders is set to false and restart your server and run a library scan. Obviously path with be platform specific. Now if you do not want to navigate to the system.xml file you can make the update via the api als doing a query (GET) then with that info update (POST) it with your changes. Then restart Emby. It's 11:00 PM in Spain. I'd better try again tomorrow.
LeidenSpain 33 Posted June 12, 2025 Author Posted June 12, 2025 Hello again. I haven't been able to figure it out, so I'll go with the simpler approach: extract a frame from the video so that there are two elements.
Luke 42078 Posted June 12, 2025 Posted June 12, 2025 12 minutes ago, LeidenSpain said: Hello again. I haven't been able to figure it out, so I'll go with the simpler approach: extract a frame from the video so that there are two elements. What happy2play said should do the job.
LeidenSpain 33 Posted June 12, 2025 Author Posted June 12, 2025 Just now, Luke said: What happy2play said should do the job. I'm not saying it doesn't work, I'm saying I haven't made it work.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now