Page 1 of 1

AMC and Networked Media Tank (NMT) + Llink Media Player

Posted: 2008-09-21 14:19:58
by bad4u
For users of NMT devices* or other interested users : There seems to be a possibility to export the AMC database to use it for a media player/jukebox program on these devices through a phyton script. I do not have such a device and can't help on any questions, but I thought it might be of interest to others..


More info on the phyton script: http://www.networkedmediatank.com/showt ... p?tid=8158

More info on Llink Media Player: http://www.lundman.net/wiki/index.php/Llink

More info on Networked Media Tank devices: http://networkedmediatank.com/wiki/index.php/Main_Page

As of September 17, 2008, there are six companies providing NMT players based on the Syabas design.

1. Popcorn Hour A-100, A-110, and B-110 www.popcornhour.com
2. HDX 900 and 1000 www.hdx1080.com
3. IstarHD Mini NMT www.istarhd.com
4. Egreat EG-M31A/B www.egreathd.com
5. CMI Group HDP001 www.cmicable.com
6. Elektron EHP-600 and 606 www.elektron-china.com
(quoted from NMTWiki)

Posted: 2009-07-15 15:06:55
by Wotan
There are people using amc with wdtv as well. I assume in order for your movie list to work, you would need to have the location of the file in the url field? Would it be possible to have the location of a file to go in the source field?

Posted: 2009-07-16 05:49:29
by bad4u
Wotan wrote:I assume in order for your movie list to work, you would need to have the location of the file in the url field? Would it be possible to have the location of a file to go in the source field?
You mean moving the contents of URL field to another field (e.g. source field) ? This could be done with a simple script, but on source field you cannot open links (or linked files) from within AMC then.

Posted: 2009-07-19 02:11:34
by Wotan
Yes i meant move the contents of url to source field. How do you open a file within AMC? :??: I didnt know you could do that! Or do you mean it wouldnt work to use the exported amc db?

Posted: 2009-07-19 09:10:47
by bad4u
Moving content of URL field to source field can be done with a simple script:

Code: Select all

program URL2source;
begin
  SetField(fieldSource, GetField(fieldURL));  
  SetField(fieldURL, '');
end.
First line copies content to field source, second line deletes field URL then. It might be neccessary to enable "Allow to clear fields" on the script execution options (see scripting window, upper right corner I guess). I recommend making a backup of your catalog files before you run any script that modifies the catalog.

To open a movie file from within AMC, you need a local file linked on field URL. On the right side of this field there is a dropdown list, choose "Open URL", it will open the linked default application (e.g. movieplayer) and load the file (same as it does on windows explorer).

Posted: 2009-07-19 19:05:21
by Wotan
thanks a lot :grinking:

Posted: 2009-07-19 19:20:16
by bad4u
Hmm.. it might be safer to put these two lines into separate scripts. Else, if you accidentaly run the script twice, it will delete both fields (on the second run it copies the empty URL field) :/

Or at least check for an empty URL line before copying:

Code: Select all

program URL2source;
begin
  if GetField(fieldURL) <> '' then
    SetField(fieldSource, GetField(fieldURL)); 
  SetField(fieldURL, '');
end.