NFO files: Difference between revisions

From Official Kodi Wiki
Jump to navigation Jump to search
No edit summary
(Updated for v19)
(34 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{{mininav|[[Video library]] {{l2|[[Music library]]}}|[[Video management|Management]] <br />&nbsp; }}
{{NFO_content}}
{{see also|Set content and scan}}
{{mininav|[[Video library]] {{l2| [[Music library]] }} }}
<section begin="intro" />NFO files can be used to provide data for a video file in XBMC or influence the search behaviour of scrapers. In particular they are helpful if the information fetched from a web site does not match the video file, or data for that particular file does not exist.<section end="intro" />
__NOTOC__


By default at the time of scanning, if the media folder contains a correctly named *.nfo file, then XBMC will load the *.nfo file and attempt to either, in the case of it containing XML data get the meta-data directly from the .nfo file or will parse it for a direct URL to the scraper info page. This allows XBMC to skip its normal lookup and/or search procedures; this is useful if a file's information is not available on any of the scraper sites or if the file-matching criteria fail for the particular file.
= Introduction =
<section begin="intro" />NFO files are used to populate the music and video library using locally stored information. They are helpful if data for your particular title does not exist, such as for home movies and sporting events. A Parsing and Combination NFO file can be used to control the search behaviour of scrapers when problematic and ambiguous titles prevent your preferred title from being scraped.<section end="intro" />


'''nfo''' is a filename extension - ''mymovie.nfo'' and the contents of the file are written in [http://en.wikipedia.org/wiki/XML XML]. The file itself does nothing except hold information and is basically a text document with XML tags inserted around the information.


XBMC also contains a Local-NFO-only mode for when you add videos to the library, but this mode is only required if you want to prevent online-lookups for videos that lack NFO files. See '''[[Set content and scan#Local NFO only options]]''' for more information on this Local-NFO-only mode.
'''All NFO files are saved with UTF-8 encoding''' which is standard on most operating systems.


== Getting an .NFO file ==
NFO files are also used as a method of exporting the library for various reasons, including backup. '''''See: [[Import-export_library | Import & Export]]'''''
Various options:


=== .NFO exists ===
The order of importing metadata into the {{kodi}} library is:
If you have a movie with an .NFO file already, continue with the next section.  
#nfo file. If no nfo file exists then
#Depending on your Source scraper settings:
#* A scraper is set- Scraper will locate online metadata, or
#* Local Info Only is set- Nothing will be scanned or scraped.


=== Create an .NFO file (recommended) ===
* This is recommended to have .NFO files only where needed.
* Create a text file with a text editor (e.g. notepad) with '''exactly the same name as the movie file''' (if all movies in one dir; in case each movie has its own folder, place the '''.nfo''' file there and the name does not matter). The extension has to be '''.nfo''' (e.g. ''Hellboy (2004) English.DTS.1080p.x264.nfo'').


=== Export .NFO files for all movies ===
* First you need to have all the movies scanned into your [[Video Library]].
* Once this is done you’ll need to export your library as a series of separate .NFO files. This can be done by going to [[Videos Settings|Settings > Video]] > Library and choosing Export Library. Make sure you choose the separate files option, and a bunch of .NFO files (one for every movie) will be dumped to the directories the movies are stored in.
{{tip|See  '''[[Import-export library]]'''}}
* Once you have the .NFO you'll need to open it for all the movies in the series and add some info to them.


== NFO Examples ==
; [[NFO files/Creating|Creating NFO files]]
: {{#lst:NFO files/Creating|intro}}


Below are the different sections explained on how to create specific nfo files for them.
; [[NFO_files/Parsing|Parsing NFO]]
: {{#lst:NFO_files/Parsing|intro}}


; [[NFO_files/Combination|Combination NFO]]
: {{#lst:NFO_files/Combination|intro}}


* '''[[NFO files/movies|Movies]]'''
; Metadata NFO
:* [[NFO files/movies#Movie sets|Movie sets]]
: These are the full metadata NFO files that are commonly used. The {{kodi}} '''[[Import-export_library|Export]]''' feature generates these files as well as 3rd party media managers.
:* [[NFO files/movies#Movie tags|Movie tags]]
: All available XML tags are listed here as well as a description on how and where the files are saved.


* '''[[NFO files/tvshows|TV Shows]]'''
; [[NFO_files/Templates|Templates and Samples]]
: {{#lst:NFO_files/Templates|intro}}


:* '''[[NFO files/tvepisodes|TV Episodes]]'''


* '''[[NFO files/musicvideos|Music videos]]'''


* '''[[NFO files/music|Music]]'''


== Importing library information from "My Movies" media management software ==
[http://www.mymovies.dk/ My Movies (www.mymovies.dk)] is an online database for profiling DVD-Video movies. [http://www.mymovies.dk/ My Movies] saves an XML file and a poster cover image which with this patch will get scanned by XBMC in the same way as XBMC's own XML formatted NFO files are scanned/scraped.


XBMC has the ability to get the import movie library information from "[http://www.mymovies.dk/ My Movies]" via the mymovies.xml files that it generates, these mymovies.xml are checked after the movie.nfo file.
{{updated|19}}


{{gotham updated}}
[[Category:Karellen]]
 
[[Category:Music library]]
[[Category:Scraper]]
[[Category:Video library]]
[[Category:Video library]]
[[Category:Music library]]
[[Category:XBMC Manual]]

Revision as of 00:18, 23 April 2021

NFO Contents

NFO Main Page


See also:


Return to:

Home icon grey.png   ▶ Video library
▶ Music library
▶ NFO files


Introduction

NFO files are used to populate the music and video library using locally stored information. They are helpful if data for your particular title does not exist, such as for home movies and sporting events. A Parsing and Combination NFO file can be used to control the search behaviour of scrapers when problematic and ambiguous titles prevent your preferred title from being scraped.

nfo is a filename extension - mymovie.nfo and the contents of the file are written in XML. The file itself does nothing except hold information and is basically a text document with XML tags inserted around the information.

All NFO files are saved with UTF-8 encoding which is standard on most operating systems.

NFO files are also used as a method of exporting the library for various reasons, including backup. See: Import & Export

The order of importing metadata into the Kodi library is:

  1. nfo file. If no nfo file exists then
  2. Depending on your Source scraper settings:
    • A scraper is set- Scraper will locate online metadata, or
    • Local Info Only is set- Nothing will be scanned or scraped.


Creating NFO files
This page explains the various methods available to create NFO files.
Parsing NFO
A Parsing NFO file is used to point the scraper to the exact title to be matched and scraped.
Combination NFO
A Combination NFO file combines a Parsing NFO and Metadata NFO file. It allows you to scrape the title as normal, but override some of the scraped data with the data included in the file.
Metadata NFO
These are the full metadata NFO files that are commonly used. The Kodi Export feature generates these files as well as 3rd party media managers.
All available XML tags are listed here as well as a description on how and where the files are saved.
Templates and Samples
Basic templates as a starting point to create your own NFO files.