MediaPortal Forums HTPC/MediaCenter

Go Back   MediaPortal Forum » MediaPortal 1 » Community Skins and Plugins » Plugins » Hot Plugins » My Films


My Films MediaPortal My Films plugin.

Reply
 
Thread Tools Display Modes
Old 2008-07-28, 00:56   #1 (permalink)
Portal Member
 
Join Date: Jan 2008
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts

Country:


Default Update movie source in AMC?

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?
Pornluvr is offline   Reply With Quote
Old 2008-07-28, 01:41   #2 (permalink)
Portal Member
 
z3us's Avatar
 
Join Date: Dec 2007
Posts: 288
Thanks: 53
Thanked 8 Times in 8 Posts

Country:


Default

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
z3us is offline   Reply With Quote
Old 2008-07-28, 04:14   #3 (permalink)
Portal Member
 
Join Date: Jan 2008
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts

Country:


Default

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.
Pornluvr is offline   Reply With Quote
Old 2008-07-28, 04:23   #4 (permalink)
bwg
Portal Member
 
Join Date: Dec 2007
Posts: 28
Thanks: 0
Thanked 3 Times in 3 Posts

Country:


Default

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.
bwg is offline   Reply With Quote
Old 2008-07-28, 04:45   #5 (permalink)
Portal Member
 
z3us's Avatar
 
Join Date: Dec 2007
Posts: 288
Thanks: 53
Thanked 8 Times in 8 Posts

Country:


Default

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.
z3us is offline   Reply With Quote
Old 2008-07-28, 06:42   #6 (permalink)
Portal User
 
Join Date: Jul 2008
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts

Country:


Default

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.
LaMaOne is offline   Reply With Quote
Reply

Bookmarks

Tags
amc, movie, source, update

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
About: MyFilms - Use an ANT Movie Database (AMC) in MP zebons My Films 22 2008-08-25 11:04
Movie database update cannot find several movies on IMDB Al_Capone 0.2.3.0 RC2 and SVN Builds 11 2007-10-10 17:27
(original thread) MyFilms v3.1 - Use an ANT Movie Database (AMC) in MP zebons My Films 201 2007-02-12 09:27
update movie database Niclas75 The old Bugreport Forum 4 2006-06-07 08:47
UI Improvement: Movie DB update in Configuration samuel337 The old Bugreport Forum 0 2006-03-04 07:46


All times are GMT +1. The time now is 09:35.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 Protected by Akismet Blog with WordPress
Advertisement System V2.6 By   Branden