Jump to content

Changing MediaPathInfo for an existing Library - Is it safe to do?


Go to solution Solved by kkhan,

Recommended Posts

Posted

I have been noticing that occasionally items from my TV series library vanish randomly and then later reappear.  Pinpointing the fault to a NTFS file system UNC path permissions/sharing issue for the TV Series library which may be due to a bug in the software RAID solution I use.  As the library MediaPathInfo uses network UNC path naming, when the bug appears it causes the particular series or episode to appear to vanish.  It is visible in using the absolute path name but not the UNC path for the duration of the fault which can last for several hours.

The easiest short-terms solution is to modify the options.xml file for the library with MediaPathInfo pointing to the absolute file system path and restart emby.  Will emby see that as an entirely new library? If so that would be a problem as I would lose all played tags and emby would have to rescan the entire library.  Anything else I should be aware off?

If I can do this, then I can keep the server operational while addressing the underlying sharing/permissions issue.

 

Happy2Play
Posted
2 hours ago, kkhan said:

The easiest short-terms solution is to modify the options.xml file for the library with MediaPathInfo pointing to the absolute file system path and restart emby.  Will emby see that as an entirely new library? If so that would be a problem as I would lose all played tags and emby would have to rescan the entire library.  Anything else I should be aware off?

Userdata is tracked by providerid so changing path is irrelevant unless media does not have a providerid.

But modifying the options.xml can be problematic depending on the path the item wrote to the database.  So if you are editing options.xml I would suggest doing the same to the library.db  Path/Images in mediaitems table and possibly ImagePath in Chapters3 table

  • Solution
Posted

Thanks for the input.

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