NFO files/Templates

From Official Kodi Wiki
Jump to: navigation, search
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

 1 <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
 2 <movie>
 3     <title></title>
 4     <originaltitle></originaltitle>
 5     <userrating>0</userrating>
 6     <plot></plot>
 7     <mpaa></mpaa>
 8     <uniqueid type="" default="true"></uniqueid>
 9     <genre></genre>
10     <tag></tag>
11     <country></country>
12     <credits></credits>
13     <director></director>
14     <premiered></premiered> <!-- yyyy-mm-dd -->
15     <studio></studio>
16     <actor>
17         <name></name>
18         <role></role>
19         <order></order>
20         <thumb></thumb>
21     </actor>
22 </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

 1 <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
 2 <musicvideo>
 3     <title></title>
 4     <userrating></userrating>
 5     <track></track>
 6     <album></album>
 7     <plot></plot>
 8     <genre></genre>
 9     <director></director>
10     <premiered></premiered>
11     <studio></studio>
12     <artist></artist>
13 </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>
    <genre></genre>
    <premiered></premiered> <!-- yyyy-mm-dd -->
    <status></status>
    <studio></studio>
    <actor>
        <name></name>
        <role></role>
        <order></order>
        <thumb></thumb>
    </actor>
    <namedseason number="1"></namedseason>
</tvshow>



7 Episode Template

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<episodedetails>
    <title></title>
    <userrating></userrating>
    <plot></plot>
    <uniqueid type="" default="true"></uniqueid>
    <credits></credits>
    <director></director>
    <aired></aired> <!-- yyyy-mm-dd -->
    <actor>
        <name></name>
        <role></role>
        <order></order>
        <thumb></thumb>
    </actor>
</episodedetails>



Return to top