Reply
Community VIP
JoeySmyth
Posts: 3,277
Registered: ‎01-05-2011

Metadata Multiple Genres Batch Process

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>

 

<?xml version="1.0" encoding="utf-8"?>
<details>
  <title>300</title>
  <originaltitle>300</originaltitle>
  <overview>Based on Frank Miller's graphic novel, "300" concerns the 480 B.C. Battle of Thermopylae, where the King of Sparta led his army against the advancing Persians; the battle is said to have inspired all of Greece to band together against the Persians, and helped usher in the world's first democracy.</overview>
  <year>09.12.2006</year>
  <plot>Based on Frank Miller's graphic novel, "300" concerns the 480 B.C. Battle of Thermopylae, where the King of Sparta led his army against the advancing Persians; the battle is said to have inspired all of Greece to band together against the Persians, and helped usher in the world's first democracy.</plot>
  <runtime>117</runtime>
  <trailer></trailer>
  <rating>7.8</rating>
  <mpaa>R</mpaa>
  <imdb_id>tt0416449</imdb_id>
  <mpaa>R</mpaa>
  <genre>Action</genre>
  <genre>Adventure</genre>
  <genre>Fantasy</genre>
  <genre>History</genre>
  <actor>
    <name>Gerard Butler</name>
  </actor>
  <actor>
    <name>Lena Headey</name>
  </actor>
  <actor>
    <name>David Wenham</name>
  </actor>
  <director>Zack Snyder</director>
  <studio>Warner Bros. Pictures / Legendary Pictures / Virtual Studios / Hollywood Gang Productions / Atmosphere Entertainment MM</studio>
  <url cache="tmdb-.xml" function="GetTMDBThumbsById" />
  <prevtitle>300.mkv</prevtitle>
  <prevgenre>N/A</prevgenre>
</details>

 

RESULT:

<trailer></trailer>
  <rating>7.8</rating>
  <mpaa>R</mpaa>
  <imdb_id>tt0416449</imdb_id>
  <mpaa>R</mpaa>Action</genre>
  <genre>Adventure</genre>
  <genre>Fantasy</genre>
  <genre>History</genre>
  <actor>
    <name>Gerard Butler</name>
  </actor>


STEP2. Find What:
</genre>
  <genre>

 

Replace With:
 /                                                  (*NOTE - There is a Space Before and After the Foward Slash)

 

<trailer></trailer>
  <rating>7.8</rating>
  <mpaa>R</mpaa>
  <imdb_id>tt0416449</imdb_id>
  <mpaa>R</mpaa>Action</genre>
  <genre>Adventure</genre>
  <genre>Fantasy</genre>
  <genre>History</genre>
  <actor>
    <name>Gerard Butler</name>
  </actor>


RESULT:

<trailer></trailer>
  <rating>7.8</rating>
  <mpaa>R</mpaa>
  <imdb_id>tt0416449</imdb_id>
  <mpaa>R</mpaa>Action / Adventure / Fantasy / History</genre>
  <actor>
    <name>Gerard Butler</name>
  </actor>


STEP3. Find What:
</mpaa>

Replace With:
</mpaa><genre>

 

<trailer></trailer>
  <rating>7.8</rating>
  <mpaa>R</mpaa>
  <imdb_id>tt0416449</imdb_id>
  <mpaa>R</mpaa>Action / Adventure / Fantasy / History</genre>
  <actor>
    <name>Gerard Butler</name>
  </actor>

 

RESULT:

trailer></trailer>
  <rating>7.8</rating>
  <mpaa>R</mpaa><genre>
  <imdb_id>tt0416449</imdb_id>
  <mpaa>R</mpaa><genre>Action / Adventure / Fantasy / History</genre>
  <actor>
    <name>Gerard Butler</name>
  </actor>


STEP4. Find What:
<genre>
  <imdb_id>

Replace With:
<imdb_id>

 

trailer></trailer>
  <rating>7.8</rating>
  <mpaa>R</mpaa><genre>
  <imdb_id>tt0416449</imdb_id>
  <mpaa>R</mpaa><genre>Action / Adventure / Fantasy / History</genre>
  <actor>
    <name>Gerard Butler</name>
  </actor>

 

RESULT:

<trailer></trailer>
  <rating>7.8</rating>
  <mpaa>R</mpaa><imdb_id>tt0416449</imdb_id>
  <mpaa>R</mpaa><genre>Action / Adventure / Fantasy / History</genre>
  <actor>
    <name>Gerard Butler</name>
  </actor>

 

 

FINISHED

 

A 4 Step Batch Procedure for lots of Movies which takes a second or two, to process.

Click the Kudos star to say thank you for helpful posts. And be sure to come back to click the 'Accept as Solution' button for the post that solved your issue. This may help someone else.

Regular Advisor
GulfcoastGuy
Posts: 97
Registered: ‎12-25-2011
0

Re: Metadata Multiple Genres Batch Process

After doing this how does the "Filter / Genre" behave?

Community VIP
JoeySmyth
Posts: 3,277
Registered: ‎01-05-2011
0

Re: Metadata Multiple Genres Batch Process

Says "Unknown" ...

 

A Workaround... create Genre Folders for your Movies eg. Action , Horror , Comedy etc.

 

If you dont want do that, then disregard the Batch Process Method and leave your XML's with a Single Genre.

Click the Kudos star to say thank you for helpful posts. And be sure to come back to click the 'Accept as Solution' button for the post that solved your issue. This may help someone else.

Valued Contributor
architectonic
Posts: 412
Registered: ‎01-10-2011
0

Re: Metadata Multiple Genres Batch Process

[ Edited ]

Wish I'd known about this method about a month ago Joey...I manually editted around 800 xml files!! :smileyembarrassed:

 

Nevertheless this method will also be very useful for people who may want to use my WIP Theme.

Is there anyway to add Movie plot to the end of genre info, as this will need to be carried out to achieve plot info display using my Preview View?

 

Thanks

Esteemed Contributor
drizzt09
Posts: 716
Registered: ‎01-24-2011
0

Re: Metadata Multiple Genres Batch Process

What would be the purpose for doing this?

Would it be worthwhile requesting TG to implement this feature built in?

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Running Firmware 3.05 with ALASKA RESURFACE.
Please vote for Wall mode with Trailer and
BlackBerry Smartphone/ BlackBerry PlayBook application
Community VIP
JoeySmyth
Posts: 3,277
Registered: ‎01-05-2011
0

Re: Metadata Multiple Genres Batch Process

Yes it would be nice if Thumbgen had the feature to combine the Genres.

 

The Thumbgen Author was asked the main question...   (plus an additional question)

 

http://forum.wdlxtv.com/viewtopic.php?f=25&t=6490&p=54093&hilit=live+hub#p54093

 

He answered the 'additional question' .. but not the 'main question'.

Click the Kudos star to say thank you for helpful posts. And be sure to come back to click the 'Accept as Solution' button for the post that solved your issue. This may help someone else.

Honored Contributor
Tinwarble
Posts: 3,725
Registered: ‎11-16-2010
0

Re: Metadata Multiple Genres Batch Process

You can combine the Genres in Thumbgen.  It just won't do it manually, in the Genre box under Movie Information, just change it from

 

Action,Adventure,Thriler (or whatever it is)

 

To

 

Action / Adventure / Thriller

 

Then click on the green check mark, then generate.

I like vanilla icecream.........yeah, I said it and I don't care who knows.
Community VIP
JoeySmyth
Posts: 3,277
Registered: ‎01-05-2011
0

Re: Metadata Multiple Genres Batch Process

Yes, you do it that way as well... assuming you wish to redo all your movies xml and tgmd files.

 

The Batch process is for the hundreds/thousands  of movie xml's  you've already previously generated.

 

 

Click the Kudos star to say thank you for helpful posts. And be sure to come back to click the 'Accept as Solution' button for the post that solved your issue. This may help someone else.

Honored Contributor
Tinwarble
Posts: 3,725
Registered: ‎11-16-2010
0

Re: Metadata Multiple Genres Batch Process

Yes, true.  But I was referring to drizzt09's question:

 


drizzt09 wrote:

What would be the purpose for doing this?

Would it be worthwhile requesting TG to implement this feature built in?




I like vanilla icecream.........yeah, I said it and I don't care who knows.
Regular Advisor
shagratt71
Posts: 142
Registered: ‎07-01-2011
0

Re: Metadata Multiple Genres Batch Process


JoeySmyth wrote:

Says "Unknown" ...

 

A Workaround... create Genre Folders for your Movies eg. Action , Horror , Comedy etc.

 

If you dont want do that, then disregard the Batch Process Method and leave your XML's with a Single Genre.


Im not sure what firmware you're on but my combined Genres show up just fine with the sort filter. I should mention I'm on the latest firmware and also did a cache clear and reset of the machine after editing the xml.

 

Thanks for the Textrep process :smileyhappy:

Forums | Ideas | News and Announcements | Register | Sign in | Help | Forum Guidelines
Copyright © 2001 - 2014 Western Digital Technologies, Inc. All rights reserved. | Trademarks | Privacy | Community Terms of Service | Site Terms of Use | Copyright | Contact WD