Automatically updating AMC database when new files are added... (2 Viewers)

z3us

Portal Pro
December 4, 2007
1,047
123
46
Home Country
Spain Spain
Great!, I will wait for it aaaaaaahhhh
Enhancement - added the option to launch a file or program after scanning, so you can run Ant automatically if you like. Also includes the option to only run the file if orphaned files were found when scanning.
My suggestion is to launch ANT if new files are added to the catalog.
If new files are found you can use a sound.
 

mmoore99

Portal Member
December 9, 2006
12
0
Unable to compile/build application

I have downloaded the source for v0.5 and am having problems when I attempt to build the application. Whenever a build is attempted the following error messages appear:

Code:
Error	1	'Settings' is not a member of 'My'.	C:\Users\Mike\Documents\Visual Studio 2005\Projects\ANT Movie Updater v0.5\ApplicationEvents.vb	64	33	AMCUpdater
Error	2	'Settings' is not a member of 'My'.	C:\Users\Mike\Documents\Visual Studio 2005\Projects\ANT Movie Updater v0.5\ApplicationEvents.vb	66	32	AMCUpdater
Error	3	'Settings' is not a member of 'My'.	C:\Users\Mike\Documents\Visual Studio 2005\Projects\ANT Movie Updater v0.5\ApplicationEvents.vb	68	34	AMCUpdater
Error	4	'Settings' is not a member of 'My'.	C:\Users\Mike\Documents\Visual Studio 2005\Projects\ANT Movie Updater v0.5\ApplicationEvents.vb	70	33	AMCUpdater
Error	5	'Settings' is not a member of 'My'.	C:\Users\Mike\Documents\Visual Studio 2005\Projects\ANT Movie Updater v0.5\ApplicationEvents.vb	72	36	AMCUpdater
Error	6	'Settings' is not a member of 'My'.	C:\Users\Mike\Documents\Visual Studio 2005\Projects\ANT Movie Updater v0.5\ApplicationEvents.vb	74	30	AMCUpdater
Error	7	'Settings' is not a member of 'My'.	C:\Users\Mike\Documents\Visual Studio 2005\Projects\ANT Movie Updater v0.5\ApplicationEvents.vb	76	33	AMCUpdater
Error	8	'Settings' is not a member of 'My'.	C:\Users\Mike\Documents\Visual Studio 2005\Projects\ANT Movie Updater v0.5\ApplicationEvents.vb	78	35	AMCUpdater
Error	9	'Settings' is not a member of 'My'.	C:\Users\Mike\Documents\Visual Studio 2005\Projects\ANT Movie Updater v0.5\ApplicationEvents.vb	83	39	AMCUpdater
Error	10	'Settings' is not a member of 'My'.	C:\Users\Mike\Documents\Visual Studio 2005\Projects\ANT Movie Updater v0.5\Form1.vb	75	27	AMCUpdater
Error	11	'Settings' is not a member of 'My'.	C:\Users\Mike\Documents\Visual Studio 2005\Projects\ANT Movie Updater v0.5\Form1.vb	97	53	AMCUpdater
Error	12	'Settings' is not a member of 'My'.	C:\Users\Mike\Documents\Visual Studio 2005\Projects\ANT Movie Updater v0.5\Form1.vb	138	27	AMCUpdater
Error	13	'Settings' is not a member of 'My'.	C:\Users\Mike\Documents\Visual Studio 2005\Projects\ANT Movie Updater v0.5\Form1.vb	167	16	AMCUpdater
Error	14	'Settings' is not a member of 'My'.	C:\Users\Mike\Documents\Visual Studio 2005\Projects\ANT Movie Updater v0.5\Form1.vb	170	31	AMCUpdater
Error	15	'Settings' is not a member of 'My'.	C:\Users\Mike\Documents\Visual Studio 2005\Projects\ANT Movie Updater v0.5\Form1.vb	186	53	AMCUpdater
Error	16	'Settings' is not a member of 'My'.	C:\Users\Mike\Documents\Visual Studio 2005\Projects\ANT Movie Updater v0.5\Form1.vb	220	31	AMCUpdater
Error	17	'Settings' is not a member of 'My'.	C:\Users\Mike\Documents\Visual Studio 2005\Projects\ANT Movie Updater v0.5\Form1.vb	221	34	AMCUpdater
Error	18	'Settings' is not a member of 'My'.	C:\Users\Mike\Documents\Visual Studio 2005\Projects\ANT Movie Updater v0.5\Form1.vb	222	29	AMCUpdater
Error	19	'Settings' is not a member of 'My'.	C:\Users\Mike\Documents\Visual Studio 2005\Projects\ANT Movie Updater v0.5\Form1.vb	223	30	AMCUpdater
Error	20	'Settings' is not a member of 'My'.	C:\Users\Mike\Documents\Visual Studio 2005\Projects\ANT Movie Updater v0.5\Form1.vb	224	32	AMCUpdater
Error	21	'Settings' is not a member of 'My'.	C:\Users\Mike\Documents\Visual Studio 2005\Projects\ANT Movie Updater v0.5\Form1.vb	226	35	AMCUpdater
Error	22	'Settings' is not a member of 'My'.	C:\Users\Mike\Documents\Visual Studio 2005\Projects\ANT Movie Updater v0.5\Form1.vb	227	37	AMCUpdater
Error	23	'Settings' is not a member of 'My'.	C:\Users\Mike\Documents\Visual Studio 2005\Projects\ANT Movie Updater v0.5\Module1.vb	168	36	AMCUpdater
Error	24	'Settings' is not a member of 'My'.	C:\Users\Mike\Documents\Visual Studio 2005\Projects\ANT Movie Updater v0.5\Module1.vb	395	48	AMCUpdater
Error	25	'Settings' is not a member of 'My'.	C:\Users\Mike\Documents\Visual Studio 2005\Projects\ANT Movie Updater v0.5\Module1.vb	396	51	AMCUpdater
Error	26	'Settings' is not a member of 'My'.	C:\Users\Mike\Documents\Visual Studio 2005\Projects\ANT Movie Updater v0.5\Module1.vb	578	36	AMCUpdater
Error	27	'Settings' is not a member of 'My'.	C:\Users\Mike\Documents\Visual Studio 2005\Projects\ANT Movie Updater v0.5\Module1.vb	984	34	AMCUpdater
Error	28	Unable to open module file 'C:\Users\Mike\Documents\Visual Studio 2005\Projects\ANT Movie Updater v0.5\My Project\Application.Designer.vb': The system cannot find the file specified. 	C:\Users\Mike\Documents\Visual Studio 2005\Projects\ANT Movie Updater v0.5\My Project\Application.Designer.vb	1	1	AMCUpdater
Error	29	Unable to open module file 'C:\Users\Mike\Documents\Visual Studio 2005\Projects\ANT Movie Updater v0.5\My Project\AssemblyInfo.vb': The system cannot find the file specified. 	C:\Users\Mike\Documents\Visual Studio 2005\Projects\ANT Movie Updater v0.5\My Project\AssemblyInfo.vb	1	1	AMCUpdater
Error	30	Unable to open module file 'C:\Users\Mike\Documents\Visual Studio 2005\Projects\ANT Movie Updater v0.5\My Project\Resources.Designer.vb': The system cannot find the file specified. 	C:\Users\Mike\Documents\Visual Studio 2005\Projects\ANT Movie Updater v0.5\My Project\Resources.Designer.vb	1	1	AMCUpdater
Error	31	Unable to open module file 'C:\Users\Mike\Documents\Visual Studio 2005\Projects\ANT Movie Updater v0.5\My Project\Settings.Designer.vb': The system cannot find the file specified. 	C:\Users\Mike\Documents\Visual Studio 2005\Projects\ANT Movie Updater v0.5\My Project\Settings.Designer.vb	1	1	AMCUpdater
Error	32	'Settings' is not a member of 'My'.	C:\Users\Mike\Documents\Visual Studio 2005\Projects\ANT Movie Updater v0.5\frmOptions.vb	4	39	AMCUpdater
Error	33	'Settings' is not a member of 'My'.	C:\Users\Mike\Documents\Visual Studio 2005\Projects\ANT Movie Updater v0.5\frmOptions.vb	5	34	AMCUpdater
Error	34	'Settings' is not a member of 'My'.	C:\Users\Mike\Documents\Visual Studio 2005\Projects\ANT Movie Updater v0.5\frmOptions.vb	6	37	AMCUpdater
Error	35	'Settings' is not a member of 'My'.	C:\Users\Mike\Documents\Visual Studio 2005\Projects\ANT Movie Updater v0.5\frmOptions.vb	7	36	AMCUpdater
Error	36	'Settings' is not a member of 'My'.	C:\Users\Mike\Documents\Visual Studio 2005\Projects\ANT Movie Updater v0.5\frmOptions.vb	8	39	AMCUpdater
Error	37	'Settings' is not a member of 'My'.	C:\Users\Mike\Documents\Visual Studio 2005\Projects\ANT Movie Updater v0.5\frmOptions.vb	10	42	AMCUpdater
Error	38	'Settings' is not a member of 'My'.	C:\Users\Mike\Documents\Visual Studio 2005\Projects\ANT Movie Updater v0.5\frmOptions.vb	11	39	AMCUpdater
Error	39	'Settings' is not a member of 'My'.	C:\Users\Mike\Documents\Visual Studio 2005\Projects\ANT Movie Updater v0.5\frmOptions.vb	14	36	AMCUpdater
Error	40	'Settings' is not a member of 'My'.	C:\Users\Mike\Documents\Visual Studio 2005\Projects\ANT Movie Updater v0.5\frmOptions.vb	15	44	AMCUpdater
Error	41	'Settings' is not a member of 'My'.	C:\Users\Mike\Documents\Visual Studio 2005\Projects\ANT Movie Updater v0.5\frmOptions.vb	17	38	AMCUpdater
Error	42	'Settings' is not a member of 'My'.	C:\Users\Mike\Documents\Visual Studio 2005\Projects\ANT Movie Updater v0.5\frmOptions.vb	19	40	AMCUpdater
Error	43	'Settings' is not a member of 'My'.	C:\Users\Mike\Documents\Visual Studio 2005\Projects\ANT Movie Updater v0.5\frmOptions.vb	21	38	AMCUpdater
Error	44	'Settings' is not a member of 'My'.	C:\Users\Mike\Documents\Visual Studio 2005\Projects\ANT Movie Updater v0.5\frmOptions.vb	55	9	AMCUpdater
Error	45	'Settings' is not a member of 'My'.	C:\Users\Mike\Documents\Visual Studio 2005\Projects\ANT Movie Updater v0.5\frmOptions.vb	56	9	AMCUpdater
Error	46	'Settings' is not a member of 'My'.	C:\Users\Mike\Documents\Visual Studio 2005\Projects\ANT Movie Updater v0.5\frmOptions.vb	57	9	AMCUpdater
Error	47	'Settings' is not a member of 'My'.	C:\Users\Mike\Documents\Visual Studio 2005\Projects\ANT Movie Updater v0.5\frmOptions.vb	58	9	AMCUpdater
Error	48	'Settings' is not a member of 'My'.	C:\Users\Mike\Documents\Visual Studio 2005\Projects\ANT Movie Updater v0.5\frmOptions.vb	59	9	AMCUpdater
Error	49	'Settings' is not a member of 'My'.	C:\Users\Mike\Documents\Visual Studio 2005\Projects\ANT Movie Updater v0.5\frmOptions.vb	61	9	AMCUpdater
Error	50	'Settings' is not a member of 'My'.	C:\Users\Mike\Documents\Visual Studio 2005\Projects\ANT Movie Updater v0.5\frmOptions.vb	62	9	AMCUpdater
Error	51	'Settings' is not a member of 'My'.	C:\Users\Mike\Documents\Visual Studio 2005\Projects\ANT Movie Updater v0.5\frmOptions.vb	65	9	AMCUpdater
Error	52	'Settings' is not a member of 'My'.	C:\Users\Mike\Documents\Visual Studio 2005\Projects\ANT Movie Updater v0.5\frmOptions.vb	66	9	AMCUpdater
Error	53	'Settings' is not a member of 'My'.	C:\Users\Mike\Documents\Visual Studio 2005\Projects\ANT Movie Updater v0.5\frmOptions.vb	68	9	AMCUpdater
Error	54	'Settings' is not a member of 'My'.	C:\Users\Mike\Documents\Visual Studio 2005\Projects\ANT Movie Updater v0.5\frmOptions.vb	70	9	AMCUpdater
Error	55	'Settings' is not a member of 'My'.	C:\Users\Mike\Documents\Visual Studio 2005\Projects\ANT Movie Updater v0.5\frmOptions.vb	73	13	AMCUpdater
Error	56	'Settings' is not a member of 'My'.	C:\Users\Mike\Documents\Visual Studio 2005\Projects\ANT Movie Updater v0.5\frmOptions.vb	75	13	AMCUpdater
Error	57	'Settings' is not a member of 'My'.	C:\Users\Mike\Documents\Visual Studio 2005\Projects\ANT Movie Updater v0.5\frmOptions.vb	78	9	AMCUpdater
Error	58	'Settings' is not a member of 'My'.	C:\Users\Mike\Documents\Visual Studio 2005\Projects\ANT Movie Updater v0.5\frmOptions.vb	168	13	AMCUpdater
Error	59	'Settings' is not a member of 'My'.	C:\Users\Mike\Documents\Visual Studio 2005\Projects\ANT Movie Updater v0.5\frmOptions.vb	170	13	AMCUpdater

I am attempting the build with VB Express 2005. I have also attempted the build with Visual Studio 2008, but when the system attempts to convert the project to VS 2008 it gives also gives error messages saying there are missing files. I re-downloaded the source to insure that I have all the files, but the problem still remains.

Any ideas?
 

OrionHall

Portal Pro
September 13, 2007
198
31
London
Home Country
United Kingdom United Kingdom
I have downloaded the source for v0.5 and am having problems when I attempt to build the application. Whenever a build is attempted the following error messages appear:

I am attempting the build with VB Express 2005. I have also attempted the build with Visual Studio 2008, but when the system attempts to convert the project to VS 2008 it gives also gives error messages saying there are missing files. I re-downloaded the source to insure that I have all the files, but the problem still remains.

Any ideas?

Hi,

Not something I've ever heard of, but I had a play and found the same problem as you. Apparently you need to have the 'My Project' subfolder for it to work properly. I didn't know that! :sorry:

Attached are the Visual Studio designer, resource and settings files. This should sort you out, though I tested this with VB.net Express Edition and haven't tried VS2008 yet. This is from the latest dev version, but apart from a few new settings which won't be used by your copy of the code it should be fine. Extract these files to the 'My Project' subfolder in the Visual Studio project file where the AMCUpdater code is.

Some things to note...

You'll also need to copy the mediainfo.dll into your Debug and Release folders in order to debug the app.

Also check the Application tab of the Project Properties screen. Make sure the startup form is set to Form1 and tick the 'enable application framework' box. You should also see all the user-customisable settings listed on the Settings tab.

Hope that helps! Please do post to the group if you have any interesting changes in mind which would be of use to others.

Cheers,

OrionHall

p.s. If you want to tinker with the code it might be a good idea to wait until I post the new version - probably this afternoon if I have time!
 

OrionHall

Portal Pro
September 13, 2007
198
31
London
Home Country
United Kingdom United Kingdom
AMCUpdater v0.6 now available!

Hi All,

Following a few reported bugs and feature requests, version 0.6 is now available for download.

As mentioned in an earlier post, here's the main changes:

Bug - incorrect use of an Int instead of a Long data type caused a crash scanning very large files. Fixed. Actually, I never managed to replicate the crash - only the fact that it didn't import the invalid (too large) values. So hopefully this is really fixed! I've tested with a 6GB .ts file (HD1080) and no problems so far.
Bug - minor tab index glitches. Fixed.
Bug - 'Apply defaults to main window' option did not copy the override path value. Fixed.
Bug - minor window glitches - the forms should not have been sizable etc.
Enhancement - added the option to launch a file or program after scanning, so you can run Ant automatically if you like. Also includes the option to only run the file if orphaned files were found when scanning.
Enhancement - files added to the Ant catalog now include the 'Date Added' field.
Enhancement - the 'Purge Database Entries for Missing Files' option now works from the command line. Use with caution!

Source code and binaries for Win32 and x64 are now on SourceForge for download here.

As usual, please have a play and report any problems in this thread.

Possible New Feature Alert!!

I've been thinking about adding a new feature to enable re-scanning of files if needed. This would be the case where I have a poor quality film and replace it with a better one (particularly since buying a 5.1 speaker setup and finding how many of my films don't have AC3 surround sound!) Normally it's not a problem just replacing the file as it'll play just fine; but the Ant catalog will have incorrect data in it. I've tested the creation of a file checksum and have been storing it in the 'borrower' field in Ant for the time being. Due to the size of the files in question I can't checksum the whole thing so have just grabbed the first 1MB of data and used that for the calculation. Hardly accurate really, but should be good enough! In terms of speed it's not a problem - I tested using nearly 400 files, each 700-1400MB, and the time for a complete scan went up from 26 minutes to 28 minutes!

Does this sound like a feature worth including? Does anyone else see a need for updating the media information with a 'scan for changes' and/or a 'rescan all files' feature?

Answers on a postcard please!

Cheers,

OrionHall.
 

mcbelly

MP Donator
  • Premium Supporter
  • June 29, 2006
    190
    5
    Home Country
    Germany Germany
    Hi,
    I´m new to MyFilms and this plugin, and I can´t get it running. I always get an "initializaition error" (0xc0000135), whether or not ant is running. Tried it on different machines, with and without MP on it. I don´t have MyFilms installed yet, is that the problem ?
    This plugin would be the reason for me to use MyFilms, and, by the way, I would love ot see an updating-feature.

    cheers
    mcbelly
     

    OrionHall

    Portal Pro
    September 13, 2007
    198
    31
    London
    Home Country
    United Kingdom United Kingdom
    Hi,
    I´m new to MyFilms and this plugin, and I can´t get it running. I always get an "initializaition error" (0xc0000135), whether or not ant is running. Tried it on different machines, with and without MP on it. I don´t have MyFilms installed yet, is that the problem ?
    This plugin would be the reason for me to use MyFilms, and, by the way, I would love ot see an updating-feature.

    cheers
    mcbelly

    Hi mcbelly,

    Can you give me a bit more information on your setup please? Do you get that error when running my app, and if so at what point?

    In answer to your question - my application doesn't actually involve the MyFilms plugin (or Media Portal) at all - it just updates the Ant Movie Catalog for you, based on the files in your movie collection folders. I assume you've got Ant set up, and maybe have some data in there already. Either way you need a valid Ant database file in .xml for my app to work. There's other threads in this forum which should help you set up the MyFilms plugin to use that xml file once you've got some data in it.

    Hope that's of some help - the MyFilms plugin really makes MediaPortal perfect in my opinion, so it's worth tinkering with!

    Cheers,

    OrionHall.
     

    mcbelly

    MP Donator
  • Premium Supporter
  • June 29, 2006
    190
    5
    Home Country
    Germany Germany
    [/QUOTE]

    Hi mcbelly,

    Can you give me a bit more information on your setup please? Do you get that error when running my app, and if so at what point?

    In answer to your question - my application doesn't actually involve the MyFilms plugin (or Media Portal) at all - it just updates the Ant Movie Catalog for you, based on the files in your movie collection folders. I assume you've got Ant set up, and maybe have some data in there already. Either way you need a valid Ant database file in .xml for my app to work. There's other threads in this forum which should help you set up the MyFilms plugin to use that xml file once you've got some data in it.
    [/QUOTE]
    Hi,

    I´ve got two different setups. One is my main MP HTPC. The other one is my notebook. On my notbeook I have ANT installed and created an xml db (with one movie in it). I downloaded 0.6 (and 0.5) of your plugin, unzipped it to a random folder and double clicked AMCUpdater.exe. A splitsecond later the error occurs. I´ve tried putting the dll in system32, nothing changed. I´v put all te files in the ant-folder - nothing changed. I haven´t tried all these tings on my main HTPC, but the behaviuor is basically the same....

    I guess it´s a problem of paths - butI don´t know where to put it......


    Thanks for your help

    mcbelly
     

    BeepBeep

    Portal Member
    September 24, 2007
    18
    0
    Is there a way to update the ant database every time you add movies in the folder automatic or is it supposed to be used with scheduling and or autostart?
     

    Tirade

    Portal Member
    January 22, 2008
    38
    1
    So glad I stumbled onto this thread. I downloaded the tool and it worked great!

    One thing I noticed that might be an easy fix/change/option...

    In my AMC database all of my paths to my DVD rips ended with \VIDEO_TS (i.e. \\MediaServer\e\Movies\300\VIDEO_TS)

    This works fine with MyFilms (as it considers the TS as an extension and knows to look for the video file in that directory). When I ran AMC Updater is ignore all of those paths and used its own (the same path only it added the VIDEO_TS.IFO at the end).

    This obviously created double entries so my DB grew from 300 movies to 600 and all of the new movies obviously contained very little data and would need to be updated.

    My problem is that Im slowly transcoding all of my DVD rips to h.264 MP4. I will then have to manually edit each entry in AMC to end with the moviename.mp4 file. Is it possible to allow a checkbox in AMC Updater so that it can just use the path without the file name? That would be a huge help not just for me but anyone who eventually decides to transcode their movies into a more manageable format.
     

    OrionHall

    Portal Pro
    September 13, 2007
    198
    31
    London
    Home Country
    United Kingdom United Kingdom
    I´ve got two different setups. One is my main MP HTPC. The other one is my notebook. On my notbeook I have ANT installed and created an xml db (with one movie in it). I downloaded 0.6 (and 0.5) of your plugin, unzipped it to a random folder and double clicked AMCUpdater.exe. A splitsecond later the error occurs. I´ve tried putting the dll in system32, nothing changed. I´v put all te files in the ant-folder - nothing changed. I haven´t tried all these tings on my main HTPC, but the behaviuor is basically the same....

    I guess it´s a problem of paths - butI don´t know where to put it......


    Thanks for your help

    mcbelly

    Hiya,

    Well that's a first - don't think anyone's been completely stopped from running the app at all in the past! In short, the path doesn't matter - so long as the exe, the config file and the mediainfo.dll are in the same folder then that'll be fine. I did some Googling and that error might be related to not having the .net framework installed, or not having the correct version. Please install the .Net framework v2 and try again; also please confirm that you're using the correct version (I've compiled separate version for Windows x86 and x64 editions)

    Is there a way to update the ant database every time you add movies in the folder automatic or is it supposed to be used with scheduling and or autostart?

    Nope - sorry - it's designed for occasional use via the GUI, or scheduled use via batch mode only.

    I've got my app running on startup on my media PC, and that works well enough for me. It occurred to me that it may also be possible to configure MediaPortal so you can launch my app directly from there, or possibly just assign a remote control button to the job. But I've never considered having this run 24x7 and monitor the folders for changes. For a start, my media PC has no local media files, so would have to constantly monitor the movie folders over the LAN. Plus it's normally off during the day so no updates are possible anyway!

    So glad I stumbled onto this thread. I downloaded the tool and it worked great!

    One thing I noticed that might be an easy fix/change/option...

    In my AMC database all of my paths to my DVD rips ended with \VIDEO_TS (i.e. \\MediaServer\e\Movies\300\VIDEO_TS)

    This works fine with MyFilms (as it considers the TS as an extension and knows to look for the video file in that directory). When I ran AMC Updater is ignore all of those paths and used its own (the same path only it added the VIDEO_TS.IFO at the end).

    This obviously created double entries so my DB grew from 300 movies to 600 and all of the new movies obviously contained very little data and would need to be updated.

    My problem is that Im slowly transcoding all of my DVD rips to h.264 MP4. I will then have to manually edit each entry in AMC to end with the moviename.mp4 file. Is it possible to allow a checkbox in AMC Updater so that it can just use the path without the file name? That would be a huge help not just for me but anyone who eventually decides to transcode their movies into a more manageable format.

    Hmm - interesting! It may or may not be an easy option to add - not sure off the top of my head. I'll have a tinker and will see if it's feasible. All my code is based upon filenames, and the uniqueness is based upon path + filename, with the path being tweakable using the Override Path option. So your paths should just work if I tell it not to add the Video_ts.ifo, but I'll give it a go.

    My only concern is that you say you'll switch all your files to .mp4 format, in which case you'll still need to go through your catalog and specify the .mp4 filename in each Ant entry won't you? I know MyFilms will find the DVD files in a folder but if the folder only contains one .mp4 file, will MyFilms pick that up and play it? I would guess not, though I haven't tried it.

    Cheers,

    OrionHall.
     

    Users who are viewing this thread

    Top Bottom