Update movie source in AMC? (2 Viewers)

Pornluvr

Portal Member
January 29, 2008
17
0
Home Country
United States of America United States of America
I use AMC Updater to scan for new movies and then import the changes to my AMC XML file. It works great. I recently upgraded a hard drive and moved my files to a different drive letter. Now, when I use AMC Updater and point it to the new drive, it wants to bring in all the movies again. In AMC the source of each file is the original drive. Is there a way to change the source drive from the old drive letter to the new one without manually doing it for each movie? That could take hours. I also don't want to delete them and reimport with AMC updater because then I have to import the information from IMDB and that will take much longer.
Any ideas?
 

z3us

Portal Pro
December 4, 2007
1,047
123
44
Home Country
Spain Spain
If the filename doesnt change, last version of AMCupdater is able to detect it if a file has been moved and update the path.
Observe the log, and if it says "moved file" before each file
 

Pornluvr

Portal Member
January 29, 2008
17
0
Home Country
United States of America United States of America
Thanks. I did that, but it detected about half my movies as being new and wanted to import from IMDB (my selected source), even though I never changed the movie titles. This is no good because it creates duplicates. Is there a way to import all the files to AMC XML without having to use the internet parser since I've already downloaded the movie info in AMC? All I want to do is update my AMC XML file with some new listings, but since I changed the drive they're located on, it detects a bunch as new listings.
I just don't want to have to reimport from IMDB all over again,and the old AMC Updater version doesn't seem to recognize the files as being NOT new.
 

bwg

Portal Pro
December 25, 2007
145
38
Home Country
In addition, you can also use the auto tools script for AMC (can't remember the exact name, if it's not in the SHIFT + F6 menu, look for it in the link to scripts from the AMC homepage and download it into your scripts folder). With this tool there is an option to replace text in a field. You could get it to replace all references to your old path with your new path.

As z3us pointed out, your filenames would have to be unchanged.

Or you could simply swap the drive letters around in disk management so your new drive takes the letter of your old drive :) but that's not a very professional solution, just easy.

I have shared my movies folder, so instead of "D:\movies\filename.avi", it will read "\\HTPC\movies\filename.avi". So if I move to a new drive, I will just change my shared folder so that the name remains the same.
 

z3us

Portal Pro
December 4, 2007
1,047
123
44
Home Country
Spain Spain
A easy option would be to use the windows notepad to edit the xml file and replace the old path by the new one in all entries.
 

LaMaOne

New Member
July 22, 2008
4
0
Home Country
Netherlands Netherlands
Alternatively, you could achieve this in AMC itself using scripting.
I did this myself not long ago, here's my script:

Code:
program FindReplace;

//replace C:\ with E:\ in fieldSource string
const
  WholeWord = False;
  Search = 'C:\';
  Replace = 'E:\';
  Field = fieldSource;

var
  s: string;
begin
  s := GetField(Field);
  if WholeWord then
  begin
    if s = Search then
      SetField(Field, Replace);
  end
  else
    SetField(Field, StringReplace(s, Search, Replace));
end.
 

Users who are viewing this thread

Top Bottom