Batch Process Movie XMLs with Multi Genres. (for hundreds/thousands of movies)
Requirements:
* Movie XMLs Generated with Thumbgen 1.2.9.1
* “Textrep” free software
http://www.download25.com/install/free-text-blocks-replacer.html
Important: Spacing,Indentation and Case are Crucial
Before Proceeding, Backup your Movie XML’s in case you make a mistake !
Launch “TEXTREP”:
Path = “Your Movies” eg. C:\MOVIES
“Tick” include ‘Subfolders’ and ‘Case Sensitive’
File Mask = *.xml
Make sure you Movie XMLs are ‘Archived’ and not ‘Read Only’
STEP 1. Find What:
</mpaa>
<genre>
Replace With:
</mpaa>
RESULT:
7.8
R
<imdb_id>tt0416449</imdb_id>
R</mpaa>Action
Adventure
Fantasy
History
Gerard Butler
STEP2. Find What:
</genre>
<genre>
Replace With:
/ (*NOTE - There is a Space Before and After the Foward Slash)
7.8
R
<imdb_id>tt0416449</imdb_id>
R</mpaa>Action</genre>
<genre>Adventure</genre>
<genre>Fantasy</genre>
<genre>History
Gerard Butler
RESULT:
7.8
R
<imdb_id>tt0416449</imdb_id>
R</mpaa>Action / Adventure / Fantasy / History
Gerard Butler
STEP3. Find What:
</mpaa>
Replace With:
</mpaa><genre>
7.8
R
<imdb_id>tt0416449</imdb_id>
R</mpaa>Action / Adventure / Fantasy / History
Gerard Butler
RESULT:
trailer>
7.8
R<genre>
<imdb_id>tt0416449</imdb_id>
R</mpaa><genre>Action / Adventure / Fantasy / History
Gerard Butler
STEP4. Find What:
<genre>
<imdb_id>
Replace With:
<imdb_id>
trailer>
7.8
R<genre>
<imdb_id>tt0416449</imdb_id>
R</mpaa><genre>Action / Adventure / Fantasy / History
Gerard Butler
RESULT:
7.8
R<imdb_id>tt0416449</imdb_id>
RAction / Adventure / Fantasy / History
Gerard Butler
FINISHED
A 4 Step Batch Procedure for lots of Movies which takes a second or two, to process.