NFO files/Music videos: Difference between revisions

From Official Kodi Wiki
Jump to navigation Jump to search
m (Robot: Changing Category:XBMC Manual to Category:Manual)
(Updated for v19)
(13 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{NFO_content}}
{{mininav|[[NFO files]]}}
{{mininav|[[NFO files]]}}
=== Video .nfo Files containing XML data ===
1. The *.nfo file is an XML file containing the data for inclusion in the library.


The filename of the NFO should be the same as the music video file, only replacing the original extension with .nfo.<br />
__TOC__
i.e. '''Bestartistintheworld - Bestsongintheworld.avi''' should have the corresponding .nfo filename '''Bestartistintheworld - Bestsongintheworld.nfo'''.


<syntaxhighlight lang="xml" enclose="div">
    <musicvideo>
        <title>Bestsongintheworld</title>
        <artist>Bestartistintheworld</artist>
        <album>Me</album>
        <genre>Pop</genre>
        <runtime>3:20</runtime>
        <plot>Scantly clad women hoing about</plot>
        <year>2000</year>
        <director>and I</director>
        <studio>Ego prod.</studio>
        <track>1</track>
    </musicvideo>
</syntaxhighlight>


= Introduction =
The Music Video library uses the Video Library database. Music Video entries displayed in {{kodi}} can also access information from the Music Library if the same artist and album that contains the music video song is also in the Music Library.


:;For other possible fields


<big>{{see also|XBMC_databases#musicvideoview}}</big>


=== Video .nfo files containing a URL ===
= nfo Name and Location =
2. The *.nfo file contains a URL of the information page to scrape.
'''{{resize|1.2em|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 file can include other information (i.e. scene info), XBMC will scan through it and use a relevant URL if a match is found.


The scraper tries to match URL's to all scrapers of the content type a directory is set to. e.g. if you set the content type to movies, all movie scrapers check .nfo files for a matching URL. This means that .nfo files override the scraper setting. I.e. a directory is set to use the IMDB scraper but you have a German movie in it. Simply create an .nfo for that movie with the OFDB link in it and you are sorted!
Music Videos require one nfo for '''each''' music video in the folder. These nfo files need to be named exactly as the Music Video file is named, but with the nfo extension.


The below image shows an example of correct naming and placement of the artwork alongside the '''''[[NFO_files|nfo]]''''' file and the Music Video media file.


Mvideo.nfo where Mvideo is the name of the music video file that points to a music video on MTV.com
<gallery mode="packed" widths="500px" heights="290px">
<nowiki>http://www.mtv.com/overdrive/?artist=983&vid=222165</nowiki>
File:Artwork-MusicVideoExample01.jpg|Correct naming and placement of media, nfo and artwork files.
{{frodo updated}}
</gallery>


[[Category:Scraper]]
 
 
=  Music Video Tags =
A list of all available tags that Kodi recognises follows in this section.
 
{|class="prettytable"
! NFO (xml) Tag || Required || Multiple || Notes
|-
|<musicvideo></musicvideo> || {{Yes}} || No || The top level parent tag for the nfo file. All other tags must be contained within these two tags
|-
|<title></title> || {{Yes}} || No || Name of music video
|-
|<userrating></userrating> || No || No || Personal rating applied by the user
|-
|<top250></top250> || No || No || Not Used
|-
|<track></track> || No || No || Not Used
|-
|<album></album> || No || No || Name of album the song appears on
|-
|<outline></outline> || No || No || Not Used
|-
|<plot></plot> || No || No || Review / information of music video
|-
|<tagline></tagline> || No || No || Not Used
|-
|<runtime></runtime> || No || No || Minutes only. If ommitted, {{kodi}} will add runtime upon scanning
|-
|<thumb aspect="thumb" preview=""></thumb> || No || Yes || Path to TV Show and Season artwork
|-
|<mpaa></mpaa> || No || No || Not Used
|-
|<playcount></playcount> || No || No || Setting this to 1 or greater will mark the Music Video
|-
|<lastplayed></lastplayed> || No || No || Date last played as ''yyyy-mm-dd''
|-
|<id></id> || No || No || Not Used
|-
|<genre></genre> || No || Yes || Genre
|-
|<tag></tag> || No || Yes || Video tags. See: '''[[Video library tags]]'''
|-
|<director></director> || No || Yes || Director of the music video
|-
|<year></year> || No || No || Year released
|-
|<status></status> || No || No || Not Used
|-
|<code><code></code></code> || No || No || Not Used
|-
|<aired></aired> || No || No || Not Used
|-
|<studio></studio> || No || Yes || Production studio
|-
|<trailer></trailer> || No || No || Not used
|-
|
    <fileinfo>
        <streamdetails>
            <video>
                <codec></codec>
                <aspect></aspect>
                <width></width>
                <height></height>
                <durationinseconds></durationinseconds>
                <stereomode></stereomode>
            </video>
            <audio>
                <codec></codec>
                <language></language>
                <channels></channels>
            </audio>
        </streamdetails>
    </fileinfo>
|| No || No || While it is possible to manually set the information contained within the <streamdetails> tag, there is little point in doing so.
Kodi will always overwrite this data when it plays back the video file.<br />
In other words, no matter how many times you try to manually set it, it will be overwritten the moment the video is played
|-
<actor>
    <name>Taylor Swift</name>
    <role></role>
    <order>0</order>
    <thumb></thumb>
</actor>
|| No || Yes || The artist of the song
|-
| <artist></artist> || {{yes}} || Yes || The artists/actors in the music video
|-
|
<resume>
  <position></position>
  <total></total>
</resume>
|| No || No || Not Used
|-
|<dateadded></dateadded> || No || No || mTime of the playable video file. Can be altered in advancedsettings.xml<br>See... '''[[Advancedsettings.xml#videolibrary]]'''
|}
 
 
 
= References =
<references />
 
 
 
 
 
{{top}}
{{updated|19}}
 
[[Category:Karellen]]
[[Category:Music library]]
[[Category:Video library]]
[[Category:Video library]]
[[Category:Manual]]

Revision as of 00:09, 23 April 2021

NFO Contents

NFO Main Page


See also:


Return to:

Home icon grey.png   ▶ NFO files ▶ Music videos


Introduction

The Music Video library uses the Video Library database. Music Video entries displayed in Kodi can also access information from the Music Library if the same artist and album that contains the music video song is also in the Music Library.


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.

Music Videos require one nfo for each music video in the folder. These nfo files need to be named exactly as the Music Video file is named, but with the nfo extension.

The below image shows an example of correct naming and placement of the artwork alongside the nfo file and the Music Video media file.


Music Video Tags

A list of all available tags that Kodi recognises follows in this section.

NFO (xml) Tag Required Multiple Notes
<musicvideo></musicvideo> Yes No The top level parent tag for the nfo file. All other tags must be contained within these two tags
<title></title> Yes No Name of music video
<userrating></userrating> No No Personal rating applied by the user
<top250></top250> No No Not Used
<track></track> No No Not Used
<album></album> No No Name of album the song appears on
<outline></outline> No No Not Used
<plot></plot> No No Review / information of music video
<tagline></tagline> No No Not Used
<runtime></runtime> No No Minutes only. If ommitted, Kodi will add runtime upon scanning
<thumb aspect="thumb" preview=""></thumb> No Yes Path to TV Show and Season artwork
<mpaa></mpaa> No No Not Used
<playcount></playcount> No No Setting this to 1 or greater will mark the Music Video
<lastplayed></lastplayed> No No Date last played as yyyy-mm-dd
<id></id> No No Not Used
<genre></genre> No Yes Genre
<tag></tag> No Yes Video tags. See: Video library tags
<director></director> No Yes Director of the music video
<year></year> No No Year released
<status></status> No No Not Used
No No Not Used
<aired></aired> No No Not Used
<studio></studio> No Yes Production studio
<trailer></trailer> No No Not used
   <fileinfo>
       <streamdetails>
           <video>
               <codec></codec>
               <aspect></aspect>
               <width></width>
               <height></height>
               <durationinseconds></durationinseconds>
               <stereomode></stereomode>
           </video>
           <audio>
               <codec></codec>
               <language></language>
               <channels></channels>
           </audio>
       </streamdetails>
   </fileinfo>
No No While it is possible to manually set the information contained within the <streamdetails> tag, there is little point in doing so.

Kodi will always overwrite this data when it plays back the video file.
In other words, no matter how many times you try to manually set it, it will be overwritten the moment the video is played

<actor>
   <name>Taylor Swift</name>
   <role></role>
   <order>0</order>
   <thumb></thumb>
</actor> 
No Yes The artist of the song
<artist></artist> Yes Yes The artists/actors in the music video
<resume>
  <position></position>
  <total></total>
</resume>
No No Not Used
<dateadded></dateadded> No No mTime of the playable video file. Can be altered in advancedsettings.xml
See... Advancedsettings.xml#videolibrary


References




Return to top