NFO files: Difference between revisions

From Official Kodi Wiki
Jump to navigation Jump to search
m (yep this is really outdated now, Especially the local scraping and local art/metadata portions. tbh I know next to nothing on this as I never used it.)
m (Updated for v20)
 
(43 intermediate revisions by 7 users not shown)
Line 1: Line 1:
{{cleanup}}{{incomplete}}
{{NFO_content}}
{{mininav|[[Video library]] {{l2| [[Music library]] }} }}
__NOTOC__


{{mininav|[[General topics]]|[[Videos]] {{l2|[[Music/Audio]]}}|[[Video library/Management|Management]] <br />&nbsp; }}
= Introduction =
<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" />
<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" />


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.
'''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.


== Getting an .NFO file ==
'''All NFO files are saved with UTF-8 encoding''' which is standard on most operating systems.
Various options:


=== .NFO exists ===
NFO files are also used as a method of exporting the library for various reasons, including backup. '''''See: [[Import-export_library | Import & Export]]'''''
If you have a movie with an .NFO file already, continue with the next section.  


=== Create an .NFO file (recommended) ===
The order of importing metadata into the {{kodi}} library is:
* This is recommended to have .NFO files only where needed.
#nfo file. If no nfo file exists then
* 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'').
#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.


=== 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 ==


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


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


* '''[[NFO files/movies|Movies]]'''
; [[NFO_files/Combination|Combination NFO]]
:* [[NFO files/movies#Movie sets|Movie sets]]
: {{#lst:NFO_files/Combination|intro}}
:* [[NFO files/movies#Movie tags|Movie tags]]


* '''[[NFO files/tvshows|TV Shows]]'''
; Metadata NFO
: 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.
: All available XML tags are listed here as well as a description on how and where the files are saved.


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


* '''[[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.


[[Category:Scraper]]
{{updated|20}}
[[Category:Video Library]]
 
[[Category:Music Library]]
[[Category:Karellen]]
[[Category:XBMC Manual]]
[[Category:Music library]]
{{frodo updated}}
[[Category:Video library]]

Latest revision as of 02:16, 13 February 2023

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.