Difference between revisions of "MythTV Universal Metadata Format"

From MythTV Official Wiki
Jump to: navigation, search
(Video Example)
(Slight rewording (contrary bolded statements made me uncomfortable))
(38 intermediate revisions by 5 users not shown)
Line 1: Line 1:
 +
In order to unify metadata grabbing for all MythTV screens and plugins, the following universal metadata grabber format specification will be used.  Metadata grabbing will be handled by common code with relatively little custom code necessary for new plugins.  Grabber scripts must conform the the standard, and can otherwise "drop in" to provide metadata lookup for user plugins and core MythTV screens.
 +
 +
You can manually add metadata to your home videos by putting a single query result in a file named <basename>.mxml.
 +
 +
= Explanation of supported tags =
 +
 +
The "Used in" values below only reflect the tags which could be displayed in the plugins today.  When writing your grabber script, you should feel free to use any and all tags listed to make data available to future improvements in MythTV.
 +
 +
{| border=1 cellspacing=0 cellpadding=5
 +
| '''Tag name'''
 +
| '''Type'''
 +
| '''Description'''
 +
| '''Used in Video'''
 +
| '''Used in Music'''
 +
| '''Used in Games'''
 +
|-
 +
| metadata ||
 +
| All results are encapsulated in <metadata> tags.  Metadata tags are the root node.
 +
| {{YES}} || {{YES}} || {{YES}}
 +
|-
 +
| item ||
 +
| Any returned item is encapsulated in an <item> tag.
 +
| {{YES}} || {{YES}} || {{YES}}
 +
|-
 +
| filename || string
 +
| Filename of connected media.
 +
| {{YES}} || {{NO}} || {{NO}}
 +
|-
 +
| title || string
 +
| A textual title for the item being returned.
 +
| {{YES}} || {{YES}} || {{YES}}
 +
|-
 +
| subtitle || string
 +
| The subtitle on the item being returned.
 +
| {{YES}} || {{NO}} || {{NO}}
 +
|-
 +
| tagline || string
 +
| The tagline/catch phrase of the item being returned.
 +
| {{YES}} || {{NO}} || {{NO}}
 +
|-
 +
| description || string
 +
| The plot of the item being returned.  In music, this is used to contain the lyrics.
 +
| {{YES}} || {{YES}} || {{YES}}
 +
|-
 +
| season || uint
 +
| The season number of the item being returned.
 +
| {{YES}} || {{NO}} || {{NO}}
 +
|-
 +
| episode || uint
 +
| The episode number of the item being returned.
 +
| {{YES}} || {{NO}} || {{NO}}
 +
|-
 +
| chanid || uint
 +
| Internal channel id for recorded show.
 +
| {{YES}} || {{NO}} || {{NO}}
 +
|-
 +
| channum || string
 +
| Displayed channel number for recorded show.
 +
| {{YES}} || {{NO}} || {{NO}}
 +
|-
 +
| callsign || string
 +
| Short broadcast callsign for recorded show.
 +
| {{YES}} || {{NO}} || {{NO}}
 +
|-
 +
| channame || string
 +
| Full channel name for recorded show.
 +
| {{YES}} || {{NO}} || {{NO}}
 +
|-
 +
| playbackfilters || string
 +
| Post processing filters for use in playback.
 +
| {{YES}} || {{NO}} || {{NO}}
 +
|-
 +
| recgroup || string
 +
| Group defining additional recording parameters.
 +
| {{YES}} || {{NO}} || {{NO}}
 +
|-
 +
| playgroup || string
 +
| Group defining additional playback parameters.
 +
| {{YES}} || {{NO}} || {{NO}}
 +
|-
 +
| seriesid || string
 +
| Guide data code for the television series.
 +
| {{YES}} || {{NO}} || {{NO}}
 +
|-
 +
| programid || string
 +
| Guide data code for the specific episode.
 +
| {{YES}} || {{NO}} || {{NO}}
 +
|-
 +
| storagegroup || string
 +
| Location of file within MythTV's storage system.
 +
| {{YES}} || {{NO}} || {{NO}}
 +
|-
 +
| startts || datetime
 +
| Listed start time of program.
 +
| {{YES}} || {{NO}} || {{NO}}
 +
|-
 +
| endts || datetime
 +
| Listed end time of program.
 +
| {{YES}} || {{NO}} || {{NO}}
 +
|-
 +
| recstartts || datetime
 +
| Actual start time of recording.
 +
| {{YES}} || {{NO}} || {{NO}}
 +
|-
 +
| recendts || datetime
 +
| Actual end time of recording.
 +
| {{YES}} || {{NO}} || {{NO}}
 +
|-
 +
| dvdseason ||
 +
| The DVD season on which the returned item appears.
 +
| {{YES}} || {{NO}} || {{NO}}
 +
|-
 +
| dvdepisode ||
 +
| The DVD episode number of the returned item..
 +
| {{YES}} || {{NO}} || {{NO}}
 +
|-
 +
| albumtitle || string
 +
| The title of the album on which this item was released.
 +
| {{NO}} || {{YES}} || {{NO}}
 +
|-
 +
| system || string
 +
| The game system for which this item was released.
 +
| {{NO}} || {{NO}} || {{YES}}
 +
|-
 +
| inetref || string
 +
| '''REQUIRED'''.  The reference number/serial number of the item at the metadata source.  Used for a detailed lookup. <br/> ''Inetref is not required with .mxml files (external metadata xml files)-- you can use .mxml files to maintain external, portable metadata for home movies, etc.''
 +
| {{YES}} || {{YES}} || {{YES}}
 +
|-
 +
| imdb || string
 +
| the IMDB number for the item being returned.
 +
| {{YES}} || {{NO}} || {{NO}}
 +
|-
 +
| tmsref || string
 +
| The Tribune Media Services code number for the item being returned (only provided by TheTVDB so far).
 +
| {{YES}} || {{NO}} || {{NO}}
 +
|-
 +
| homepage || string
 +
| The homepage of the item being returned..
 +
| {{YES}} || {{NO}} || {{NO}}
 +
|-
 +
| trailer || string
 +
| A web link to the trailer for the returned item.
 +
| {{YES}} || {{NO}} || {{NO}}
 +
|-
 +
| language || string
 +
| The two-character (ISO-639) language code of the item.
 +
| {{YES}} || {{YES}} || {{NO}}
 +
|-
 +
| releasedate || date
 +
| The release date for the returned item in RFC-822 format.
 +
| {{YES}} || {{YES}} || {{NO}}
 +
|-
 +
| lastupdated || datetime
 +
| The date and time the item was last updated at the source in RFC-822 format.
 +
| {{YES}} || {{YES}} || {{YES}}
 +
|-
 +
| userrating || float
 +
| A float value of the user rating at the source.
 +
| {{YES}} || {{YES}} || {{NO}}
 +
|-
 +
| tracknum || uint
 +
| The integer track number of the returned item.
 +
| {{NO}} || {{YES}} || {{NO}}
 +
|-
 +
| popularity || uint
 +
| An integer popularity value for the item.
 +
| {{YES}} || {{YES}} || {{YES}}
 +
|-
 +
| budget || uint
 +
| The integer amount spent to produce the returned item.
 +
| {{YES}} || {{NO}} || {{NO}}
 +
|-
 +
| revenue || uint
 +
| The integer amount earned by the returned item.
 +
| {{YES}} || {{NO}} || {{NO}}
 +
|-
 +
| year || uint
 +
| The integer year of the returned item.
 +
| {{YES}} || {{YES}} || {{YES}}
 +
|-
 +
| runtime || uint
 +
| The runtime of the returned item in minutes.
 +
| {{YES}} || {{NO}} || {{NO}}
 +
|-
 +
| runtimesecs || uint
 +
| The runtime of the returned item in seconds.
 +
| {{NO}} || {{YES}} || {{NO}}
 +
|-
 +
| certifications ||
 +
| Encapsulates <certification> items, this is the parental rating container.
 +
| {{YES}} || {{YES}} || {{NO}}
 +
|-
 +
| certification ||
 +
| An individual parental rating item, must be contained in a <certifications> tag.  Takes two attributes, ''locale'' and ''name''.
 +
| {{YES}} || {{YES}} || {{YES}}
 +
|-
 +
| categories ||
 +
| Encapsulates <category> items, this is the genre container.
 +
| {{YES}} || {{YES}} || {{YES}}
 +
|-
 +
| category ||
 +
| An individual genre item, takes attribute ''name''.
 +
| {{YES}} || {{YES}} || {{YES}}
 +
|-
 +
| countries ||
 +
| Encapsulates <country> items, this is the locale container.
 +
| {{YES}} || {{YES}} || {{YES}}
 +
|-
 +
| country ||
 +
| A locale of production for the returned item, takes attribute ''name''.
 +
| {{YES}} || {{YES}} || {{YES}}
 +
|-
 +
| studios ||
 +
| Encapsulates <studio> items, this is the production company container.
 +
| {{YES}} || {{YES}} || {{YES}}
 +
|-
 +
| studio ||
 +
| The production company/publisher of the item, takes attribute ''name''.
 +
| {{YES}} || {{YES}} || {{YES}}
 +
|-
 +
| people ||
 +
| Encapsulates <person> items, this is the role/job container.
 +
| {{YES}} || {{YES}} || {{NO}}
 +
|-
 +
| person ||
 +
| A person involved with the production of this item, requires attribute ''job'' and ''name'', optionally takes ''character'', ''thumb'' and ''url''.
 +
| {{YES}} || {{YES}} || {{NO}}
 +
|-
 +
| images ||
 +
| Encapsulates <image> items, this is the artwork container.
 +
| {{YES}} || {{YES}} || {{YES}}
 +
|-
 +
| image ||
 +
| A binary graphic related to the returned item, requires attribute ''type'' and ''url'', optionally takes attribute ''thumb'' for a thumbnail.
 +
| {{YES}} || {{YES}} || {{YES}}
 +
|}
 +
 +
= Version Output =
 +
{{Note box|For consistency between grabbers, please use the following format for your grabber version command line:
 +
 +
<code>./grabbername -v</code>
 +
}}
 +
The version output enumerates the capabilities and information about your grabber to MythTV.
 +
 +
<pre>
 +
<?xml version='1.0' encoding='UTF-8'?>
 +
<grabber>
 +
  <name>GiantBomb Query</name>
 +
  <author>R.D. Vaughan</author>
 +
  <thumbnail>giantbomb.png</thumbnail>
 +
  <command>giantbomb.py</command>
 +
  <type>games</type>
 +
  <description>Search and Metadata downloads for Games from the giantbomb.com API</description>
 +
  <version>v0.10</version>
 +
</grabber>
 +
</pre>
 +
 
= Query Results =  
 
= Query Results =  
 +
{{Note box|For consistency between grabbers, please use the following format for your grabber query command line:
 +
 +
<code>./grabbername -M "query phrase"</code>
 +
}}
 +
A query result is nothing more than a series of items filled as completely as you care or are able to fill them.  The only caveat is that a query (and by definition, any returned single item) '''must''' return an inetref to use in a followup query.
  
 
<pre>
 
<pre>
<results>
+
<?xml version='1.0' encoding='UTF-8'?>
    <queryterm>Star Wars</queryterm>
+
<metadata>
    <item>  
+
  <item>
      <language>en</language>  
+
    <language>en</language>
      <title>Star Wars: Episode V - The Empire Strikes Back</title>
+
    <title>Star Wars: Episode V</title>
      <inetref>1891</inetref>  
+
    <subtitle>The Empire Strikes Back</subtitle>
      <imdb>0080684</imdb>
+
    <inetref>1891</inetref>
      <userrating>8.4</userrating>  
+
    <imdb>0080684</imdb>
      <certifications>
+
    <userrating>8.4</userrating>
          <certification locale="us" name="PG" />
+
    <certifications>
      </certifications>  
+
      <certification locale="us" name="PG"/>
      <description>While Luke takes advanced Jedi training from Yoda, his friends are relentlessly pursued by Darth Vader as part of his plan to capture Luke.</description>  
+
    </certifications>
      <releasedate>1980-05-21</releasedate>  
+
    <description>While Luke takes advanced Jedi training from Yoda, his friends are relentlessly pursued by Darth Vader as part of his plan to capture Luke.</description>
      <images>  
+
    <releasedate>1980-05-21</releasedate>
        <image type="poster"thumb="http://i1.themoviedb.org/posters/4a7/4bc9138c017a3c57fe0074a7/star-wars-episode-v-the-empire-strikes-back-thumb.jpg" url="http://i3.themoviedb.org/posters/4a7/4bc9138c017a3c57fe0074a7/star-wars-episode-v-the-empire-strikes-back-original.jpg" />  
+
    <images>
      </images>  
+
      <image type="coverart" url="http://i2.themoviedb.org/posters/4a7/4bc9138c017a3c57fe0074a7/star-wars-episode-v-the-empire-strikes-back-original.jpg" thumb="http://i1.themoviedb.org/posters/4a7/4bc9138c017a3c57fe0074a7/star-wars-episode-v-the-empire-strikes-back-cover.jpg"/>
      <lastupdated>Tue, 01 Jul 2008 11:37:47 GMT</lastupdated>  
+
      <image type="fanart" url="http://i1.themoviedb.org/backdrops/494/4bc9138a017a3c57fe007494/star-wars-episode-v-the-empire-strikes-back-original.jpg" thumb="http://i1.themoviedb.org/backdrops/494/4bc9138a017a3c57fe007494/star-wars-episode-v-the-empire-strikes-back-thumb.jpg"/>
    </item>
+
    </images>
    <item>  
+
    <lastupdated>Wed, 26 May 2010 04:11:22 GMT</lastupdated>
      <language>en</language>  
+
  </item>
      <title>Star Wars: Episode VI - Return of the Jedi</title>
+
  <item>
      <inetref>1892</inetref>  
+
    <language>en</language>
      <imdb>0086190</imdb>
+
    <title>Star Wars: Episode VI</title>
      <userrating>8.4</userrating>  
+
    <subtitle>Return of the Jedi</subtitle>
      <certifications>
+
    <inetref>1892</inetref>
          <certification locale="us" name="PG" />
+
    <imdb>0086190</imdb>
      </certifications>  
+
    <userrating>7.8</userrating>
      <description>After rescuing Han Solo from the palace of Jabba the Hutt, the Rebels attempt to destroy the Second Death Star, while Luke Skywalker tries to bring his father back to the Light Side of the Force.</description>  
+
    <certifications>
      <releasedate>1983-05-25</releasedate>  
+
      <certification locale="us" name="PG"/>
      <images>  
+
    </certifications>
        <image type="poster" thumb="http://i1.themoviedb.org/posters/506/4bc9139e017a3c57fe007506/star-wars-episode-vi-return-of-the-jedi-thumb.jpg" url="http://i1.themoviedb.org/posters/506/4bc9139e017a3c57fe007506/star-wars-episode-vi-return-of-the-jedi-original.jpg" />  
+
    <description>After rescuing Han Solo from the palace of Jabba the Hutt, the Rebels attempt to destroy the Second Death Star, while Luke Skywalker tries to bring his father back to the Light Side of the Force.</description>
      </images>  
+
    <releasedate>1983-05-25</releasedate>
      <lastupdated>Tue, 01 Jul 2008 11:37:47 GMT</lastupdated>  
+
    <images>
    </item>
+
      <image type="coverart" url="http://i1.themoviedb.org/posters/506/4bc9139e017a3c57fe007506/star-wars-episode-vi-return-of-the-jedi-original.jpg" thumb="http://i2.themoviedb.org/posters/506/4bc9139e017a3c57fe007506/star-wars-episode-vi-return-of-the-jedi-cover.jpg"/>
</results>
+
      <image type="fanart" url="http://i3.themoviedb.org/backdrops/4f8/4bc9139c017a3c57fe0074f8/star-wars-episode-vi-return-of-the-jedi-original.jpg" thumb="http://i3.themoviedb.org/backdrops/4f8/4bc9139c017a3c57fe0074f8/star-wars-episode-vi-return-of-the-jedi-thumb.jpg"/>
 +
    </images>
 +
    <lastupdated>Sat, 15 May 2010 22:20:40 GMT</lastupdated>
 +
  </item>
 +
</metadata>
 
  </pre>
 
  </pre>
  
= Video Example =
+
= Data Grab Commands =
 +
{{Note box|For consistency between grabbers, please use the following format for your grabber data command line:
 +
 
 +
'''Title Search:'''
 +
<code>./grabbername -D "Inetref"</code>
 +
 
 +
'''Television Title And Subtitle Search:'''
 +
<code>./grabbername -N "title" "subtitle"</code>
 +
 
 +
'''Television Season and Episode Search:'''
 +
<code>./grabbername -D "Inetref" "season number" "episode number"</code>
 +
}}
 +
 
 +
== Movie Example ==
  
 
<pre>
 
<pre>
 +
<?xml version='1.0' encoding='UTF-8'?>
 
<metadata>
 
<metadata>
     <title>Star Wars</title>
+
  <item>
 +
     <title>Star Wars: Episode IV</title>
 
     <subtitle>A New Hope</subtitle>
 
     <subtitle>A New Hope</subtitle>
     <tagline>A long time ago, in a galaxy far, far away...</tagline>
+
     <tagline>A long time ago in a galaxy far, far away...</tagline>
     <description>A band of rebels travel the galaxy attempting to free themselves from the tyranny of the evil galactic empire.</description>
+
    <language>en</language>
    <season>0</season>
+
     <description>When Princess Leia is taken prisoner by Darth Vader, she sends her two droids on a mission to find an old Jedi Knight. Their paths cross that of Luke Skywalker who, along with Obi Wan Kenobi, Han Solo and Chewbacca, heads off to Alderaan to deliver the droids to the Rebellion.</description>
    <episode>0</episode>
 
 
     <certifications>
 
     <certifications>
        <certification locale="us" name="PG" />
+
      <certification locale="us" name="PG"/>
     </certifications>  
+
     </certifications>
     <categories>  
+
     <categories>
        <category type="genre" name="Action" />  
+
      <category type="genre" name="Action"/>
        <category type="genre" name="Adventure" />  
+
      <category type="genre" name="Adventure"/>
        <category type="genre" name="Fantasy" />  
+
      <category type="genre" name="Fantasy"/>
        <category type="genre" name="Science Fiction" />  
+
      <category type="genre" name="Science Fiction"/>
    </categories>  
+
    </categories>
    <studios>  
+
    <studios>
        <studio name="Lucasfilm" />  
+
      <studio name="Lucasfilm"/>
    </studios>  
+
    </studios>
    <countries>  
+
    <countries>
        <country name="Tunisia" />  
+
      <country name="Tunisia"/>
        <country name="United States of America" />  
+
      <country name="United States of America"/>
    </countries>  
+
    </countries>
     <popularity>7</popularity>
+
     <popularity>3</popularity>
 
     <userrating>8.2</userrating>
 
     <userrating>8.2</userrating>
     <budget>21000000</budget>
+
     <budget>11000000</budget>
     <revenue>1000000000</revenue>
+
     <revenue>775398007</revenue>
 
     <year>1977</year>
 
     <year>1977</year>
     <releasedate>1977-05-25</releasedate> <!-- RFC-822 date -->
+
     <releasedate>1977-05-25</releasedate>
     <lastupdated>Tue, 01 Jul 2008 11:37:47 GMT</lastupdated> <!-- RFC-822 date-time -->
+
     <lastupdated>Sat, 29 May 2010 16:18:37 GMT</lastupdated>
     <runtime>121</runtime> <!-- In minutes -->
+
     <runtime>121</runtime>
     <inetref>11</inetref> <!-- Per source reference string -->
+
     <inetref>11</inetref>
     <imdb>0076759</imdb> <!-- IMDB number -->
+
     <imdb>0076759</imdb>
     <homepage>http://www.starwars.com</homepage>
+
     <homepage>http://www.themoviedb.org/movie/11</homepage>
 
     <trailer>http://www.youtube.com/watch?v=96</trailer>
 
     <trailer>http://www.youtube.com/watch?v=96</trailer>
 
     <people>
 
     <people>
        <person name="Mark Hamill" job="Actor" character="Luke Skywalker" thumb="http://i1.themoviedb.org/profiles/174/4bccaf4c017a3c0f32000174/mark-hamill-thumb.jpg" url="http://www.themoviedb.org/person/2" />
+
      <person name="George Lucas" job="Director" thumb="http://i2.themoviedb.org/profiles/15a/4bccb006017a3c0f2a00015a/george-lucas-thumb.jpg" url="http://www.themoviedb.org/person/1" department="Directing"/>
        <person name="George Lucas" job="Author" character="" thumb="http://i3.themoviedb.org/profiles/15a/4bccb006017a3c0f2a00015a/george-lucas-thumb.jpg" url="http://www.themoviedb.org/person/1" />
+
      <person name="George Lucas" job="Author" thumb="http://i3.themoviedb.org/profiles/15a/4bccb006017a3c0f2a00015a/george-lucas-thumb.jpg" url="http://www.themoviedb.org/person/1" department="Writing"/>
 +
      <person name="Mark Hamill" job="Actor" character="Luke Skywalker" thumb="http://i1.themoviedb.org/profiles/174/4bccaf4c017a3c0f32000174/mark-hamill-thumb.jpg" url="http://www.themoviedb.org/person/2" department="Actors"/>
 +
      <person name="Harrison Ford" job="Actor" character="Han Solo" thumb="http://i3.themoviedb.org/profiles/00a/4bd38e2c017a3c534700000a/harrison-ford-thumb.jpg" url="http://www.themoviedb.org/person/3" department="Actors"/>
 +
      <person name="Carrie Fisher" job="Actor" character="Leia Organa" thumb="http://i2.themoviedb.org/profiles/1a7/4bccb3c4017a3c0f300001a7/carrie-fisher-thumb.jpg" url="http://www.themoviedb.org/person/4" department="Actors"/>
 +
      <person name="Peter Cushing" job="Actor" character="Grand Moff Tarkin" thumb="http://i2.themoviedb.org/profiles/1fe/4bccb56b017a3c0f340001fe/peter-cushing-thumb.jpg" url="http://www.themoviedb.org/person/5" department="Actors"/>
 +
      <person name="Anthony Daniels" job="Actor" character="C-3PO" thumb="http://i3.themoviedb.org/profiles/17a/4bccb612017a3c0f2f00017a/anthony-daniels-thumb.jpg" url="http://www.themoviedb.org/person/6" department="Actors"/>
 +
      <person name="Kenny Baker" job="Actor" character="R2-D2" url="http://www.themoviedb.org/person/130" department="Actors"/>
 +
      <person name="George Lucas" job="Executive Producer" thumb="http://i1.themoviedb.org/profiles/15a/4bccb006017a3c0f2a00015a/george-lucas-thumb.jpg" url="http://www.themoviedb.org/person/1" department="Production"/>
 +
      <person name="Gary Kurtz" job="Producer" url="http://www.themoviedb.org/person/12401" department="Production"/>
 +
      <person name="Rick McCallum" job="Producer" url="http://www.themoviedb.org/person/19801" department="Production"/>
 +
      <person name="Alec Guinness" job="Actor" character="Obi-Wan Kenobi" url="http://www.themoviedb.org/person/12248" department="Actors"/>
 +
    </people>
 +
    <images>
 +
      <image type="coverart" thumb="http://i1.themoviedb.org/posters/0a9/4bc90144017a3c57fe0000a9/star-wars-episode-iv-a-new-hope-cover.jpg" url="http://i3.themoviedb.org/posters/0a9/4bc90144017a3c57fe0000a9/star-wars-episode-iv-a-new-hope-original.jpg"/>
 +
      <image type="coverart" thumb="http://i3.themoviedb.org/posters/08b/4bc90140017a3c57fe00008b/star-wars-episode-iv-a-new-hope-cover.jpg" url="http://i2.themoviedb.org/posters/08b/4bc90140017a3c57fe00008b/star-wars-episode-iv-a-new-hope-original.jpg"/>
 +
      <image type="coverart" thumb="http://i3.themoviedb.org/posters/0a4/4bc90144017a3c57fe0000a4/star-wars-episode-iv-a-new-hope-cover.jpg" url="http://i1.themoviedb.org/posters/0a4/4bc90144017a3c57fe0000a4/star-wars-episode-iv-a-new-hope-original.jpg"/>
 +
      <image type="fanart" thumb="http://i3.themoviedb.org/backdrops/06e/4bc9013a017a3c57fe00006e/star-wars-episode-iv-a-new-hope-thumb.jpg" url="http://i2.themoviedb.org/backdrops/06e/4bc9013a017a3c57fe00006e/star-wars-episode-iv-a-new-hope-original.jpg"/>
 +
      <image type="fanart" thumb="http://i1.themoviedb.org/backdrops/062/4bc90139017a3c57fe000062/star-wars-episode-iv-a-new-hope-thumb.jpg" url="http://i3.themoviedb.org/backdrops/062/4bc90139017a3c57fe000062/star-wars-episode-iv-a-new-hope-original.jpg"/>
 +
    </images>
 +
  </item>
 +
</metadata>
 +
</pre>
 +
 
 +
== Television Example ==
 +
 
 +
<pre>
 +
<?xml version='1.0' encoding='UTF-8'?>
 +
<metadata>
 +
  <item>
 +
    <title>Lost</title>
 +
    <subtitle>What They Died For</subtitle>
 +
    <language>en</language>
 +
    <description>While Locke devises a new strategy, Jack's group searches for Desmond.</description>
 +
    <season>6</season>
 +
    <episode>16</episode>
 +
    <certifications>
 +
      <certification locale="us" name="TV-14"/>
 +
    </certifications>
 +
    <categories>
 +
      <category type="genre" name="Action and Adventure"/>
 +
      <category type="genre" name="Drama"/>
 +
      <category type="genre" name="Science-Fiction"/>
 +
    </categories>
 +
    <studios>
 +
      <studio name="ABC"/>
 +
    </studios>
 +
    <runtime>60</runtime>
 +
    <inetref>73739</inetref>
 +
    <tmsref>SH672362</tmsref>
 +
    <userrating>8.0</userrating>
 +
    <year>2010</year>
 +
    <releasedate>2010-05-18</releasedate>
 +
    <lastupdated>Sun, 30 May 2010 11:59:09 GMT</lastupdated>
 +
    <homepage>http://thetvdb.com/?tab=episode&amp;seriesid=73739&amp;seasonid=66871&amp;id=1685191</homepage>
 +
    <people>
 +
      <person job="Actor" name="Matthew Fox" character="Jack Shephard" url="http://www.thetvdb.com/banners/actors/27747.jpg" thumb="http://www.thetvdb.com/banners/_cache/actors/27747.jpg"/>
 +
      <person job="Actor" name="Terry O'Quinn" character="John Locke" url="http://www.thetvdb.com/banners/actors/27745.jpg" thumb="http://www.thetvdb.com/banners/_cache/actors/27745.jpg"/>
 +
      <person job="Actor" name="Evangeline Lilly" character="Kate Austen" url="http://www.thetvdb.com/banners/actors/27741.jpg" thumb="http://www.thetvdb.com/banners/_cache/actors/27741.jpg"/>
 +
      <person job="Actor" name="Naveen Andrews" character="Sayid Jarrah" url="http://www.thetvdb.com/banners/actors/27749.jpg" thumb="http://www.thetvdb.com/banners/_cache/actors/27749.jpg"/>
 +
      <person job="Actor" name="Daniel Dae Kim" character="Jin Kwon" url="http://www.thetvdb.com/banners/actors/27742.jpg" thumb="http://www.thetvdb.com/banners/_cache/actors/27742.jpg"/>
 +
      <person job="Actor" name="Yunjin Kim" character="Sun Kwon" url="http://www.thetvdb.com/banners/actors/27740.jpg" thumb="http://www.thetvdb.com/banners/_cache/actors/27740.jpg"/>
 +
      <person job="Actor" name="Josh Holloway" character="James 'Sawyer' Ford" url="http://www.thetvdb.com/banners/actors/27739.jpg" thumb="http://www.thetvdb.com/banners/_cache/actors/27739.jpg"/>
 +
      <person job="Actor" name="Jorge Garcia" character="Hugo 'Hurley' Reyes" url="http://www.thetvdb.com/banners/actors/27737.jpg" thumb="http://www.thetvdb.com/banners/_cache/actors/27737.jpg"/>
 +
      <person job="Guest Star" name="Michelle Rodriguez"/>
 +
      <person job="Guest Star" name="Mira Furlan"/>
 +
      <person job="Director" name="Paul Edwards"/>
 +
      <person job="Author" name="Edward Kitsis"/>
 +
      <person job="Author" name="Adam Horowitz"/>
 +
      <person job="Author" name="Elizabeth Sarnoff"/>
 
     </people>
 
     </people>
 
     <images>
 
     <images>
        <image type="coverart" thumb="http://i2.themoviedb.org/posters/0a9/4bc90144017a3c57fe0000a9/star-wars-episode-iv-a-new-hope-thumb.jpg" url="http://i2.themoviedb.org/posters/0a9/4bc90144017a3c57fe0000a9/star-wars-episode-iv-a-new-hope-original.jpg" />
+
      <image type="screenshot" url="http://www.thetvdb.com/banners/episodes/73739/1685191.jpg" thumb="http://www.thetvdb.com/banners/_cache/episodes/73739/1685191.jpg"/>
        <image type="fanart" thumb="http://i1.themoviedb.org/backdrops/06e/4bc9013a017a3c57fe00006e/star-wars-episode-iv-a-new-hope-thumb.jpg" url="http://i3.themoviedb.org/backdrops/06e/4bc9013a017a3c57fe00006e/star-wars-episode-iv-a-new-hope-original.jpg" />
+
      <image type="coverart" url="http://www.thetvdb.com/banners/seasons/73739-6-5.jpg" thumb="http://www.thetvdb.com/banners/_cache/seasons/73739-6-5.jpg"/>
        <image type="fanart" thumb="http://i3.themoviedb.org/backdrops/07a/4bc9013e017a3c57fe00007a/star-wars-episode-iv-a-new-hope-thumb.jpg" url="http://i2.themoviedb.org/backdrops/07a/4bc9013e017a3c57fe00007a/star-wars-episode-iv-a-new-hope-original.jpg" />
+
      <image type="coverart" url="http://www.thetvdb.com/banners/seasons/73739-6-4.jpg" thumb="http://www.thetvdb.com/banners/_cache/seasons/73739-6-4.jpg"/>
 +
      <image type="fanart" url="http://www.thetvdb.com/banners/fanart/original/73739-43.jpg" thumb="http://www.thetvdb.com/banners/_cache/fanart/original/73739-43.jpg" width="1920" height="1080"/>
 +
      <image type="fanart" url="http://www.thetvdb.com/banners/fanart/original/73739-34.jpg" thumb="http://www.thetvdb.com/banners/_cache/fanart/original/73739-34.jpg" width="1920" height="1080"/>
 +
      <image type="fanart" url="http://www.thetvdb.com/banners/fanart/original/73739-21.jpg" thumb="http://www.thetvdb.com/banners/_cache/fanart/original/73739-21.jpg" width="1280" height="720"/>
 +
      <image type="fanart" url="http://www.thetvdb.com/banners/fanart/original/73739-47.jpg" thumb="http://www.thetvdb.com/banners/_cache/fanart/original/73739-47.jpg" width="1920" height="1080"/>
 +
      <image type="banner" url="http://www.thetvdb.com/banners/seasonswide/73739-6.jpg" thumb="http://www.thetvdb.com/banners/_cache/seasonswide/73739-6.jpg"/>
 
     </images>
 
     </images>
 +
  </item>
 
</metadata>
 
</metadata>
 
</pre>
 
</pre>
  
== Supported person jobs ==
+
== Recording Example ==
  
These are the strings to insert for the various jobs.  More can be added, but these are the currently supported jobs:
+
<pre>
 +
<metadata>
 +
    <item>
 +
        <title>My Strange Addiction</title>
 +
        <subtitle>Eats Couch Cushion; Furry</subtitle>
 +
        <season>1</season>
 +
        <episode>7</episode>
 +
        <description>Lauren can not go to a party or social event without wearing her fur suit; Adele has been eating couch cushions for twenty years.</description>
 +
        <inetref>211391</inetref>
 +
        <chanid>3752</chanid>
 +
        <channum>752</channum>
 +
        <chansign>TLCHD</chansign>
 +
        <channame>The Learning Channel HD</channame>
 +
        <recgroup>Default</recgroup>
 +
        <playgroup>Default</playgroup>
 +
        <seriesid>EP01364129</seriesid>
 +
        <programid>EP013641290008</programid>
 +
        <storagegroup>Default</storagegroup>
 +
        <startts>Sat, 16 July 2011 18:30:00</startts>
 +
        <endts>Sat, 16 July 2011 19:00:00</endts>
 +
        <recstartts>Sat, 16 July 2011 18:29:00</recstartts>
 +
        <recendts>Sat, 16 July 2011 19:00:00</recendts>
 +
        <programflags>5246980</programflags>
 +
        <audioproperties>1</audioproperties>
 +
        <videoproperties>1</videoproperties>
 +
        <subtitletype>1</subtitletype>
 +
        <releasedate>2011-01-19</releasedate>
 +
        <lastupdated>Sat, 16 July 2011 18:38:11</lastupdated>
 +
        <runtime>31</runtime>
 +
        <runtimesecs>1860</runtimesecs>
 +
        <categories>
 +
            <category type="genre" name="Health"/>
 +
        </categories>
 +
    </item>
 +
</metadata>
 +
</pre>
 +
 
 +
== Music Example ==
 +
 
 +
<pre>
 +
<metadata>
 +
  <item>
 +
    <title>Break Your Heart</title>
 +
    <albumtitle>Rokstarr</albumtitle>
 +
    <tracknum>1</tracknum>
 +
    <language>en</language>
 +
    <description>Now I might not be the worst of the best but you gotta respect my honesty so let me break your heart but I don't think theres anybody as bomb as me so you can take this chance and everybody's gonna be wonderin' how you feel you might say this is Ludacris but Taio Cruz tell her how you feel.</description>
 +
    <categories>
 +
        <category type="genre" name="Hip-hop" />
 +
        <category type="genre" name="Pop" />
 +
    </categories>
 +
    <studios>
 +
        <studio name="Island" />
 +
    </studios>
 +
    <countries>
 +
        <country name="United Kingdom" />
 +
        <country name="United States of America" />
 +
    </countries>
 +
    <userrating>8.2</userrating>
 +
    <year>2010</year>
 +
    <lastupdated>Tue, 01 Jul 2008 11:37:47 GMT</lastupdated>
 +
    <runtimesecs>203</runtimesecs>
 +
    <inetref>2703d604</inetref>
 +
    <people>
 +
        <person name="Taio Cruz" job="Artist" character="" thumb="" url="" />
 +
        <person name="Ludacris" job="Artist" character="" thumb="" url="" />
 +
        <person name="Taio Cruz" job="Album Artist" character="" thumb="" url="" />
 +
    </people>
 +
    <images>
 +
        <image type="coverart" thumb="" url="http://upload.wikimedia.org/wikipedia/en/f/fa/Taio_Cruz_Rokstarr.jpg" />
 +
    </images>
 +
  </item>
 +
</metadata>
 +
</pre>
 +
 
 +
== Game Example ==
 +
 
 +
<pre>
 +
<?xml version='1.0' encoding='UTF-8'?>
 +
<metadata>
 +
  <item>
 +
    <language>en</language>
 +
    <title>Pac-Man</title>
 +
    <description>One of the most popular arcade games of all time, Pac-Man was first released in 1980 and has become a pop culture icon for that decade.</description>
 +
    <categories>
 +
      <category type="genre" name="Puzzle"/>
 +
      <category type="genre" name="Strategy"/>
 +
    </categories>
 +
    <systems>
 +
      <system>Game Boy Advance</system>
 +
      <system>Wii Shop</system>
 +
      <system>VIC-20</system>
 +
      <system>Atari 8-bit</system>
 +
      <system>NES</system>
 +
      <system>Intellivision</system>
 +
      <system>Neo Geo Pocket Color</system>
 +
      <system>ZX Spectrum</system>
 +
      <system>MSX</system>
 +
      <system>Commodore 64</system>
 +
      <system>PC</system>
 +
      <system>Apple II</system>
 +
      <system>Game Gear</system>
 +
      <system>Game Boy</system>
 +
      <system>Atari 5200</system>
 +
      <system>TI-99/4A</system>
 +
    </systems>
 +
    <studios>
 +
      <studio name="Atari"/>
 +
      <studio name="Namco Bandai Games Inc."/>
 +
      <studio name="SNK Playmore"/>
 +
      <studio name="Thunder Mountain"/>
 +
      <studio name="Bug-Byte Software Ltd."/>
 +
    </studios>
 +
    <releasedate>1980-05-22</releasedate>
 +
    <lastupdated>Wed, 02 Jun 2010 11:44:18 GMT</lastupdated>
 +
    <inetref>7624</inetref>
 +
    <homepage>http://www.giantbomb.com/pac-man/61-7624/</homepage>
 +
    <images>
 +
      <image type="coverart" url="http://media.giantbomb.com/uploads/8/87209/1331111-pacman_box_super.png" thumb="http://media.giantbomb.com/uploads/8/87209/1331111-pacman_box_thumb.png"/>
 +
      <image type="screenshot" url="http://media.giantbomb.com/uploads/1/14200/946257-pm2_super.jpg" thumb="http://media.giantbomb.com/uploads/1/14200/946257-pm2_thumb.jpg"/>
 +
      <image type="screenshot" url="http://media.giantbomb.com/uploads/1/14200/946256-pm_super.jpg" thumb="http://media.giantbomb.com/uploads/1/14200/946256-pm_thumb.jpg"/>
 +
      <image type="screenshot" url="http://media.giantbomb.com/uploads/1/15562/496458-pac_man__1981___atari__5_super.png" thumb="http://media.giantbomb.com/uploads/1/15562/496458-pac_man__1981___atari__5_thumb.png"/>
 +
      <image type="screenshot" url="http://media.giantbomb.com/uploads/1/15562/496457-pac_man__1981___atari__4_super.png" thumb="http://media.giantbomb.com/uploads/1/15562/496457-pac_man__1981___atari__4_thumb.png"/>
 +
    </images>
 +
  </item>
 +
</metadata>
 +
 
 +
</pre>
 +
 
 +
= Supported jobs =
 +
 
 +
These are the strings to insert for the various jobs/professions.  More can be added, but these are the currently supported jobs:
  
 
=== Movie/Video Jobs ===
 
=== Movie/Video Jobs ===
  
 
* "Actor"
 
* "Actor"
 +
* "Guest Star"
 
* "Author"
 
* "Author"
 
* "Producer"
 
* "Producer"
Line 110: Line 596:
 
* "Album Artist"
 
* "Album Artist"
  
== Support image types ==
+
= Supported image types =
  
 
=== General Image Types ===
 
=== General Image Types ===
Line 124: Line 610:
 
* "Inside Cover"
 
* "Inside Cover"
 
* "CD Image"
 
* "CD Image"
 +
 +
[[Category:Grabber_Documentation]]

Revision as of 20:43, 22 November 2011

In order to unify metadata grabbing for all MythTV screens and plugins, the following universal metadata grabber format specification will be used. Metadata grabbing will be handled by common code with relatively little custom code necessary for new plugins. Grabber scripts must conform the the standard, and can otherwise "drop in" to provide metadata lookup for user plugins and core MythTV screens.

You can manually add metadata to your home videos by putting a single query result in a file named <basename>.mxml.

Explanation of supported tags

The "Used in" values below only reflect the tags which could be displayed in the plugins today. When writing your grabber script, you should feel free to use any and all tags listed to make data available to future improvements in MythTV.

Tag name Type Description Used in Video Used in Music Used in Games
metadata All results are encapsulated in <metadata> tags. Metadata tags are the root node. Yes Yes Yes
item Any returned item is encapsulated in an <item> tag. Yes Yes Yes
filename string Filename of connected media. Yes No No
title string A textual title for the item being returned. Yes Yes Yes
subtitle string The subtitle on the item being returned. Yes No No
tagline string The tagline/catch phrase of the item being returned. Yes No No
description string The plot of the item being returned. In music, this is used to contain the lyrics. Yes Yes Yes
season uint The season number of the item being returned. Yes No No
episode uint The episode number of the item being returned. Yes No No
chanid uint Internal channel id for recorded show. Yes No No
channum string Displayed channel number for recorded show. Yes No No
callsign string Short broadcast callsign for recorded show. Yes No No
channame string Full channel name for recorded show. Yes No No
playbackfilters string Post processing filters for use in playback. Yes No No
recgroup string Group defining additional recording parameters. Yes No No
playgroup string Group defining additional playback parameters. Yes No No
seriesid string Guide data code for the television series. Yes No No
programid string Guide data code for the specific episode. Yes No No
storagegroup string Location of file within MythTV's storage system. Yes No No
startts datetime Listed start time of program. Yes No No
endts datetime Listed end time of program. Yes No No
recstartts datetime Actual start time of recording. Yes No No
recendts datetime Actual end time of recording. Yes No No
dvdseason The DVD season on which the returned item appears. Yes No No
dvdepisode The DVD episode number of the returned item.. Yes No No
albumtitle string The title of the album on which this item was released. No Yes No
system string The game system for which this item was released. No No Yes
inetref string REQUIRED. The reference number/serial number of the item at the metadata source. Used for a detailed lookup.
Inetref is not required with .mxml files (external metadata xml files)-- you can use .mxml files to maintain external, portable metadata for home movies, etc.
Yes Yes Yes
imdb string the IMDB number for the item being returned. Yes No No
tmsref string The Tribune Media Services code number for the item being returned (only provided by TheTVDB so far). Yes No No
homepage string The homepage of the item being returned.. Yes No No
trailer string A web link to the trailer for the returned item. Yes No No
language string The two-character (ISO-639) language code of the item. Yes Yes No
releasedate date The release date for the returned item in RFC-822 format. Yes Yes No
lastupdated datetime The date and time the item was last updated at the source in RFC-822 format. Yes Yes Yes
userrating float A float value of the user rating at the source. Yes Yes No
tracknum uint The integer track number of the returned item. No Yes No
popularity uint An integer popularity value for the item. Yes Yes Yes
budget uint The integer amount spent to produce the returned item. Yes No No
revenue uint The integer amount earned by the returned item. Yes No No
year uint The integer year of the returned item. Yes Yes Yes
runtime uint The runtime of the returned item in minutes. Yes No No
runtimesecs uint The runtime of the returned item in seconds. No Yes No
certifications Encapsulates <certification> items, this is the parental rating container. Yes Yes No
certification An individual parental rating item, must be contained in a <certifications> tag. Takes two attributes, locale and name. Yes Yes Yes
categories Encapsulates <category> items, this is the genre container. Yes Yes Yes
category An individual genre item, takes attribute name. Yes Yes Yes
countries Encapsulates <country> items, this is the locale container. Yes Yes Yes
country A locale of production for the returned item, takes attribute name. Yes Yes Yes
studios Encapsulates <studio> items, this is the production company container. Yes Yes Yes
studio The production company/publisher of the item, takes attribute name. Yes Yes Yes
people Encapsulates <person> items, this is the role/job container. Yes Yes No
person A person involved with the production of this item, requires attribute job and name, optionally takes character, thumb and url. Yes Yes No
images Encapsulates <image> items, this is the artwork container. Yes Yes Yes
image A binary graphic related to the returned item, requires attribute type and url, optionally takes attribute thumb for a thumbnail. Yes Yes Yes

Version Output

Important.png Note: For consistency between grabbers, please use the following format for your grabber version command line:

./grabbername -v

The version output enumerates the capabilities and information about your grabber to MythTV.

<?xml version='1.0' encoding='UTF-8'?>
<grabber>
  <name>GiantBomb Query</name>
  <author>R.D. Vaughan</author>
  <thumbnail>giantbomb.png</thumbnail>
  <command>giantbomb.py</command>
  <type>games</type>
  <description>Search and Metadata downloads for Games from the giantbomb.com API</description>
  <version>v0.10</version>
</grabber>

Query Results

Important.png Note: For consistency between grabbers, please use the following format for your grabber query command line:

./grabbername -M "query phrase"

A query result is nothing more than a series of items filled as completely as you care or are able to fill them. The only caveat is that a query (and by definition, any returned single item) must return an inetref to use in a followup query.

<?xml version='1.0' encoding='UTF-8'?>
<metadata>
  <item>
    <language>en</language>
    <title>Star Wars: Episode V</title>
    <subtitle>The Empire Strikes Back</subtitle>
    <inetref>1891</inetref>
    <imdb>0080684</imdb>
    <userrating>8.4</userrating>
    <certifications>
      <certification locale="us" name="PG"/>
    </certifications>
    <description>While Luke takes advanced Jedi training from Yoda, his friends are relentlessly pursued by Darth Vader as part of his plan to capture Luke.</description>
    <releasedate>1980-05-21</releasedate>
    <images>
      <image type="coverart" url="http://i2.themoviedb.org/posters/4a7/4bc9138c017a3c57fe0074a7/star-wars-episode-v-the-empire-strikes-back-original.jpg" thumb="http://i1.themoviedb.org/posters/4a7/4bc9138c017a3c57fe0074a7/star-wars-episode-v-the-empire-strikes-back-cover.jpg"/>
      <image type="fanart" url="http://i1.themoviedb.org/backdrops/494/4bc9138a017a3c57fe007494/star-wars-episode-v-the-empire-strikes-back-original.jpg" thumb="http://i1.themoviedb.org/backdrops/494/4bc9138a017a3c57fe007494/star-wars-episode-v-the-empire-strikes-back-thumb.jpg"/>
    </images>
    <lastupdated>Wed, 26 May 2010 04:11:22 GMT</lastupdated>
  </item>
  <item>
    <language>en</language>
    <title>Star Wars: Episode VI</title>
    <subtitle>Return of the Jedi</subtitle>
    <inetref>1892</inetref>
    <imdb>0086190</imdb>
    <userrating>7.8</userrating>
    <certifications>
      <certification locale="us" name="PG"/>
    </certifications>
    <description>After rescuing Han Solo from the palace of Jabba the Hutt, the Rebels attempt to destroy the Second Death Star, while Luke Skywalker tries to bring his father back to the Light Side of the Force.</description>
    <releasedate>1983-05-25</releasedate>
    <images>
      <image type="coverart" url="http://i1.themoviedb.org/posters/506/4bc9139e017a3c57fe007506/star-wars-episode-vi-return-of-the-jedi-original.jpg" thumb="http://i2.themoviedb.org/posters/506/4bc9139e017a3c57fe007506/star-wars-episode-vi-return-of-the-jedi-cover.jpg"/>
      <image type="fanart" url="http://i3.themoviedb.org/backdrops/4f8/4bc9139c017a3c57fe0074f8/star-wars-episode-vi-return-of-the-jedi-original.jpg" thumb="http://i3.themoviedb.org/backdrops/4f8/4bc9139c017a3c57fe0074f8/star-wars-episode-vi-return-of-the-jedi-thumb.jpg"/>
    </images>
    <lastupdated>Sat, 15 May 2010 22:20:40 GMT</lastupdated>
  </item>
</metadata>
 

Data Grab Commands

Important.png Note: For consistency between grabbers, please use the following format for your grabber data command line:

Title Search: ./grabbername -D "Inetref"

Television Title And Subtitle Search: ./grabbername -N "title" "subtitle"

Television Season and Episode Search: ./grabbername -D "Inetref" "season number" "episode number"

Movie Example

<?xml version='1.0' encoding='UTF-8'?>
<metadata>
  <item>
    <title>Star Wars: Episode IV</title>
    <subtitle>A New Hope</subtitle>
    <tagline>A long time ago in a galaxy far, far away...</tagline>
    <language>en</language>
    <description>When Princess Leia is taken prisoner by Darth Vader, she sends her two droids on a mission to find an old Jedi Knight. Their paths cross that of Luke Skywalker who, along with Obi Wan Kenobi, Han Solo and Chewbacca, heads off to Alderaan to deliver the droids to the Rebellion.</description>
    <certifications>
      <certification locale="us" name="PG"/>
    </certifications>
    <categories>
      <category type="genre" name="Action"/>
      <category type="genre" name="Adventure"/>
      <category type="genre" name="Fantasy"/>
      <category type="genre" name="Science Fiction"/>
    </categories>
    <studios>
      <studio name="Lucasfilm"/>
    </studios>
    <countries>
      <country name="Tunisia"/>
      <country name="United States of America"/>
    </countries>
    <popularity>3</popularity>
    <userrating>8.2</userrating>
    <budget>11000000</budget>
    <revenue>775398007</revenue>
    <year>1977</year>
    <releasedate>1977-05-25</releasedate>
    <lastupdated>Sat, 29 May 2010 16:18:37 GMT</lastupdated>
    <runtime>121</runtime>
    <inetref>11</inetref>
    <imdb>0076759</imdb>
    <homepage>http://www.themoviedb.org/movie/11</homepage>
    <trailer>http://www.youtube.com/watch?v=96</trailer>
    <people>
      <person name="George Lucas" job="Director" thumb="http://i2.themoviedb.org/profiles/15a/4bccb006017a3c0f2a00015a/george-lucas-thumb.jpg" url="http://www.themoviedb.org/person/1" department="Directing"/>
      <person name="George Lucas" job="Author" thumb="http://i3.themoviedb.org/profiles/15a/4bccb006017a3c0f2a00015a/george-lucas-thumb.jpg" url="http://www.themoviedb.org/person/1" department="Writing"/>
      <person name="Mark Hamill" job="Actor" character="Luke Skywalker" thumb="http://i1.themoviedb.org/profiles/174/4bccaf4c017a3c0f32000174/mark-hamill-thumb.jpg" url="http://www.themoviedb.org/person/2" department="Actors"/>
      <person name="Harrison Ford" job="Actor" character="Han Solo" thumb="http://i3.themoviedb.org/profiles/00a/4bd38e2c017a3c534700000a/harrison-ford-thumb.jpg" url="http://www.themoviedb.org/person/3" department="Actors"/>
      <person name="Carrie Fisher" job="Actor" character="Leia Organa" thumb="http://i2.themoviedb.org/profiles/1a7/4bccb3c4017a3c0f300001a7/carrie-fisher-thumb.jpg" url="http://www.themoviedb.org/person/4" department="Actors"/>
      <person name="Peter Cushing" job="Actor" character="Grand Moff Tarkin" thumb="http://i2.themoviedb.org/profiles/1fe/4bccb56b017a3c0f340001fe/peter-cushing-thumb.jpg" url="http://www.themoviedb.org/person/5" department="Actors"/>
      <person name="Anthony Daniels" job="Actor" character="C-3PO" thumb="http://i3.themoviedb.org/profiles/17a/4bccb612017a3c0f2f00017a/anthony-daniels-thumb.jpg" url="http://www.themoviedb.org/person/6" department="Actors"/>
      <person name="Kenny Baker" job="Actor" character="R2-D2" url="http://www.themoviedb.org/person/130" department="Actors"/>
      <person name="George Lucas" job="Executive Producer" thumb="http://i1.themoviedb.org/profiles/15a/4bccb006017a3c0f2a00015a/george-lucas-thumb.jpg" url="http://www.themoviedb.org/person/1" department="Production"/>
      <person name="Gary Kurtz" job="Producer" url="http://www.themoviedb.org/person/12401" department="Production"/>
      <person name="Rick McCallum" job="Producer" url="http://www.themoviedb.org/person/19801" department="Production"/>
      <person name="Alec Guinness" job="Actor" character="Obi-Wan Kenobi" url="http://www.themoviedb.org/person/12248" department="Actors"/>
    </people>
    <images>
      <image type="coverart" thumb="http://i1.themoviedb.org/posters/0a9/4bc90144017a3c57fe0000a9/star-wars-episode-iv-a-new-hope-cover.jpg" url="http://i3.themoviedb.org/posters/0a9/4bc90144017a3c57fe0000a9/star-wars-episode-iv-a-new-hope-original.jpg"/>
      <image type="coverart" thumb="http://i3.themoviedb.org/posters/08b/4bc90140017a3c57fe00008b/star-wars-episode-iv-a-new-hope-cover.jpg" url="http://i2.themoviedb.org/posters/08b/4bc90140017a3c57fe00008b/star-wars-episode-iv-a-new-hope-original.jpg"/>
      <image type="coverart" thumb="http://i3.themoviedb.org/posters/0a4/4bc90144017a3c57fe0000a4/star-wars-episode-iv-a-new-hope-cover.jpg" url="http://i1.themoviedb.org/posters/0a4/4bc90144017a3c57fe0000a4/star-wars-episode-iv-a-new-hope-original.jpg"/>
      <image type="fanart" thumb="http://i3.themoviedb.org/backdrops/06e/4bc9013a017a3c57fe00006e/star-wars-episode-iv-a-new-hope-thumb.jpg" url="http://i2.themoviedb.org/backdrops/06e/4bc9013a017a3c57fe00006e/star-wars-episode-iv-a-new-hope-original.jpg"/>
      <image type="fanart" thumb="http://i1.themoviedb.org/backdrops/062/4bc90139017a3c57fe000062/star-wars-episode-iv-a-new-hope-thumb.jpg" url="http://i3.themoviedb.org/backdrops/062/4bc90139017a3c57fe000062/star-wars-episode-iv-a-new-hope-original.jpg"/>
    </images>
  </item>
</metadata>

Television Example

<?xml version='1.0' encoding='UTF-8'?>
<metadata>
  <item>
    <title>Lost</title>
    <subtitle>What They Died For</subtitle>
    <language>en</language>
    <description>While Locke devises a new strategy, Jack's group searches for Desmond.</description>
    <season>6</season>
    <episode>16</episode>
    <certifications>
      <certification locale="us" name="TV-14"/>
    </certifications>
    <categories>
      <category type="genre" name="Action and Adventure"/>
      <category type="genre" name="Drama"/>
      <category type="genre" name="Science-Fiction"/>
    </categories>
    <studios>
      <studio name="ABC"/>
    </studios>
    <runtime>60</runtime>
    <inetref>73739</inetref>
    <tmsref>SH672362</tmsref>
    <userrating>8.0</userrating>
    <year>2010</year>
    <releasedate>2010-05-18</releasedate>
    <lastupdated>Sun, 30 May 2010 11:59:09 GMT</lastupdated>
    <homepage>http://thetvdb.com/?tab=episode&seriesid=73739&seasonid=66871&id=1685191</homepage>
    <people>
      <person job="Actor" name="Matthew Fox" character="Jack Shephard" url="http://www.thetvdb.com/banners/actors/27747.jpg" thumb="http://www.thetvdb.com/banners/_cache/actors/27747.jpg"/>
      <person job="Actor" name="Terry O'Quinn" character="John Locke" url="http://www.thetvdb.com/banners/actors/27745.jpg" thumb="http://www.thetvdb.com/banners/_cache/actors/27745.jpg"/>
      <person job="Actor" name="Evangeline Lilly" character="Kate Austen" url="http://www.thetvdb.com/banners/actors/27741.jpg" thumb="http://www.thetvdb.com/banners/_cache/actors/27741.jpg"/>
      <person job="Actor" name="Naveen Andrews" character="Sayid Jarrah" url="http://www.thetvdb.com/banners/actors/27749.jpg" thumb="http://www.thetvdb.com/banners/_cache/actors/27749.jpg"/>
      <person job="Actor" name="Daniel Dae Kim" character="Jin Kwon" url="http://www.thetvdb.com/banners/actors/27742.jpg" thumb="http://www.thetvdb.com/banners/_cache/actors/27742.jpg"/>
      <person job="Actor" name="Yunjin Kim" character="Sun Kwon" url="http://www.thetvdb.com/banners/actors/27740.jpg" thumb="http://www.thetvdb.com/banners/_cache/actors/27740.jpg"/>
      <person job="Actor" name="Josh Holloway" character="James 'Sawyer' Ford" url="http://www.thetvdb.com/banners/actors/27739.jpg" thumb="http://www.thetvdb.com/banners/_cache/actors/27739.jpg"/>
      <person job="Actor" name="Jorge Garcia" character="Hugo 'Hurley' Reyes" url="http://www.thetvdb.com/banners/actors/27737.jpg" thumb="http://www.thetvdb.com/banners/_cache/actors/27737.jpg"/>
      <person job="Guest Star" name="Michelle Rodriguez"/>
      <person job="Guest Star" name="Mira Furlan"/>
      <person job="Director" name="Paul Edwards"/>
      <person job="Author" name="Edward Kitsis"/>
      <person job="Author" name="Adam Horowitz"/>
      <person job="Author" name="Elizabeth Sarnoff"/>
    </people>
    <images>
      <image type="screenshot" url="http://www.thetvdb.com/banners/episodes/73739/1685191.jpg" thumb="http://www.thetvdb.com/banners/_cache/episodes/73739/1685191.jpg"/>
      <image type="coverart" url="http://www.thetvdb.com/banners/seasons/73739-6-5.jpg" thumb="http://www.thetvdb.com/banners/_cache/seasons/73739-6-5.jpg"/>
      <image type="coverart" url="http://www.thetvdb.com/banners/seasons/73739-6-4.jpg" thumb="http://www.thetvdb.com/banners/_cache/seasons/73739-6-4.jpg"/>
      <image type="fanart" url="http://www.thetvdb.com/banners/fanart/original/73739-43.jpg" thumb="http://www.thetvdb.com/banners/_cache/fanart/original/73739-43.jpg" width="1920" height="1080"/>
      <image type="fanart" url="http://www.thetvdb.com/banners/fanart/original/73739-34.jpg" thumb="http://www.thetvdb.com/banners/_cache/fanart/original/73739-34.jpg" width="1920" height="1080"/>
      <image type="fanart" url="http://www.thetvdb.com/banners/fanart/original/73739-21.jpg" thumb="http://www.thetvdb.com/banners/_cache/fanart/original/73739-21.jpg" width="1280" height="720"/>
      <image type="fanart" url="http://www.thetvdb.com/banners/fanart/original/73739-47.jpg" thumb="http://www.thetvdb.com/banners/_cache/fanart/original/73739-47.jpg" width="1920" height="1080"/>
      <image type="banner" url="http://www.thetvdb.com/banners/seasonswide/73739-6.jpg" thumb="http://www.thetvdb.com/banners/_cache/seasonswide/73739-6.jpg"/>
    </images>
  </item>
</metadata>

Recording Example

<metadata>
    <item>
        <title>My Strange Addiction</title>
        <subtitle>Eats Couch Cushion; Furry</subtitle>
        <season>1</season>
        <episode>7</episode>
        <description>Lauren can not go to a party or social event without wearing her fur suit; Adele has been eating couch cushions for twenty years.</description>
        <inetref>211391</inetref>
        <chanid>3752</chanid>
        <channum>752</channum>
        <chansign>TLCHD</chansign>
        <channame>The Learning Channel HD</channame>
        <recgroup>Default</recgroup>
        <playgroup>Default</playgroup>
        <seriesid>EP01364129</seriesid>
        <programid>EP013641290008</programid>
        <storagegroup>Default</storagegroup>
        <startts>Sat, 16 July 2011 18:30:00</startts>
        <endts>Sat, 16 July 2011 19:00:00</endts>
        <recstartts>Sat, 16 July 2011 18:29:00</recstartts>
        <recendts>Sat, 16 July 2011 19:00:00</recendts>
        <programflags>5246980</programflags>
        <audioproperties>1</audioproperties>
        <videoproperties>1</videoproperties>
        <subtitletype>1</subtitletype>
        <releasedate>2011-01-19</releasedate>
        <lastupdated>Sat, 16 July 2011 18:38:11</lastupdated>
        <runtime>31</runtime>
        <runtimesecs>1860</runtimesecs>
        <categories>
            <category type="genre" name="Health"/>
        </categories>
    </item>
</metadata>

Music Example

<metadata>
  <item>
    <title>Break Your Heart</title>
    <albumtitle>Rokstarr</albumtitle>
    <tracknum>1</tracknum>
    <language>en</language> 
    <description>Now I might not be the worst of the best but you gotta respect my honesty so let me break your heart but I don't think theres anybody as bomb as me so you can take this chance and everybody's gonna be wonderin' how you feel you might say this is Ludacris but Taio Cruz tell her how you feel.</description>
    <categories> 
        <category type="genre" name="Hip-hop" />
        <category type="genre" name="Pop" />
    </categories> 
    <studios> 
        <studio name="Island" /> 
    </studios> 
    <countries> 
        <country name="United Kingdom" /> 
        <country name="United States of America" /> 
    </countries> 
    <userrating>8.2</userrating>
    <year>2010</year>
    <lastupdated>Tue, 01 Jul 2008 11:37:47 GMT</lastupdated>
    <runtimesecs>203</runtimesecs>
    <inetref>2703d604</inetref>
    <people>
        <person name="Taio Cruz" job="Artist" character="" thumb="" url="" />
        <person name="Ludacris" job="Artist" character="" thumb="" url="" />
        <person name="Taio Cruz" job="Album Artist" character="" thumb="" url="" />
    </people>
    <images>
        <image type="coverart" thumb="" url="http://upload.wikimedia.org/wikipedia/en/f/fa/Taio_Cruz_Rokstarr.jpg" />
    </images>
  </item>
</metadata>

Game Example

<?xml version='1.0' encoding='UTF-8'?>
<metadata>
  <item>
    <language>en</language>
    <title>Pac-Man</title>
    <description>One of the most popular arcade games of all time, Pac-Man was first released in 1980 and has become a pop culture icon for that decade.</description>
    <categories>
      <category type="genre" name="Puzzle"/>
      <category type="genre" name="Strategy"/>
    </categories>
    <systems>
      <system>Game Boy Advance</system>
      <system>Wii Shop</system>
      <system>VIC-20</system>
      <system>Atari 8-bit</system>
      <system>NES</system>
      <system>Intellivision</system>
      <system>Neo Geo Pocket Color</system>
      <system>ZX Spectrum</system>
      <system>MSX</system>
      <system>Commodore 64</system>
      <system>PC</system>
      <system>Apple II</system>
      <system>Game Gear</system>
      <system>Game Boy</system>
      <system>Atari 5200</system>
      <system>TI-99/4A</system>
    </systems>
    <studios>
      <studio name="Atari"/>
      <studio name="Namco Bandai Games Inc."/>
      <studio name="SNK Playmore"/>
      <studio name="Thunder Mountain"/>
      <studio name="Bug-Byte Software Ltd."/>
    </studios>
    <releasedate>1980-05-22</releasedate>
    <lastupdated>Wed, 02 Jun 2010 11:44:18 GMT</lastupdated>
    <inetref>7624</inetref>
    <homepage>http://www.giantbomb.com/pac-man/61-7624/</homepage>
    <images>
      <image type="coverart" url="http://media.giantbomb.com/uploads/8/87209/1331111-pacman_box_super.png" thumb="http://media.giantbomb.com/uploads/8/87209/1331111-pacman_box_thumb.png"/>
      <image type="screenshot" url="http://media.giantbomb.com/uploads/1/14200/946257-pm2_super.jpg" thumb="http://media.giantbomb.com/uploads/1/14200/946257-pm2_thumb.jpg"/>
      <image type="screenshot" url="http://media.giantbomb.com/uploads/1/14200/946256-pm_super.jpg" thumb="http://media.giantbomb.com/uploads/1/14200/946256-pm_thumb.jpg"/>
      <image type="screenshot" url="http://media.giantbomb.com/uploads/1/15562/496458-pac_man__1981___atari__5_super.png" thumb="http://media.giantbomb.com/uploads/1/15562/496458-pac_man__1981___atari__5_thumb.png"/>
      <image type="screenshot" url="http://media.giantbomb.com/uploads/1/15562/496457-pac_man__1981___atari__4_super.png" thumb="http://media.giantbomb.com/uploads/1/15562/496457-pac_man__1981___atari__4_thumb.png"/>
    </images>
  </item>
</metadata>

Supported jobs

These are the strings to insert for the various jobs/professions. More can be added, but these are the currently supported jobs:

Movie/Video Jobs

  • "Actor"
  • "Guest Star"
  • "Author"
  • "Producer"
  • "Executive Producer"
  • "Director"
  • "Cinematographer"
  • "Composer"
  • "Editor"
  • "Casting"

Music Jobs

  • "Artist"
  • "Album Artist"

Supported image types

General Image Types

  • "Coverart"
  • "Fanart"
  • "Banner"
  • "Screenshot"

Music Image Types

  • "Poster"
  • "Back Cover"
  • "Inside Cover"
  • "CD Image"