Jump to content

Howto reset library scan problems?


Recommended Posts

Posted

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:

image.png.286f673fb5877198513a00ae53a9f80e.png

 

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!

Posted

Hi there, what is the content type of the library in emby library setup?

Posted

Hi, Luke!

 

Content type is "Home videos & photos".

Posted

Can you please provide exact examples of how they're named and organized? Thanks.

Happy2Play
Posted

 

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.

image.png.27a1d64e60ed09ce209ea9947c1435b9.png

@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.

 

Posted
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> ?

 

Posted (edited)

I have

<CollapseSingleItemFolders>false</CollapseSingleItemFolders>

in

default/Home videos & photos/options.xml

 

Edited by danergo
Posted

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?

Posted

I think you can run a library scan after doing that.

Posted

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!

Posted

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.

Posted

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
Posted (edited)

I am not sure but I have no issue changing both files to false and getting none collapsed view.

image.thumb.png.0b48126b08922d3dfbd2149e312cc6f0.png

 

Different server with Collapsed view

image.png.5f132a541dc1472be51f92ae1ced29a0.png

Edited by Happy2Play
removed WAN
Posted

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!

 

Posted

Try just setting the value without removing and re-adding the library.

Posted

Setting the value without removing and re-adding doesn't make any difference. I did also a "Scan Library Files".

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...