Difference between revisions of "NFO files/Templates"

From Official Kodi Wiki
Jump to navigation Jump to search
(First creation)
 
m
 
(5 intermediate revisions by the same user not shown)
Line 182: Line 182:
     <userrating>0</userrating>
     <userrating>0</userrating>
     <plot></plot>
     <plot></plot>
    <runtime></runtime>
     <mpaa></mpaa>
     <mpaa></mpaa>
     <uniqueid type="" default="true"></uniqueid>
     <uniqueid type="" default="true"></uniqueid> <!-- add a value to type="" eg imdb, tmdb, home, sport, docu, see sample below -->
     <genre></genre>
     <genre></genre>
     <tag></tag>
     <tag></tag>
Line 196: Line 195:
         <role></role>
         <role></role>
         <order></order>
         <order></order>
        <thumb></thumb>
     </actor>
     </actor>
</movie>
</movie>
Line 208: Line 206:
     <title>Zack Snyder&apos;s Justice League</title>
     <title>Zack Snyder&apos;s Justice League</title>
     <originaltitle>Zack Snyder&apos;s Justice League</originaltitle>
     <originaltitle>Zack Snyder&apos;s Justice League</originaltitle>
<sorttitle>Justice League 2</sorttitle>
    <sorttitle>Justice League 2</sorttitle>
     <ratings>
     <ratings>
         <rating name="imdb" max="10" default="true">
         <rating name="imdb" max="10" default="true">
Line 247: Line 245:
     <uniqueid type="tmdb" default="true">791373</uniqueid>
     <uniqueid type="tmdb" default="true">791373</uniqueid>
     <genre>SuperHero</genre>
     <genre>SuperHero</genre>
<tag>TV Recording</tag>
    <tag>TV Recording</tag>
    <set>
    <set>
         <name>Justice League Collection</name>
         <name>Justice League Collection</name>
         <overview>Based on the DC Comics superhero team</overview>
         <overview>Based on the DC Comics superhero team</overview>
Line 406: Line 404:
     <userrating></userrating>
     <userrating></userrating>
     <mpaa></mpaa>
     <mpaa></mpaa>
     <uniqueid type="" default="true"></uniqueid>
     <uniqueid type="" default="true"></uniqueid>  <!-- add a value to type="" eg imdb, tmdb, home, sport, docu, see sample below -->
     <genre></genre>
     <genre></genre>
     <premiered></premiered> <!-- yyyy-mm-dd -->
     <premiered></premiered> <!-- yyyy-mm-dd -->
Line 415: Line 413:
         <role></role>
         <role></role>
         <order></order>
         <order></order>
        <thumb></thumb>
     </actor>
     </actor>
     <namedseason number="1"></namedseason>
     <namedseason number="1"></namedseason>
Line 507: Line 504:
<episodedetails>
<episodedetails>
     <title></title>
     <title></title>
    <season>1</season>    <!-- Required for multi-episode files only -->
    <episode>2</episode>  <!-- Required for multi-episode files only -->
     <userrating></userrating>
     <userrating></userrating>
     <plot></plot>
     <plot></plot>
     <uniqueid type="" default="true"></uniqueid>
     <uniqueid type="" default="true"></uniqueid>  <!-- add a value to type="" eg imdb, tmdb, home, sport, docu, see sample below -->
     <credits></credits>
     <credits></credits>
     <director></director>
     <director></director>
     <aired></aired> <!-- yyyy-mm-dd -->
     <aired></aired>       <!-- yyyy-mm-dd -->
     <actor>
     <actor>
         <name></name>
         <name></name>
         <role></role>
         <role></role>
         <order></order>
         <order></order>
        <thumb></thumb>
     </actor>
     </actor>
</episodedetails>
</episodedetails>
Line 612: Line 610:
</syntaxhighlight>
</syntaxhighlight>
{{collapse bottom}}
{{collapse bottom}}
{{collapse top| SAMPLE - multi-episode.nfo file     }}
<syntaxhighlight lang="xml">
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<episodedetails>                                          <!--First Episode -->
    <title>Grieve No More</title>
    <showtitle>Carnival Row</showtitle>
    <ratings>
        <rating name="imdb" max="10" default="true">
            <value>7.800000</value>
            <votes>1746</votes>
        </rating>
        <rating name="tmdb" max="10">
            <value>7.700000</value>
            <votes>15</votes>
        </rating>
    </ratings>
    <userrating>0</userrating>
    <top250>0</top250>
    <season>1</season>
    <episode>5</episode>
    <displayseason>-1</displayseason>
    <displayepisode>-1</displayepisode>
    <outline></outline>
    <plot>Philo consults a Haruspex in an effort to find clues about the killer. Vignette grows closer with her newfound family. Upon Jonah’s return home, his parents cast a more watchful eye over him as a new player makes a splash in Parliament. Imogen brings Agreus into her circle.</plot>
    <tagline></tagline>
    <runtime>0</runtime>
    <thumb spoof="" cache="" aspect="thumb" preview="https://image.tmdb.org/t/p/w780/mcVI7yQjXmreUQcyxRJ3dFTFszI.jpg">https://image.tmdb.org/t/p/original/mcVI7yQjXmreUQcyxRJ3dFTFszI.jpg</thumb>
    <thumb spoof="" cache="" aspect="thumb" preview="https://image.tmdb.org/t/p/w780/6Mf23JoPQsj2deyvrKMCZEvgyB4.jpg">https://image.tmdb.org/t/p/original/6Mf23JoPQsj2deyvrKMCZEvgyB4.jpg</thumb>
    <mpaa>Australia:TV-MA</mpaa>
    <playcount>0</playcount>
    <lastplayed></lastplayed>
    <id>1906721</id>
    <uniqueid type="imdb">tt6599052</uniqueid>
    <uniqueid type="tmdb" default="true">1906721</uniqueid>
    <uniqueid type="tvdb">7221242</uniqueid>
    <genre>Sci-Fi &amp; Fantasy</genre>
    <credits>Ian Deitchman</credits>
    <credits>Kristin Rusk Robinson</credits>
    <director>Andy Goddard</director>
    <premiered>2019-08-29</premiered>
    <year>2019</year>
    <status></status>
    <code></code>
    <aired>2019-08-29</aired>
    <studio>Amazon</studio>
    <trailer></trailer>
    <actor>
        <name>Orlando Bloom</name>
        <role>Rycroft &quot;Philo&quot; Philostrate</role>
        <order>0</order>
        <thumb>https://image.tmdb.org/t/p/original/pulwUR0lZ8IWwXUCRXCnyWfYvNL.jpg</thumb>
    </actor>
    <actor>
        <name>Cara Delevingne</name>
        <role>Vignette Stonemoss</role>
        <order>1</order>
        <thumb>https://image.tmdb.org/t/p/original/izZ8IbsIjNpjZ5S0HIYreVwVRzn.jpg</thumb>
    </actor>
    <resume>
        <position>0.000000</position>
        <total>0.000000</total>
    </resume>
    <dateadded>2021-12-30 15:41:30</dateadded>
</episodedetails>
<episodedetails>                                          <!--Second Episode -->
    <title>Unaccompanied Fae</title>
    <showtitle>Carnival Row</showtitle>
    <ratings>
        <rating name="imdb" max="10" default="true">
            <value>7.900000</value>
            <votes>1627</votes>
        </rating>
        <rating name="tmdb" max="10">
            <value>7.500000</value>
            <votes>15</votes>
        </rating>
    </ratings>
    <userrating>0</userrating>
    <top250>0</top250>
    <season>1</season>
    <episode>6</episode>
    <displayseason>-1</displayseason>
    <displayepisode>-1</displayepisode>
    <outline></outline>
    <plot>The pieces of the puzzle start to come together for Philo. Vignette finds home in a place she never expected. Jonah sneaks off to see someone he shouldn’t. Imogen and Agreus step out together in public.</plot>
    <tagline></tagline>
    <runtime>0</runtime>
    <thumb spoof="" cache="" aspect="thumb" preview="https://image.tmdb.org/t/p/w780/y6A3ZXbSBoc3HwBj1J3KWWvrrzW.jpg">https://image.tmdb.org/t/p/original/y6A3ZXbSBoc3HwBj1J3KWWvrrzW.jpg</thumb>
    <thumb spoof="" cache="" aspect="thumb" preview="https://image.tmdb.org/t/p/w780/7gZBOfmfAxkUpd4jL9WS6p78EoH.jpg">https://image.tmdb.org/t/p/original/7gZBOfmfAxkUpd4jL9WS6p78EoH.jpg</thumb>
    <mpaa>Australia:TV-MA</mpaa>
    <playcount>0</playcount>
    <lastplayed></lastplayed>
    <id>1906722</id>
    <uniqueid type="imdb">tt6599058</uniqueid>
    <uniqueid type="tmdb" default="true">1906722</uniqueid>
    <uniqueid type="tvdb">7221243</uniqueid>
    <genre>Sci-Fi &amp; Fantasy</genre>
    <credits>Stephanie K. Smith</credits>
    <director>Andy Goddard</director>
    <premiered>2019-08-29</premiered>
    <year>2019</year>
    <status></status>
    <code></code>
    <aired>2019-08-29</aired>
    <studio>Amazon</studio>
    <trailer></trailer>
    <actor>
        <name>Leanne Best</name>
        <role>Madame Moira</role>
        <order>4</order>
        <thumb>https://image.tmdb.org/t/p/original/3GJSWDGuINZjQEgz06wlBELoJCK.jpg</thumb>
    </actor>
    <actor>
        <name>Issy Stewart</name>
        <role>Louisa Pembroke</role>
        <order>6</order>
        <thumb>https://image.tmdb.org/t/p/original/2Ektp4uatPA6gZj32xjjPWKZBKm.jpg</thumb>
    </actor>
    <resume>
        <position>0.000000</position>
        <total>0.000000</total>
    </resume>
    <dateadded>2021-12-30 15:41:30</dateadded>
</episodedetails>
<episodedetails>                                          <!--Third Episode -->
    <title>The World to Come</title>
    <showtitle>Carnival Row</showtitle>
    <ratings>
        <rating name="imdb" max="10" default="true">
            <value>8.000000</value>
            <votes>1659</votes>
        </rating>
        <rating name="tmdb" max="10">
            <value>7.700000</value>
            <votes>15</votes>
        </rating>
    </ratings>
    <userrating>0</userrating>
    <top250>0</top250>
    <season>1</season>
    <episode>7</episode>
    <displayseason>-1</displayseason>
    <displayepisode>-1</displayepisode>
    <outline></outline>
    <plot>Because he withheld evidence from his fellow detectives, Philo is accused of being the man behind the string of murders and is thrown in jail. There, he finds some unexpected help from Vignette. Elsewhere, Ezra takes exception to Imogen’s relationship with Agreus. Sophie offers Jonah a deal.</plot>
    <tagline></tagline>
    <runtime>0</runtime>
    <thumb spoof="" cache="" aspect="thumb" preview="https://image.tmdb.org/t/p/w780/ov05qVU8JVZ66BQK457MLMg7Wfu.jpg">https://image.tmdb.org/t/p/original/ov05qVU8JVZ66BQK457MLMg7Wfu.jpg</thumb>
    <mpaa>Australia:TV-MA</mpaa>
    <playcount>0</playcount>
    <lastplayed></lastplayed>
    <id>1906725</id>
    <uniqueid type="imdb">tt7435152</uniqueid>
    <uniqueid type="tmdb" default="true">1906725</uniqueid>
    <uniqueid type="tvdb">7221244</uniqueid>
    <genre>Sci-Fi &amp; Fantasy</genre>
    <credits>Peter Cameron</credits>
    <credits>René Echevarria</credits>
    <director>Jon Amiel</director>
    <premiered>2019-08-29</premiered>
    <year>2019</year>
    <status></status>
    <code></code>
    <aired>2019-08-29</aired>
    <studio>Amazon</studio>
    <trailer></trailer>
    <actor>
        <name>Jonathan Daniel Brown</name>
        <role>Ticket Clerk</role>
        <order>48</order>
        <thumb>https://image.tmdb.org/t/p/original/xDsPJNDnrn3N0jelVrxdOchzhoo.jpg</thumb>
    </actor>
    <actor>
        <name>John Poston</name>
        <role>Cell Block Guard</role>
        <order>49</order>
        <thumb></thumb>
    </actor>
    <resume>
        <position>0.000000</position>
        <total>0.000000</total>
    </resume>
    <dateadded>2021-12-30 15:41:30</dateadded>
</episodedetails>
</syntaxhighlight>
{{collapse bottom}}





Latest revision as of 08:29, 18 April 2022

NFO Contents

NFO Main Page


See also:


Return to:

Home icon grey.png   ▶ NFO files ▶ Templates


1 Introduction

Basic templates as a starting point to create your own NFO files.

These are simple NFO templates with the following changes from a full nfo file.

  • System generated tags are removed
  • Assumes local artwork is being used
  • Assumes no online information is available, so items like Ratings have no relevance
  • This will be the first time scanned into library so watched status and play counts are not required.

If any of these removed tags are required, simply add back the appropriate tags. If unsure, refer to the appropriate sample nfo file in each section.


2 album.nfo Template

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<album>
    <title></title>
    <genre></genre>
    <style></style>
    <mood></mood>
    <theme></theme> 
    <compilation></compilation> <!-- true / false -->
    <boxset>false</boxset> <!-- true / false -->
    <review></review>
    <type></type>
    <releasedate></releasedate> <!-- yyyy-mm-dd -->
    <label></label>
    <rating max="10"></rating>
    <userrating max="10"></userrating>
    <votes></votes>
    <year></year>
    <albumArtistCredits>
        <artist></artist>
        <musicBrainzArtistID></musicBrainzArtistID>
    </albumArtistCredits>
</album>



3 artist.nfo Template

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<artist>
    <name></name>
    <sortname></sortname>
    <type></type>
    <gender></gender>
    <disambiguation></disambiguation>
    <genre></genre>
    <style></style>
    <mood></mood>
    <yearsactive></yearsactive> 
    <born></born>
    <formed></formed>
    <biography></biography>
    <died></died>
    <disbanded></disbanded>
</artist>



4 Movie Template

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<movie>
    <title></title>
    <originaltitle></originaltitle>
    <userrating>0</userrating>
    <plot></plot>
    <mpaa></mpaa>
    <uniqueid type="" default="true"></uniqueid> <!-- add a value to type="" eg imdb, tmdb, home, sport, docu, see sample below -->
    <genre></genre>
    <tag></tag>
    <country></country>
    <credits></credits>
    <director></director>
    <premiered></premiered> <!-- yyyy-mm-dd -->
    <studio></studio>
    <actor>
        <name></name>
        <role></role>
        <order></order>
    </actor>
</movie>



Naming the movie NFO file
<VideoFileName>.nfo
  • NFO Files are named the same as the video file except with the .nfo extension.
  • We recommend using this filename format to name nfo files.
movie.nfo
Kodi may also scan nfo files named movie.nfo. To use this name, the setting Movies are in separate folders that match the movie title must be Enabled in the Set Content Screen
  • If the above setting is not enabled, Kodi will ignore the movie.nfo. If the <VideoFileName>.nfo file is available, Kodi will scan this one instead, otherwise an online scrape will be performed if a valid scraper is set for the Source.
  • If you use movie.nfo and later Export your library to Separate Files, Kodi will still create the nfo file in the <VideoFileName>.nfo format and two nfo files will exist. If a Refresh or rescan is run in future, and the above setting is still enabled, the <VideoFileName>.nfo file will be ignored in favour of movie.nfo, which means any changes you may have made to the library entry (play counts, watched status etc) will not be re-scanned back into the library.
  • We recommend using the <VideoFileName>.nfo format for nfo files to avoid the above traps.


5 Music Video Template

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<musicvideo>
    <title></title>
    <userrating></userrating>
    <track></track>
    <album></album>
    <plot></plot>
    <genre></genre>
    <director></director>
    <premiered></premiered>
    <studio></studio>
    <artist></artist>
</musicvideo>



6 tvshow.nfo Template

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<tvshow>
    <title></title>
    <plot></plot>
    <userrating></userrating>
    <mpaa></mpaa>
    <uniqueid type="" default="true"></uniqueid>  <!-- add a value to type="" eg imdb, tmdb, home, sport, docu, see sample below -->
    <genre></genre>
    <premiered></premiered> <!-- yyyy-mm-dd -->
    <status></status>
    <studio></studio>
    <actor>
        <name></name>
        <role></role>
        <order></order>
    </actor>
    <namedseason number="1"></namedseason>
</tvshow>



7 Episode Template

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<episodedetails>
    <title></title>
    <season>1</season>    <!-- Required for multi-episode files only -->
    <episode>2</episode>  <!-- Required for multi-episode files only -->
    <userrating></userrating>
    <plot></plot>
    <uniqueid type="" default="true"></uniqueid>  <!-- add a value to type="" eg imdb, tmdb, home, sport, docu, see sample below -->
    <credits></credits>
    <director></director>
    <aired></aired>       <!-- yyyy-mm-dd -->
    <actor>
        <name></name>
        <role></role>
        <order></order>
    </actor>
</episodedetails>





Return to top