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

zupe

Portal Member
July 21, 2007
8
0
43
How can i make it work with .iso and .img files?
I have added .iso and .img in the conf file. But the program find the files with .img and .iso, but can't add them to ant xml file.
Nothing happens

example

2007-10-13 18:33:21
Parsing XML File
Parsing XML File - Complete - 0 entries found.
2007-10-13 18:33:21

2007-10-13 18:33:22
Processing Movie List
- File Found - mrbrooks-Crowd\mr brooks.img
Processing Movie List - Done - 1 files found.
2007-10-13 18:33:22

2007-10-13 18:33:23
Finding Orphaned Movies (not in XML file)
- Missing File : mrbrooks-Crowd\mr brooks.img
Processing Complete - Found 1 Orphaned Files.
2007-10-13 18:33:23

2007-10-13 18:33:24
Starting XML update process.
Starting file analysis and import - 1 orphaned files found.
 

OrionHall

Portal Pro
September 13, 2007
198
31
London
Home Country
United Kingdom United Kingdom
How can i make it work with .iso and .img files?
I have added .iso and .img in the conf file. But the program find the files with .img and .iso, but can't add them to ant xml file.
Nothing happens

Hmmm - interesting one! At the moment - not a chance. The app assumes that all files are multimedia formats, and every file matching the configured extensions will be scanned by MediaInfo.dll. Unfortunately, that dll hangs for ages if it can't cope with a file. I use it because it's the best thing I've found for analysing video files, and it's great to have that information included in AMC automatically! So far I've only had this problem with less then 1% of my files, most of which seem to have Ogg audio streams. I guess it would do this big time if you point it to a disk image file! If you left it for a few hours, it would probably get there in the end (!) but obviously that's not exactly useful.

I guess it would be pretty easy to add an extra list of file formats ('multimedia files' and 'other files') and have it not try to analyse the non-multimedia ones. Or I could go the whole hog and add an option to each filetype, so it would appear as a grid with 'scan - yes' or 'scan - no' tickboxes for each file extension. Possibly overkill though!

If the app could import your files into the AMC database, what information should be included? I don't have a way to easily examine the contents of an iso file so apart from the filename, filesize and 'source' fields, what do you think could be automatically added? Any ideas to improve this are appreciated, so let me know what you think.

Cheers,

OrionHall.
 

whatisk

Portal Pro
May 21, 2007
242
12
Brisbane
Home Country
Australia Australia
Hi again,

I've set up a test folder structure with lots of subfolders and files - typically when I ran the updater it worked fine for me. I then added a few more files and again, it just added them correctly. Possibly this is because I'm running the latest version which I've been tinkering with.

Can you please try the attached mini-release and see if it's any different? This is the current development copy but it should be functional. I've only included the .exe and .config so just dump these in the old AMCUpdater folder as it'll need the mediainfo.dll which is in there. This version outputs a bit more detail to the logs which would help - if it still has a problem please post your logfile (might be best to delete the old log first for clarity) and I'll have a look.

Cheers,

OH.

Hi OH,

Tries that new EXE you posted and it worked like a charm :) :D
Only thing I noticed was that it said that the file locations I altered manually from when they didn't import properly showed up again as orphan files. However, this seems to be due to the check being case sensitive.
Is it possible to make the check to see if files are already in the database not case sensitive? That way if people manually add in a file location for whatever reason, it won't be picked up again if the case of the file location doesn't match.

eg: If I had entered C:\Movies\animation\Shrek.avi, the program would pickup Shrek.avi as an orphan file as it sees the path as C:\Movies\Animation\Shrek.avi (As the first character of each folder is a capital).
Hope that makes sense.

Cheers.
 

zupe

Portal Member
July 21, 2007
8
0
43
I have all my movies as disk image. (dvd)
I don´t care about length and other info.
That fixes IMDB later.
If the program can add filname and file path to AMC, i will be more than pleased.
 

OrionHall

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

Tries that new EXE you posted and it worked like a charm :) :D
Only thing I noticed was that it said that the file locations I altered manually from when they didn't import properly showed up again as orphan files. However, this seems to be due to the check being case sensitive.
Is it possible to make the check to see if files are already in the database not case sensitive? That way if people manually add in a file location for whatever reason, it won't be picked up again if the case of the file location doesn't match.

eg: If I had entered C:\Movies\animation\Shrek.avi, the program would pickup Shrek.avi as an orphan file as it sees the path as C:\Movies\Animation\Shrek.avi (As the first character of each folder is a capital).
Hope that makes sense.

Cheers.

Wahey - glad it worked. I'll have a look into the case issue and let you know - all of my AMC entries were created by this utility so I've not seen it process manually-added entries. I'll have a play today.

Cheers,

OH.
 

whatisk

Portal Pro
May 21, 2007
242
12
Brisbane
Home Country
Australia Australia
OrionHall said:
Wahey - glad it worked. I'll have a look into the case issue and let you know - all of my AMC entries were created by this utility so I've not seen it process manually-added entries. I'll have a play today.

Cheers,

OH.

No worries. Unless the case for the filename and directories matches exactly, the program treats it as a new entry that doesn't exist in the DB.
 

OrionHall

Portal Pro
September 13, 2007
198
31
London
Home Country
United Kingdom United Kingdom
AMC Updater v0.3 now available!

Hi All,

Thank you to everyone who's given feedback so far - it's good to know this is of use to people!

And it gives me something to tinker with on a Sunday afternoon. So I've been tinkering and the new version is now available to download from SourceForge.

http://sourceforge.net/projects/amcupdater/

Release notes are also online at SF, but the basics are:
- Support for duplicate filenames (uniqueness is based on the whole path now)
- Support for non-multimedia filetypes, for users who store DVD images in the Ant Catalog.
- File comparison now actually works and isn't fussy about case sensitivity.
- Added option to remove entries from the Ant Catalog which refer to missing files. Use with caution!
- Better error handling and logging and internal stuff that should make it a bit faster.

Any problems with the new release, do of course let me know :)

Cheers,

OrionHall
 

zebons

Portal Pro
January 2, 2006
1,484
114
Hi,
I test the latest version but I got an error with mediainfo values :
for most of my films, the frame rate is 25000 but with the decimal french standard format it's written 25.000 (point as thousands separator). With that new version, that value is converted as Integer and there is an error.
No problems with version v0.1

Regards,
 

OrionHall

Portal Pro
September 13, 2007
198
31
London
Home Country
United Kingdom United Kingdom
Hi,
I test the latest version but I got an error with mediainfo values :
for most of my films, the frame rate is 25000 but with the decimal french standard format it's written 25.000 (point as thousands separator). With that new version, that value is converted as Integer and there is an error.
No problems with version v0.1

Regards,

Oops :)

That was actually sort of deliberate - I was trying to tidy it up! I didn't realise it would cause a problem - easy to undo though. I'll get an updated version out soon to fix that.

Thanks,

OrionHall.
 

zupe

Portal Member
July 21, 2007
8
0
43
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.
 

Users who are viewing this thread

Top Bottom