Jump to content

Recommended Posts

Posted

Is this actually as simple as (in principle, I'm making this up as I write)

1. Stop Emby

2. Move the data from the old location to the new location

3. Open library.db and run

UPDATE MediaItems

SET Path='newpath'|| SUBSTR(Path,8,99)     [SQLLite yes so not CONCAT]

WHERE SUBSTR(Path,1,7)='oldpath'

4 Start Emby

??

Posted (edited)

If you run the library scan after the restart, would that not apply the new locations.

The library scan might take an extra moment to complete, but it should correct the db for you.

Edited by chef
  • Agree 1
Posted
14 minutes ago, chef said:

The library scan might take an extra moment to complete, but it should correct the db for you.

+1

I do that all the time.

Posted (edited)
23 minutes ago, Abobader said:

+1

I do that all the time.

But if you do that, you have to start from base zero in identifying all the contents, etc etc, surely? I have done that before, and that is what happened.

The point is to retain all the "customisation".

Edited by scb99
  • Like 1
Posted
1 hour ago, scb99 said:

But if you do that, you have to start from base zero in identifying all the contents, etc etc, surely? I have done that before, and that is what happened.

The point is to retain all the "customisation".

I think as long as the nfo's gets moved as well.

But also if the entry itself already exists in the database, it would only be the path that gets updated.

I'm about 90% certain.

Posted

@chef I dont use nfos... As far as the db is concerned, it's a delete and re-add. It's got no way to know it's the same material in a new location.

I'm pretty sure my way will work, I might do a test run soon.

  • Like 1
Happy2Play
Posted

From database only setup, yes the users has to manually update the database for the moved media.  If not it will be removed as it no longer exists in old location, then readded from new location causing complete lookup for metadata and images.

So to keep the existing identified media, Path needs updating

 

  • Like 1
greinhardt
Posted

It would be very useful to have an admin operation to move an item from one library to another, moving the files and updating the database.

Posted
10 minutes ago, greinhardt said:

It would be very useful to have an admin operation to move an item from one library to another, moving the files and updating the database.

HI, yes, it's on the to do list. Thanks.

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