Difference between revisions of "NFO files/TV shows"

From Official Kodi Wiki
Jump to: navigation, search
(Video .nfo Files containing XML data)
Line 7: Line 7:
  
 
<source lang="xml">
 
<source lang="xml">
 +
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
 
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
 
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
 
<tvshow>
 
<tvshow>
     <title>MythBusters</title>
+
     <title>House</title>
     <rating>9.300001</rating>
+
    <showtitle>House</showtitle>
 +
     <rating>9.200000</rating>
 +
    <epbookmark>0.000000</epbookmark>
 
     <year>0</year>
 
     <year>0</year>
 
     <top250>0</top250>
 
     <top250>0</top250>
 
     <season>-1</season>
 
     <season>-1</season>
     <episode>143</episode>
+
     <episode>176</episode>
 +
    <uniqueid></uniqueid>
 
     <displayseason>-1</displayseason>
 
     <displayseason>-1</displayseason>
 
     <displayepisode>-1</displayepisode>
 
     <displayepisode>-1</displayepisode>
 
     <votes></votes>
 
     <votes></votes>
 
     <outline></outline>
 
     <outline></outline>
     <plot>So exactly how hard is it to find a needle in a haystack, anyway? And can water dripping on your forehead really drive you nuts? Those are the kinds of questions, myths and urban legends that are put to the test in this humorous series to find out which ones hold water (and keep it from dripping on your forehead and driving you insane).</plot>
+
     <plot>Go deeper into the medical mysteries of House, TV&apos;s most compelling drama. Hugh Laurie stars as the brilliant but sarcastic Dr. Gregory House, a maverick physician who is devoid of bedside manner. While his behavior can border on antisocial, Dr. House thrives on the challenge of solving the medical puzzles that other doctors give up on. Together with his hand-picked team of young medical experts, he&apos;ll do whatever it takes in the race against the clock to solve the case.</plot>
 
     <tagline></tagline>
 
     <tagline></tagline>
     <runtime></runtime>
+
     <runtime>0</runtime>
    <thumb>http://thetvdb.com/banners/graphical/73388-g3.jpg</thumb>
+
     <mpaa>TV-14</mpaa>
    <thumb>http://thetvdb.com/banners/graphical/73388-g2.jpg</thumb>
+
     <playcount>0</playcount>
    <thumb type="season" season="1">http://thetvdb.com/banners/seasons/73388-1.jpg</thumb>
+
     <lastplayed>1969-12-31</lastplayed>
    <thumb type="season" season="0">http://thetvdb.com/banners/seasons/73388-0.jpg</thumb>
 
    <thumb type="season" season="2">http://thetvdb.com/banners/seasons/73388-2.jpg</thumb>
 
    <thumb type="season" season="-1">http://thetvdb.com/banners/posters/73388-1.jpg</thumb>
 
    <fanart url="http://thetvdb.com/banners/">
 
        <thumb dim="1920x1080" colors="|183,185,161|51,51,51|206,205,185|" preview="_cache/fanart/original/73388-6.jpg">fanart/original/73388-6.jpg</thumb>
 
        <thumb dim="1280x720" colors="|255,255,240|101,141,117|129,132,123|" preview="_cache/fanart/original/73388-1.jpg">fanart/original/73388-1.jpg</thumb>
 
    </fanart>
 
     <mpaa>TV-PG</mpaa>
 
     <playcount>0</playcount><!-- setting this to > 0 will mark the movie as watched if the "importwatchedstate" flag is set in advancedsettings.xml -->
 
     <lastplayed></lastplayed>
 
 
     <episodeguide>
 
     <episodeguide>
         <url cache="73388.xml">http://www.thetvdb.com/api/1D62F2F90030C444/series/73388/all/en.zip</url>
+
         <url cache="73255.xml">http://www.thetvdb.com/api/1D62F2F90030C444/series/73255/all/en.zip</url>
 
     </episodeguide>
 
     </episodeguide>
     <id>73388</id>
+
     <id>73255</id>
     <genre>Reality</genre>
+
     <genre>Comedy</genre>
 +
    <genre>Drama</genre>
 
     <set></set>
 
     <set></set>
    <credits></credits>
+
     <premiered>2004-11-16</premiered>
    <director></director>
 
     <premiered>2003-01-23</premiered>
 
 
     <status></status>
 
     <status></status>
 
     <code></code>
 
     <code></code>
     <aired></aired>
+
     <aired>1969-12-31</aired>
     <studio>Discovery</studio>
+
     <studio>FOX</studio>
 
     <trailer></trailer>
 
     <trailer></trailer>
 
     <actor>
 
     <actor>
         <name>Robert Lee</name>
+
         <name>Hugh Laurie</name>
         <role>USA Narrator</role>
+
         <role>Dr. Gregory House</role>
         <thumb></thumb>
+
         <thumb>http://thetvdb.com/banners/actors/23839.jpg</thumb>
 
     </actor>
 
     </actor>
 
     <actor>
 
     <actor>
         <name>Adam Savage</name>
+
         <name>Robert Sean Leonard</name>
         <role></role>
+
         <role>Dr. James Wilson</role>
         <thumb></thumb>
+
         <thumb>http://thetvdb.com/banners/actors/23842.jpg</thumb>
 
     </actor>
 
     </actor>
    <artist></artist>
 
</tvshow>
 
 
</source>
 
</source>
  

Revision as of 12:32, 29 July 2013

Home icon grey.png   ▶ General topics ▶ Videos ▶ Management ▶ NFO files ▶ TV shows

1 Video .nfo Files containing XML data

1. The *.nfo file is an XML file containing the data for inclusion in the library.

The filename of the NFO should be tvshow.nfo (Exact, NOT the name of the actual TV show) and it should be in the root folder of the TV show.
The .nfo .xml file may contain a valid <episodeguideurl> to allow online updates. If not, only episodes with .nfo files will be added.

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<tvshow>
    <title>House</title>
    <showtitle>House</showtitle>
    <rating>9.200000</rating>
    <epbookmark>0.000000</epbookmark>
    <year>0</year>
    <top250>0</top250>
    <season>-1</season>
    <episode>176</episode>
    <uniqueid></uniqueid>
    <displayseason>-1</displayseason>
    <displayepisode>-1</displayepisode>
    <votes></votes>
    <outline></outline>
    <plot>Go deeper into the medical mysteries of House, TV&apos;s most compelling drama. Hugh Laurie stars as the brilliant but sarcastic Dr. Gregory House, a maverick physician who is devoid of bedside manner. While his behavior can border on antisocial, Dr. House thrives on the challenge of solving the medical puzzles that other doctors give up on. Together with his hand-picked team of young medical experts, he&apos;ll do whatever it takes in the race against the clock to solve the case.</plot>
    <tagline></tagline>
    <runtime>0</runtime>
    <mpaa>TV-14</mpaa>
    <playcount>0</playcount>
    <lastplayed>1969-12-31</lastplayed>
    <episodeguide>
        <url cache="73255.xml">http://www.thetvdb.com/api/1D62F2F90030C444/series/73255/all/en.zip</url>
    </episodeguide>
    <id>73255</id>
    <genre>Comedy</genre>
    <genre>Drama</genre>
    <set></set>
    <premiered>2004-11-16</premiered>
    <status></status>
    <code></code>
    <aired>1969-12-31</aired>
    <studio>FOX</studio>
    <trailer></trailer>
    <actor>
        <name>Hugh Laurie</name>
        <role>Dr. Gregory House</role>
        <thumb>http://thetvdb.com/banners/actors/23839.jpg</thumb>
    </actor>
    <actor>
        <name>Robert Sean Leonard</name>
        <role>Dr. James Wilson</role>
        <thumb>http://thetvdb.com/banners/actors/23842.jpg</thumb>
    </actor>

2 Video .nfo files containing a URL

2. The *.nfo file contains a URL of the information page to scrape. The file can include other information (i.e. scene info), XBMC will scan through it and use a relevant URL if a match is found.

The scraper tries to match URL's to all scrapers of the content type a directory is set to. e.g. if you set the content type to movies, all movie scrapers check .nfo files for a matching URL. This means that .nfo files override the scraper setting. I.e. a directory is set to use the IMDB scraper but you have a German movie in it. Simply create an .nfo for that movie with the OFDB link in it and you are sorted!


Filename should be tvshow.nfo (Exact, NOT the name of the TV show) in the root folder of the TV Show that points to a show on TheTVDB.com.

http://thetvdb.com/index.php?tab=series&id=73545