danergo 37 Posted December 15, 2021 Posted December 15, 2021 Hi! I have a library with some personal videos. All videos are following this structure in the filesystem: X/dji_Y.mp4 X is a number as folder (starting from 1), and Y is also another number starting from 1, formatted to be exactly 4 characters as length. Here is my metadata structure: The problem can be clearly seen on this: first DJI_0001's path is 30/DJI_0001.mp4, and second DJI_0001's path is 31/DJI_0001.mp4. However, library scan drop them into the same level as the grouping folders. In the filesystem there are no video files outside of those grouping folders. How can I ask Emby to put those video files back to their container folders? (Library re-scan doesn't solve this) Thank you!
Luke 42081 Posted December 15, 2021 Posted December 15, 2021 Hi there, what is the content type of the library in emby library setup?
danergo 37 Posted December 15, 2021 Author Posted December 15, 2021 Hi, Luke! Content type is "Home videos & photos".
Luke 42081 Posted December 15, 2021 Posted December 15, 2021 Can you please provide exact examples of how they're named and organized? Thanks.
Happy2Play 9783 Posted December 15, 2021 Posted December 15, 2021 12 hours ago, danergo said: The problem can be clearly seen on this: first DJI_0001's path is 30/DJI_0001.mp4, and second DJI_0001's path is 31/DJI_0001.mp4. @Lukeisn't this <CollapseSingleItemFolders>? Since folder only contains one item MM presents item not folder. If so system and library options.xml probably need changed, but this is a destructive process.
danergo 37 Posted December 16, 2021 Author Posted December 16, 2021 10 hours ago, Happy2Play said: @Lukeisn't this <CollapseSingleItemFolders>? Since folder only contains one item MM presents item not folder. If so system and library options.xml probably need changed, but this is a destructive process. Exactly! Only those items are coming up to folder's level, which were single in the container. I wish those files to be presented in their containing folders in spite they are single. (Otherwise, I'll have many files with the same name ungrouped, as on my screenshot) Can I somehow disable <CollapseSingleItemFolders> ?
danergo 37 Posted December 16, 2021 Author Posted December 16, 2021 (edited) I have <CollapseSingleItemFolders>false</CollapseSingleItemFolders> in default/Home videos & photos/options.xml Edited December 16, 2021 by danergo
Happy2Play 9783 Posted December 16, 2021 Posted December 16, 2021 But the setting in the systm.xml will override the library setting. <CollapseVideoFolders> https://emby.media/community/index.php?/topic/101693-best-practice-for-maintaining-production-and-beta-emby-installations/&do=findComment&comment=1070905 There are a few topics out there if you search either of these switches.
danergo 37 Posted December 16, 2021 Author Posted December 16, 2021 Yepp, mine is set to true (in options.xml). Changing that (back to false) and then I have to remove and readd the library to fix this? During library readd, no files will be deleted?
Luke 42081 Posted December 16, 2021 Posted December 16, 2021 I think you can run a library scan after doing that.
danergo 37 Posted December 18, 2021 Author Posted December 18, 2021 Didn't worked out Spent almost a day with library rescan (lot of video files). But it still dropped back the single files to the folder level. @Luke, @Happy2Play: Can you recommend me a proven way to make this work, as library rescan takes too much time to test various setups and I don't have a sandboxed Emby right now. I'm on latest stable: 4.6.7.0 $ grep -i collapse system.xml <CollapseVideoFolders>false</CollapseVideoFolders> $ grep -r -r -i collapse Home videos & photos/options.xml: <CollapseSingleItemFolders>true</CollapseSingleItemFolders> Should I have both set to false to leave the directories just as they are presented on the file-system? Thank you!
Luke 42081 Posted December 20, 2021 Posted December 20, 2021 For most users this is expected right now. As I said it's something we may revise in future updates. If you really want to hack the config file, try setting both to false. Just keep in mind this is not a toggle that is meant to go back and forth and we have not been testing it in this manner.
danergo 37 Posted December 23, 2021 Author Posted December 23, 2021 Hi, first of all, thank you very much for all your efforts, and I wish you and the whole crew a Merry XMas and happy holidays. I have changed both items to "false", but I still have the single videos out of their parent directory after a whole rescan
Happy2Play 9783 Posted December 23, 2021 Posted December 23, 2021 (edited) I am not sure but I have no issue changing both files to false and getting none collapsed view. Different server with Collapsed view Edited December 23, 2021 by Happy2Play removed WAN
danergo 37 Posted December 24, 2021 Author Posted December 24, 2021 Wow, my problem I guess is the order of execution of steps: What I've done: 1.) Change both to `false`. 2.) Removed the library 3.) Added the library (this triggers a complete rescan) But obviously, after step2, my modification disappeared, and in step3 library has been added with `true` for `CollapseSingleItemFolders`. So the real question is: how can I change these two options to false? Shall I not remove and re-add the library? Or shall I somehow re-add the library with banning the scanning (then setting `CollapseSingleItemFolders` to `false` then rescan manually)? Or can I somehow add the library having `CollapseSingleItemFolders` set to `false` by default? Thank you! Merry XMas!
Luke 42081 Posted December 24, 2021 Posted December 24, 2021 Try just setting the value without removing and re-adding the library.
danergo 37 Posted December 24, 2021 Author Posted December 24, 2021 Setting the value without removing and re-adding doesn't make any difference. I did also a "Scan Library Files".
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