Automatically updating AMC database when new files are added... (1 Viewer)

OrionHall

Portal Pro
September 13, 2007
198
31
London
Home Country
United Kingdom United Kingdom
Nice work!
work like a sharm!
But i craches when path to xml file is over the network.

Can you fix so it removes info from AMC when the file don´t exists enymore.

Hi Zupe,

Yeah, I've just found the bug which stops it removing the AMC entries. :oops: I'll get that fixed shortly.

No idea why you're having trouble accessing an xml file on the network though - works fine for me. Is there anything in the log or a meaningful error message when it crashes?

Thanks,

OrionHall.
 

zupe

Portal Member
July 21, 2007
8
0
43
strange now i works. Whith network path.

I have also tested the remove funktion (din´t se it before sorry) and it works nice.

But i have a strange problem the program hangs some times when adding new files to amc. The solutions is to remove the log file an try again.

Thank you for a nice program, very useful!

Can you fix so it opens amc with the the used xml file after imorting files?
 

OrionHall

Portal Pro
September 13, 2007
198
31
London
Home Country
United Kingdom United Kingdom
strange now i works. Whith network path.

I have also tested the remove funktion (din´t se it before sorry) and it works nice.

But i have a strange problem the program hangs some times when adding new files to amc. The solutions is to remove the log file an try again.

Thank you for a nice program, very useful!

Can you fix so it opens amc with the the used xml file after imorting files?


Hi Zupe,

Glad it works for you. I found a bug in the code which removes database entries for missing files - it would only work if the missing files were originally in the location you're scanning. So if the files were in \\server\movies\ and were then removed, scanning that folder with the 'purge database entries' option would work. I found that if the missing file had a different path (maybe \\server\newmovies) then it wouldn't remove it. I've now fixed that so if you want to remove missing files, it should work happily.

The only known reason for the app to hang is if it encounters a file where it can't easily read the media information (framerate and so on). It could be that it's incorrectly trying to scan a file which isn't a movie, or the MediaInfo.dll I use may be having problems. Either way it -should- eventually finish. I'm currently working on allowing you to cancel this process if it's taking an age. To be honest I doubt the logfile is directly involved as the process which writes to it is very simple and it shouldn't cause any problems. Impossible to be sure, of course.

Re: opening Ant after modifying the database file - this would be more easily done with a script. You can create a batch file which runs my updater, and then runs Ant automatically. Also since Ant can be configured to always re-open the previously used file this should be quick and easy to do. The script would be along the lines of...

c:\AMCUpdater\AMCUpdater [command line options here]
c:\Program Files\Ant Movie Catalog\MovieCatalog.exe

If you save that as a .bat file it should do what you need.

Cheers,

OrionHall.

p.s. New version with a few bugfixes on its way soon!
 

OrionHall

Portal Pro
September 13, 2007
198
31
London
Home Country
United Kingdom United Kingdom
Hi All,

Just a quick update. I've been spending some time improving the app and it's finally getting there. One of the big annoyances for me was the app seeming to hang when scanning some slightly-problematic files. Same goes if it's simply scanning a lot of files. I wanted to be able to cancel the import if needed, and display a progress bar so you can see it's still working. Apparently this required multithreading, so I've re-written the import to run on a separate thread. Unfortunately that completely broke the command line option :mad:

Having read up on threading a bit more I can see why; I just haven't found an easy fix yet (short of duplicating all the import code without the threading, but that seems like terrible programming practice!)

On the bright side I've improved quite a few areas now and hope to get a new release out soon. For users who store DVD copies (i.e. the actual .vob files) the app can now handle these, and assumes the folder containing the DVD image is named after the film. Possibly not suitable for everyone but I'm open to suggestions here.

Anyway, suggesions welcome, and watch this space for the whizzy new version!

Cheers,

OrionHall.
 

OrionHall

Portal Pro
September 13, 2007
198
31
London
Home Country
United Kingdom United Kingdom
AMCUpdater v4.0 Now Available!

Hi All,

I've been tinkering and testing and it's time for the new release. Please have a go and let me know how it goes.

New version and source code can be found here ...

http://sourceforge.net/project/showfiles.php?group_id=205435

Release notes are included in the downloads, but in brief:
  • Multi-threading when processing files. Also the ability to stop the import. If you do then you can cancel completely or save the changes.
  • Support for copies of DVDs stored in folders. It now checks (optionally - on by default) for folders containing a VIDEO_TS.IFO file and does its best to work out the movie name from the folders.
  • Progress bar so you can see what it's doing when importing
  • Slight improvements to the GUI and Options dialogue box.

I hope this is of use to some of you, and let me know if you find any new bugs or can think of useful new features.

Cheers,

OrionHall.
 

OrionHall

Portal Pro
September 13, 2007
198
31
London
Home Country
United Kingdom United Kingdom
i tested this but it dossn´t work. It can only find some of my movies.

Hi Zupe,

Details please! What's it doing / not doing? Any further info would help - I've been testing this as best I can against a 'known' set of files in different folders / different types etc. and it's been holding up so far. If there's a problem I will of course do my best to get it sorted!

Cheers,

OrionHall.
 

psiebe

Portal Pro
March 29, 2007
93
1
54
Home Country
Netherlands Netherlands
any chance this tool could work both ways and clean up the database if you deleted files?
 

OrionHall

Portal Pro
September 13, 2007
198
31
London
Home Country
United Kingdom United Kingdom
any chance this tool could work both ways and clean up the database if you deleted files?

Hiya,

It already can do! Try the 'purge database entries' option. The only catch is that I've disabled that option from working in command-line mode. I think it's just too dangerous. If there's enough demand I could re-enable it, but having had problems with this concept before (i.e. network link down - no files found - wipe the whole database!) I thought it best not to have that too automated.

Cheers,

OrionHall.
 

Users who are viewing this thread

Top Bottom