NFO files/Music videos: Difference between revisions

From Official Kodi Wiki
Jump to navigation Jump to search
No edit summary
(Updated for v19)
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
{|class="infobox" style="width:200px"
{{NFO_content}}
! NFO Contents
{{mininav|[[NFO files]]}}
|-
|
* '''[[NFO_files|NFO Files]]'''
** '''[[NFO_files/Movies|Movies]]'''
** '''[[NFO files/TV shows|TV Shows]]'''
** '''[[NFO files/Music|Music]]'''
** '''[[NFO files/Music videos|Music Videos]]'''
|}
{{mininav|[[NFO_files]]}}


__TOC__




= Requirements =
= Introduction =
The order of importing metadata is as follows:
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 file. If no nfo file exists, then
#Depending on your scraper settings for your source, either
##Online scraper sites- if a scraper is set in your source settings
##Nothing- if Local Info Only is set


When Kodi locates the nfo file it will load the *.nfo file and:
#If the file is a metadata nfo, Kodi will import the meta-data directly into the library from the .nfo file or
#If the file is a parsing nfo, Kodi will parse the nfo file for a direct URL to the scraper info page, then scrape the online metadata.
#If the file is a combination nfo, Kodi will parse the nfo file and scrape the online metadata, then import the metadata from the nfo file.




= nfo Name and Location =
'''{{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.}}'''


== Known Issues ==
No known issues currently exist.
= nfo Placement =
Correct placement of the nfo file is essential. '''Regardless of what settings you have set for the source and scraper, Kodi will always search for and scrape a nfo file if it is available.''' Failing to save the file in the correct location, as detailed below, will force Kodi to either:
#Scrape the metadata from the online source set in your scraper or,
#If you have ''Local Info Only'' set as your scraper, then no entry will be made into the library.
== Music Videos ==
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.
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.


<div style="{{linear-gradient|bottom|#fffec7, #ffc7ff}}">
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.
'''''Naming & Saving conventions for your Music Videos *.nfo files:'''''
{|
|- valign="top"
| width=200px |'''''Saved Music Videos as'''''
| width=300px |'''''File Name'''''
| width=600px |'''''Save Location'''''
|- valign="top"
| width=200px |All formats
| width=300px |<MusicVideoFileName>.nfo
| width=600px |f:\MyMusicVideos\<MusicVideoFileName>.nfo
|}
</div>
 


The below image shows an example of correct naming and placement of the artwork alongside the '''''[[nfo]]''''' file and the Music Video media file.
<gallery mode="packed" widths="500px" heights="290px">
<gallery widths=450px heights=250px>
File:Artwork-MusicVideoExample01.jpg|Correct naming and placement of media, nfo and artwork files.
File:Artwork-MusicVideoExample01.jpg|Correct naming and placement of media, nfo and artwork files.
</gallery>
</gallery>
Line 70: Line 29:
! NFO (xml) Tag || Required || Multiple || Notes
! 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
|<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> || No || No || Name of music video
|<title></title> || {{Yes}} || No || Name of music video
|-
|-
|<userrating></userrating> || No || No || Personal rating applied by the user
|<userrating></userrating> || No || No || Personal rating applied by the user
Line 82: Line 41:
|<album></album> || No || No || Name of album the song appears on
|<album></album> || No || No || Name of album the song appears on
|-
|-
|<outline></outline> || || || Not Used
|<outline></outline> || No || No || Not Used
|-
|-
|<plot></plot> || || || Can contain more information on multiple lines, will be wrapped
|<plot></plot> || No || No || Review / information of music video
|-
|-
|<tagline></tagline> || No || No || Not Used
|<tagline></tagline> || No || No || Not Used
|-
|-
|<runtime></runtime> || No || No || Not Used
|<runtime></runtime> || No || No || Minutes only. If ommitted, {{kodi}} will add runtime upon scanning
|-
|-
|<thumb preview=""></thumb> || No || Yes || Path to TV Show and Season artwork
|<thumb aspect="thumb" preview=""></thumb> || No || Yes || Path to TV Show and Season artwork
|-
|-
|<mpaa></mpaa> || No || No || Not Used
|<mpaa></mpaa> || No || No || Not Used
|-
|-
|<playcount></playcount> || || || Setting this to 1, or greater, will mark the Music Video as watched on import if the ''importwatchedstate'' flag is set in advancedsettings.xml
|<playcount></playcount> || No || No || Setting this to 1 or greater will mark the Music Video
|-
|<lastplayed></lastplayed> || No || No || Date the music video was last played. Requires advancedsettings.xml entry for import
|-
|<file></file> || No || No || Not Used. Exported in Single File Export only
|-
|<path></path> || No || No || Not used on Import. Exported in Single File Export only
|-
|<filenameandpath></filenameandpath> || No || No || Not used on Import. Exported in Single File Export only
|-
|-
|<basepath></basepath> || No || No || Not used on Import. Exported in Single File Export only
|<lastplayed></lastplayed> || No || No || Date last played as ''yyyy-mm-dd''
|-
|-
|<id></id> || No || No || Not Used
|<id></id> || No || No || Not Used
|-
|-
|<genre clear="true"></genre> || No || Yes || Supports "clear" attribute
|<genre></genre> || No || Yes || Genre
|-
|-
|<tag></tag> || No || Yes || User created tags
|<tag></tag> || No || Yes || Video tags. See: '''[[Video library tags]]'''
|-
|-
|<director clear="true"></director> || No || No || Director of the music video
|<director></director> || No || Yes || Director of the music video
|-
|-
|<year></year> || No || No || Year released
|<year></year> || No || No || Year released
Line 118: Line 69:
|<status></status> || No || No || Not Used
|<status></status> || No || No || Not Used
|-
|-
|<code><code></code></code> || || || Not Used
|<code><code></code></code> || No || No || Not Used
|-
|-
|<aired></aired> || No || No || Not Used
|<aired></aired> || No || No || Not Used
|-
|-
|<studio clear="true"></studio> || No || Yes || Supports "clear" attribute
|<studio></studio> || No || Yes || Production studio
|-
|-
|<trailer></trailer> || No || No || Not used
|<trailer></trailer> || No || No || Not used
|-
|-
|
|
<fileinfo>
    <fileinfo>
  <streamdetails>
        <streamdetails>
    <audio>
            <video>
      <codec></codec>
                <codec></codec>
      <language></language>
                <aspect></aspect>
      <channels></channels>
                <width></width>
    </audio>
                <height></height>
  </streamdetails>
                <durationinseconds></durationinseconds>
</fileinfo>
                <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.  
|| 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 />  
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
In other words, no matter how many times you try to manually set it, it will be overwritten the moment the video is played
|-
|-
|<artist clear="true"></artist> || No || No || The artist of the song
|  
<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
|-
|-
|
|
Line 149: Line 117:
|| No || No || Not Used
|| No || No || Not Used
|-
|-
|<dateadded></dateadded> || No || No || Date the file was added to library. Can be altered in advancedsettings.xml
|<dateadded></dateadded> || No || No || mTime of the playable video file. Can be altered in advancedsettings.xml<br>See... '''[[Advancedsettings.xml#videolibrary]]'''
|-
|
<art>
  <fanart></fanart>
  <poster></poster>
</art>
|| No || No || Currently selected artwork. Exported to single file only, not imported
|}
|}






= Sample nfo Files =
= References =
Sample Music Video nfo from Single File Export
<references />
 
{{collapse top| Music Video nfo file  (click 'expand' to view)}}
<musicvideo>
  <title>Where the Streets Have No Name</title>
  <userrating>8</userrating>
  <top250>0</top250>
  <track>-1</track>
  <album>The Joshua Tree</album>
  <outline></outline>
  <plot>"With or Without You" is a song by Irish rock band U2. It is the third track from their 1987 album, The Joshua Tree, and was released as the album's first single on 21 March 1987.</plot>
  <tagline></tagline>
  <runtime>0</runtime>
  <thumb preview="http://www.theaudiodb.com/images/media/album/thumb/the-joshua-tree-4e424fba428d5.jpg/preview">http://www.theaudiodb.com/images/media/album/thumb/the-joshua-tree-4e424fba428d5.jpg</thumb>
  <thumb preview="https://assets.fanart.tv/preview/music/a3cb23fc-acd3-4ce0-8f...-tree-5348fa767262d.jpg">https://assets.fanart.tv/fanart/music/a3c...2/albumcover/the-joshua-tree-5348fa767262d.jpg</thumb>
  <thumb preview="https://assets.fanart.tv/preview/music/a3cb23fc-acd3-4ce0-8f...-tree-591dc8c2f14be.jpg">https://assets.fanart.tv/fanart/music/a3c...2/albumcover/the-joshua-tree-591dc8c2f14be.jpg</thumb>
  <thumb preview="https://assets.fanart.tv/preview/music/a3cb23fc-acd3-4ce0-8f...-tree-4e424fba428d5.jpg">https://assets.fanart.tv/fanart/music/a3c...2/albumcover/the-joshua-tree-4e424fba428d5.jpg</thumb>
  <thumb preview="https://assets.fanart.tv/preview/music/a3cb23fc-acd3-4ce0-8f...-tree-58c8a09104fc6.jpg">https://assets.fanart.tv/fanart/music/a3c...2/albumcover/the-joshua-tree-58c8a09104fc6.jpg</thumb>
  <mpaa></mpaa>
  <playcount>5</playcount>
  <lastplayed>2017-09-15</lastplayed>
  <file></file>
  <path>E:\Music Videos- Test\</path>
  <filenameandpath>E:\Music Videos- Test\U2 - Where The Streets Have No Name.mkv</filenameandpath>
  <basepath>E:\Music Videos- Test\U2 - Where The Streets Have No Name.mkv</basepath>
  <id></id>
  <genre>Pop-Rock</genre>
  <tag>MyTag</tag>
  <tag>Tag2</tag>
  <director>Meiert Avis</director>
  <year>1987</year>
  <status></status>
  <code><code></code></code>
  <aired></aired>
  <studio>Windmill Lane</studio>
  <trailer></trailer>
  <fileinfo>
    <streamdetails>
      <audio>
        <codec>mp3</codec>
        <language></language>
        <channels>2</channels>
      </audio>
    </streamdetails>
  </fileinfo>
  <artist>U2</artist>
  <resume>
    <position>0.000000</position>
    <total>0.000000</total>
  </resume>
  <dateadded>2014-10-23 08:18:47</dateadded>
  <art>
    <fanart>E:\Music Videos- Test\U2 - Where The Streets Have No Name-fanart.jpg</fanart>
    <poster>E:\Music Videos- Test\U2 - Where The Streets Have No Name-poster.jpg</poster>
  </art>
</musicvideo>
{{collapse bottom}}
 
 
 
= Technical Notes =
There are differences in tags used by Single File Export and Separate File Export. Though testing reveals that transposing tages between the two has no detrimental affect on the scrape.
 
{|class="prettytable"
! XML Tag
! Exported in
Single File
! Exported in
Separate File
! Notes
|-
|<file></file> || Yes || No ||
|-
|<path></path> || Yes || No ||
|-
|<filenameandpath></filenameandpath> || Yes || No ||
|-
|<basepath></basepath> || Yes || No ||
|-
|
<art>
  <fanart></fanart>
  <poster></poster>
</art>
|| Yes || No ||
|}




Line 254: Line 130:


{{top}}
{{top}}
{{updated|19}}


{{updated|17}}
[[Category:FAQ]]
[[Category:Index]]
[[Category:Guides]]
[[Category:Manual]]
[[Category:Karellen]]
[[Category:Karellen]]
[[Category:Music library]]
[[Category:Video library]]
[[Category:Video library]]
[[Category:Music library]]
[[Category:Advanced topics]]
[[Category:First time user]]
[[Category:Quick Start Guide]]

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