[19. April 2013] A-400 Advanced Network Setup now available | [11 Jan. 2013] Customize your A-400 Home Screen

Firmware: A-400 [13 May 2013] | C-300 [30 Nov. 2012] | A-300 [30 Nov. 2012] | C-200 [21 Jan. 2013] | A-200/A-210 [10 Aug. 2012]

Just got your NMT | WIKI has the answers | Search the forum | Forum Rules/Policy | Firmware & Official NMT News | Popcornhour manuals



User(s) browsing this thread: 1 Guest(s)
Post Reply 
[MLMJ] Script to convert from MLMJ to YAMJ
02-04-2012, 11:19 AM (This post was last modified: 03-02-2012 04:02 PM by Swannpin.)
Post: #1
[MLMJ] Script to convert from MLMJ to YAMJ
Hi everybody!

Ive cooked up a little script to migrate from MLMJ to YAMJ (but still keeping Movie Collector). Settings and documentation are inside of the .vbs script, use notepad (or other better texteditor) without wordwrap). Currently its only tested with Movie Collector 6.6 Build 2 & YAMJ 2.5.1 r2754 and the Aeon AIO package. It's available for download here: http://www.lund.bonet.se/tpod/xml-to-nfo-r1.2.zip

Tech-info. I do a xml-export and then I run a script to split up the exported file and create custom nfo-files located in the each movie-directory. These then will be read by YAMJ (and by turning off scraping it goes fairly quick).

Updated to version 1.2, certifications now works (needs to follow mpaa). Option added to export based on sort title or on just regular title. As an extra feature one can now export to two different jukebox depending on certification (so one can have one collection which has the full collection and one that only includes the family-friendly movies).
Find all posts by this user
Add Thank You Quote this message in a reply
[+] 1 user says Thank You to Swannpin for this post
02-05-2012, 05:26 PM
Post: #2
RE: Script to convert from MLMJ to YAMJ
I wouldn't mind having a look at it. Are you planning to retain Movie Collector as your movie database? Would this mean re-running the conversion script each time, or is this a one-time thing and then maintain using YAMJ for future additions?
Find all posts by this user
Add Thank You Quote this message in a reply
02-06-2012, 01:02 PM
Post: #3
RE: Script to convert from MLMJ to YAMJ
Hello,

I'm using MLMJ for more then 1.5 years now on my C200 and recently I bought an A300 (with no html possibilties). So I'm certainly interested in your tool because it would mean that I can keep Movie Collectorz as my main info source (I have a lot of private holiday videos) and make a jukebox for both my A300 and C200.
Find all posts by this user
Add Thank You Quote this message in a reply
02-06-2012, 01:25 PM
Post: #4
RE: Script to convert from MLMJ to YAMJ
The whole idea is to keep Movie Collectorz as the main database and then just do an xml-export and after that run one single script (which first splits up the xml and then updates yamj). The reason for keeping Movie Collectorz is partially because I have a lots of Asian movies that aren't available in any database on internet and yes own holiday videos too.

I still have a bit of work to do, and the code-comments are currently in Swedish. I'll do some translating of that and then make this (the early beta-version) available later this week.
Find all posts by this user
Add Thank You Quote this message in a reply
02-06-2012, 02:53 PM (This post was last modified: 02-10-2012 11:41 AM by Swannpin.)
Post: #5
RE: Script to convert from MLMJ to YAMJ
Ok, got a little bit of time to translate the beta-version.

One important note though; it does a copy of cover art (path taken from Movie Collector) to the movie-folder and names it the same as the first movie-file. So if you have files with the same name as the moviefile.jpg then those will be overwritten in the current version. There shouldn't be any problem as long as you are only using the cover-path in Movie Collector.

As you can see it's a fairly rough script, but it does do the job right now (with some limitations to tv-series which I haven't quite worked out completly yet). I will try to add information about recommended settings for YAMJ a bit later on this week.

(My guess is that when you run the script you might run into that the script stops and reports errors (works flawlessly on my collection, but there was some tweaking before it did that...), do please give me feedback on that so that I can improve the script). Oh, yes I forgot to mention, if you set the demo flag to 1 then you should be able to test run it more easily, all file writes/copies are disabled, it only goes through the movie-dB.xml file.
Find all posts by this user
Add Thank You Quote this message in a reply
02-07-2012, 09:45 PM
Post: #6
RE: [MLMJ] Script to convert from MLMJ to YAMJ
For information, Ive located two bugs in the nfo-creation, almost a bit strange that yamj accepts it as the nfo's look like now. The bugs are related to originaltitle and releaseyear. I will try to fix them tomorrow and then make the update of the script available. (tv-series still not fixed, a bit more work to do there).
Find all posts by this user
Add Thank You Quote this message in a reply
02-09-2012, 09:11 PM
Post: #7
RE: [MLMJ] Script to convert from MLMJ to YAMJ
Hello Swannpin,

I've tried your program first on 1 movie but can't find the nfo-file. I've added a pause to the bat-file to see what happens and I can see that the bat-file is converting the xml file, but nowhere I can see where the nfo-file is written, nor in the movie folder, I can find the nfo file. What i'm doing wrong?
Find all posts by this user
Add Thank You Quote this message in a reply
02-10-2012, 10:43 AM (This post was last modified: 02-10-2012 11:15 AM by Swannpin.)
Post: #8
RE: [MLMJ] Script to convert from MLMJ to YAMJ
bohorne,

The script should be located (both files, the .bat and the .vbs) in the same directory as where you have the movie-db.xml .
The settings might need to be changed in the .vbs file (open it and look for the section where it says "constant=" ). If the setting demo=1 then no nfo-file will be created (mostly suitable to be used together dispdebug=1)
The created .nfo files will be placed in the same directory as where the movie-collector video-file is located (its taking the path from the links-movies in Movie-collector).

If you give me/ show your movie-db.xml I can have a look on it if there is some difference. One thing that might be a issue is different versions of movie-collector and for that I have to adjust/fix the script but cant do it without the movie-db.xml file for each version.
Find all posts by this user
Add Thank You Quote this message in a reply
02-10-2012, 11:52 AM
Post: #9
RE: [MLMJ] Script to convert from MLMJ to YAMJ
I have updated the script, fixed some bugs and also added a feature to speed up Yamj. The first post in this thread is updated with the link to where to download the latest script.

TV-series should now work too, but for that to work the media-files must have correct naming according to YAMJ-rules, apperantly YAMJ prioritize the filename ahead of the .nfo file in regards to season and episode settings (so the filename must begin with fixed part (name of tv-serie) then SxxExx).

I do suspect that different versions of Movie Collector will output differently to the movie-db.xml, and I can only adjust/fix the script for other versions by recieving the movie-db.xml file that is generated.
Find all posts by this user
Add Thank You Quote this message in a reply
02-16-2012, 04:51 PM
Post: #10
RE: [MLMJ] Script to convert from MLMJ to YAMJ
Script is updated, first post in this thread is updated with a new link. Now ratings should work (only MPAA) also added a feature to export based on the Movie Collector sort-title name instead of title.
Find all posts by this user
Add Thank You Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  [MLMJ] DVD Empire Script broken gsbaker 3 389 05-02-2013 12:28 AM
Last Post: gsbaker
  MLMJ and Movie Collector 9 johnfromen6 5 923 02-22-2013 08:13 AM
Last Post: midwaybluejay
  [MLMJ] - Upgrading to Movie Collector 8??? gsbaker 4 2,768 11-21-2011 11:35 AM
Last Post: bigkid
  MLMJ and genre filters in MoC Penge58 1 1,429 08-28-2011 02:50 PM
Last Post: gsbaker
  MLMJ Irfanview not closing when done Penge58 0 1,082 08-25-2011 10:44 AM
Last Post: Penge58
  MLMJ - Stops at Initializing Variables bigkid 16 3,915 07-22-2011 03:45 AM
Last Post: bigkid
  [MLMJ] Is this project still active? charlesc 23 5,500 06-28-2011 11:39 PM
Last Post: michael1t
  Scraper script for theTVDB.com? gsbaker 3 2,034 06-27-2011 03:37 AM
Last Post: accident
  MLMJ stuck with MoC version 7.1.6 Penge58 5 1,915 06-23-2011 05:47 PM
Last Post: gsbaker
  MLMJ export issues - adding nmt: to location zhakrin 1 1,530 06-21-2011 02:56 PM
Last Post: gsbaker

Forum Jump: