Jump to content

Change movie folder without rescan


Go to solution Solved by Neminem,

Recommended Posts

CaffNoir
Posted (edited)

Hey everyone ! Hope y'all good :)
I have a question. I would like to change my movie folder from /xxx/storage1/movies to /xxx/storage2/movies without having to rescan everything. Is there anyway to just change the default folder and apply it to all my movie without rescan everything ? I have a huge library so it would take around 3-4 days to rescan everything without counting the time it will take to delete all the movies that has been moved. Also i actually have all of my movies on the two folders.
If anyone have the answer please :))

Edited by CaffNoir
more precisions
Happy2Play
Posted

Close as the system.xml has nothing to do with it and the old library options.xml are obsolete as of 4.8.

Example only from a migration topic, but you need to update everywhere path is used.

UPDATE "main"."MediaItems" SET "Path" = replace( "Path", 'C:\Users\Media\Desktop\Videos', 'E:\Media' ) WHERE path LIKE 'C:\Users\Media\Desktop\Videos%';
UPDATE "main"."MediaItems" SET "Images" = replace( "Images", 'C:\Users\Media\Desktop\Videos', 'E:\Media' ) WHERE Images LIKE 'C:\Users\Media\Desktop\Videos%';
UPDATE "main"."MediaStreams2" SET "Path" = replace( "Path", 'C:\Users\Media\Desktop\Videos', 'E:\Media' ) WHERE path LIKE 'C:\Users\Media\Desktop\Videos%';
UPDATE "main"."Chapters3" SET "ImagePath" = replace( "ImagePath", 'C:\Users\Media\Desktop\Videos', 'E:\Media' ) WHERE imagepath LIKE 'C:\Users\Media\Desktop\Videos%';
UPDATE "main"."ItemExtradata" SET "Value" = replace( "Value", '"Path":"C:\\Users\\Media\\Desktop\\Videos', '"Path":"E:\\Media' ) WHERE value LIKE '%"Path":"C:\\Users\\Media\\Desktop\\Videos%';

If you filled in Network path on Library setup you will could need to update in options.xml and itemextradata. xml is obsolete in new 4.8+
Cinema Intro plugin paths
If you use AutoOrganizer you will need to update or delete the fileorganization.db
If you applied user images then path will need updated users.db

 

Posted

Officially there is no way to do this, but it is on our to do list.

  • Agree 1
Neminem
Posted

@CaffNoir Are you running in Docker ?

CaffNoir
Posted
7 hours ago, jaycedk said:

@CaffNoir Are you running in Docker ?

Yes ! With the last beta (4.9.0.28)

CaffNoir
Posted
12 hours ago, Happy2Play said:

Close as the system.xml has nothing to do with it and the old library options.xml are obsolete as of 4.8.

Example only from a migration topic, but you need to update everywhere path is used.

UPDATE "main"."MediaItems" SET "Path" = replace( "Path", 'C:\Users\Media\Desktop\Videos', 'E:\Media' ) WHERE path LIKE 'C:\Users\Media\Desktop\Videos%';
UPDATE "main"."MediaItems" SET "Images" = replace( "Images", 'C:\Users\Media\Desktop\Videos', 'E:\Media' ) WHERE Images LIKE 'C:\Users\Media\Desktop\Videos%';
UPDATE "main"."MediaStreams2" SET "Path" = replace( "Path", 'C:\Users\Media\Desktop\Videos', 'E:\Media' ) WHERE path LIKE 'C:\Users\Media\Desktop\Videos%';
UPDATE "main"."Chapters3" SET "ImagePath" = replace( "ImagePath", 'C:\Users\Media\Desktop\Videos', 'E:\Media' ) WHERE imagepath LIKE 'C:\Users\Media\Desktop\Videos%';
UPDATE "main"."ItemExtradata" SET "Value" = replace( "Value", '"Path":"C:\\Users\\Media\\Desktop\\Videos', '"Path":"E:\\Media' ) WHERE value LIKE '%"Path":"C:\\Users\\Media\\Desktop\\Videos%';

If you filled in Network path on Library setup you will could need to update in options.xml and itemextradata. xml is obsolete in new 4.8+
Cinema Intro plugin paths
If you use AutoOrganizer you will need to update or delete the fileorganization.db
If you applied user images then path will need updated users.db

 

Thanks i'll take a try, before i'll try to test if i can do it directly from docker i think i can do it in a different way without editing emby files

  • Solution
Neminem
Posted (edited)
9 minutes ago, CaffNoir said:

Yes ! With the last beta (4.9.0.28)

Ok I just did a relocation of media files the other day.

Just copy you files to there new home.

When done set the new mount mapping, but leave the docker inside mapping as is.

I use Unraid so not really familiar with compose, but here is a screenshot of what I did.

image.png.beb9c1da3c7572ddaffb49ba2eab01bb.png

Maked green is 👍

Marked red is 👎

Hope this makes sense.

If done wrong Emby will see the new file's as new or delete db entries.

Edited by jaycedk
  • Thanks 1
CaffNoir
Posted

yes i need to take a try, i'll try it on a fresh emby-server just to be sure but docker should merge both path into the same that i have :) thanks you ! I'll keep this thread updated :)

  • Like 1
Neminem
Posted

@CaffNoirI just edited my post with some info.

Please read 😉

  • Thanks 1
CaffNoir
Posted (edited)

i still need to finish copying my files inti the new location, i'll do changes Monday and let you know, but pretty sure it will work like you'v showed, it's pretty much the same thing with portainer :) Thanks you :)

Edited by CaffNoir
forgot to say thanks ! :)
  • Like 1

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