NFO files/Episodes: Difference between revisions
CastagnaIT (talk | contribs) (More details for deprecated <year> tag) |
mNo edit summary |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 134: | Line 134: | ||
|<status></status> || No || No || || Not used | |<status></status> || No || No || || Not used | ||
|- | |- | ||
|< | |<nowiki><code></code></nowiki> || No || No || || Not used | ||
|- | |- | ||
|<aired></aired> || No || No || || Original air date of the episode<br> | |<aired></aired> || No || No || || Original air date of the episode<br> | ||
Line 144: | Line 144: | ||
|- | |- | ||
|<syntaxhighlight lang="xml"> | |<syntaxhighlight lang="xml"> | ||
<episodebookmark> | |||
<position></position> | |||
</episodebookmark> | |||
</syntaxhighlight> | </syntaxhighlight> | ||
|| No || No || || Episode Bookmark in seconds. ''See: [[Bookmarks_and_chapters|Episode Bookmarks]]''<br> | || No || No || || Episode Bookmark in seconds. ''See: [[Bookmarks_and_chapters|Episode Bookmarks]]''<br> | ||
Line 161: | Line 161: | ||
<durationinseconds></durationinseconds> | <durationinseconds></durationinseconds> | ||
<stereomode></stereomode> | <stereomode></stereomode> | ||
<hdrtype></hdrtype> | |||
</video> | </video> | ||
<audio> | <audio> | ||
Line 176: | Line 177: | ||
In v17 and prior, {{kodi}} would overwrite these values on first play of the file.<br> | In v17 and prior, {{kodi}} would overwrite these values on first play of the file.<br> | ||
In v18 that process was removed and values in these tags will remain.<ref>https://github.com/xbmc/xbmc/pull/16342</ref><br> | In v18 that process was removed and values in these tags will remain.<ref>https://github.com/xbmc/xbmc/pull/16342</ref><br> | ||
If ommitted, {{kodi}} will add runtime upon scanning | If ommitted, {{kodi}} will add runtime upon scanning<br><br> | ||
Accepted values for <hdrtype></hdrtype> are: | |||
* empty = SDR; | |||
* hdr10; | |||
* dolbyvision; | |||
* hlg | |||
|- | |- | ||
|<syntaxhighlight lang="xml"> | |<syntaxhighlight lang="xml"> | ||
Line 283: | Line 290: | ||
{{top}} | {{top}} | ||
{{updated| | {{updated|20}} | ||
[[Category:Karellen]] | [[Category:Karellen]] | ||
[[Category:Video library]] | [[Category:Video library]] |
Latest revision as of 09:59, 28 December 2023
NFO Contents |
---|
See also: Return to: |
NFO files | Episodes |
Introduction
Episodes must abide by the standard filenaming conventions even when using nfo files. Kodi determines the season and episode numbering (S01E01) from the episode filename, not from the NFO file.
One nfo file for each episode is required. This file holds information specific to that episode.
Most metadata contained in a Kodi exported NFO file is metadata inherited from the TV Show or are not used which is why the episode NFO template is relatively small.
nfo Name and Location
Regardless of what settings you have set for the source and scraper, Kodi will always search for and scan the nfo file first where available.
The episode nfo file is placed alongside each episode video file. The episode nfo filename is the same as the video filename but with the .nfo extension. See image below for examples.
nfo Tags
The following table lists the available XML tags in the episode nfo file. [1]
Yes in the Inherited column indicates a tag that uses data from the parent TV Show. These tags are created in the exported nfo file but are ignored on import so it is not possible to change this data at the episode level.
Three XML tags are required and are indicated in the table below. All other tags are optional. Of course the less tags used, the less information scanned into the library.
NFO (xml) Tag | Required | Multiple | Inherited | Notes |
---|---|---|---|---|
<episodedetails></episodedetails> | Yes | No/Yes | The top level parent tag for the nfo file. All other tags must be contained within these two tags Yes - When creating multi-episode nfo files. See next section. | |
<title></title> | Yes | No | The title for the episode | |
<originaltitle></originaltitle> | No | No | Yes | Inherited from TV show |
<showtitle></showtitle> | No | No | Yes | Inherited from TV show |
<ratings> <rating name="" max="10" default=""> <value></value> <votes></votes> </rating> </ratings> |
No | No | default="true" default="false"
name="identifier". Do not use "default". Examples of identifier include...
Example of complete entry...
| |
<userrating></userrating> | No | No | Personal rating set by the user | |
<top250></top250> | No | No | Not used | |
<season></season> | No | No/Yes | Season number is read from filename in all cases Not required for single nfo files | |
<episode></episode> | No | No/Yes | Episode number is read from filename in all cases Not required for single nfo files | |
<displayepisode></displayepisode> | No | No | Used to place Specials episodes in the correct episode order | |
<displayseason></displayseason> | No | No | Used to place Specials episodes in the correct season | |
<outline></outline> | No | No | Not used | |
<plot></plot> | No | No | A description of the episode | |
<tagline></tagline> | No | No | Short slogan of the episode. No skins use this. | |
<runtime></runtime> | No | No | Minutes only. If ommitted, Kodi will add runtime upon scanning of the video file | |
<thumb aspect="thumb" preview=""></thumb> | No | Yes | Path to episode artwork. Not needed when using local artwork | |
<mpaa></mpaa> | No | No | Yes | Inherited from TV show |
<playcount></playcount> | No | No | Number of times episode has been played. See... Import-Export | |
<lastplayed></lastplayed> | No | No | Date last played Format as yyyy-mm-dd | |
<id></id> | No | No | The default ID. Do not use. It is a deprecated Kodi generated tag. See next item. | |
<uniqueid type="" default=""></uniqueid> | Yes | Yes | The ID from the scraper site. type="" Identifier of the ID. Do not use "default". Examples of identifier include...
default="true" default="false"
Example of complete entry...
| |
<genre></genre> | No | Yes | Yes | Inherited from TV show |
<credits></credits> | No | Yes | Field for writers. | |
<director></director> | No | Yes | Director | |
<premiered></premiered> | No | No | Yes | Inherited from TV show Format as yyyy-mm-dd |
<year></year> | No | No | Yes | Inherited from TV show Note: Kodi v17: Tag deprecated, use <premiered> tag instead. Note: Kodi v20: Use <premiered> tag only. |
<status></status> | No | No | Not used | |
<code></code> | No | No | Not used | |
<aired></aired> | No | No | Original air date of the episode Format as yyyy-mm-dd | |
<studio></studio> | No | Yes | Yes | Production studio. Inherited from TV Show |
<trailer></trailer> | No | No | Not used | |
<episodebookmark> <position></position> </episodebookmark> |
No | No | Episode Bookmark in seconds. See: Episode Bookmarks Not used for Import | |
<fileinfo> <streamdetails> <video> <codec></codec> <aspect></aspect> <width></width> <height></height> <durationinseconds></durationinseconds> <stereomode></stereomode> <hdrtype></hdrtype> </video> <audio> <codec></codec> <language></language> <channels></channels> </audio> <subtitle> <language></language> </subtitle> </streamdetails> </fileinfo> |
No | Yes | Multiple entries of <audio> and <subtitles> accepted In v17 and prior, Kodi would overwrite these values on first play of the file. Accepted values for <hdrtype></hdrtype> are:
| |
<actor> <name></name> <role></role> <order></order> <thumb></thumb> </actor> |
No | Yes | The <order> tag determines where in the list the actor will appear. 0 = first in the list
Supports "clear" attribute | |
<resume> <position></position> <total></total> </resume> |
No | No | Set the resume position See... Import-Export | |
<dateadded></dateadded> | No | No | mTime of the playable video file. Can be altered in advancedsettings.xml See... Advancedsettings.xml#videolibrary |
Multi-Episode Files
There may be instances where a video file contains two or more episodes. This is common for ISO files.
Multi-episode video files still use a single nfo file. The metadata for each episode is stacked in the single nfo file. Below is an example of an abbreviated multi-episode nfo file containing 3 episodes.
One difference between the single and multi nfo file is that the <season></season> and <episode></episode> tags are required for each episode in the multi nfo file. Kodi still requires the filename to contain the season and episode numbering, but it also requires these additional tags so it can match the metadata to the correct episode. The metadata for each episode must be in correct numerical order.
For correct naming of the video file, nfo file and artwork thumb, see: Naming Multi-Episode Files
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> <episodedetails> <!-- metadata for first episode--> <title>Episode 1</title> <userrating></userrating> <plot></plot> <season>1</season> <episode>1</episode> <uniqueid type="" default="true"></uniqueid> <credits></credits> <director></director> <aired></aired> <actor> <name></name> <role></role> <order></order> <thumb></thumb> </actor> </episodedetails> <episodedetails> <!-- metadata for second episode--> <title>Episode 2</title> <userrating></userrating> <plot></plot> <season>1</season> <episode>2</episode> <uniqueid type="" default="true"></uniqueid> <credits></credits> <director></director> <aired></aired> <actor> <name></name> <role></role> <order></order> <thumb></thumb> </actor> </episodedetails> <episodedetails> <!-- metadata for third episode--> <title>Episode 3</title> <userrating></userrating> <plot></plot> <season>1</season> <episode>3</episode> <uniqueid type="" default="true"></uniqueid> <credits></credits> <director></director> <aired></aired> <actor> <name></name> <role></role> <order></order> <thumb></thumb> </actor> </episodedetails>
References
Return to top |
---|