>Neeltje57 |
|
(150 intermediate revisions by 34 users not shown) |
Line 1: |
Line 1: |
| {{Incomplete}} | | {|class="infobox" style="width:200px" |
| | ! Import-Export Contents |
| | |- |
| | | |
| | * '''[[Import-export_library|Import-Export]]''' |
| | ** '''[[Import-export_library/Music|Music Library]]''' |
| | ** '''[[Import-export_library/Video|Video Library]]''' |
| | * '''[[HOW-TO:Create_Music_Library|Return to Music Guide]]''' |
| | * '''[[HOW-TO:Create_Video_Library|Return to Video Guide]]''' |
| | |} |
|
| |
|
| XBMC offers the capability to import and export data manually into/from the [[Library|Media Library]].
| | {{mininav|[[Video_library|Video Library]]{{l2|[[Music_library|Music Library]]}}}} |
| | {{see also|NFO files|Artwork|Backup}} |
|
| |
|
| ==Import / Export options==
| |
| The Import / Export options can be found in Relevant [[Music Settings|Music]] / [[Videos Settings|Videos]] Settings.
| |
|
| |
|
| '''Video Library:'''<br>
| |
| ;Export Video Library
| |
| :Exports the Library [[The_XBMC_Database|database]] to either one, or multiple XML files. When you initiate an export, XBMC will ask if you want to export to separate or a single file.
| |
| :If you choose to export to separate files you will also be asked if you want to export [[thumbnails]] and [[fanart]] as well.
| |
| :The resulting XML nfo file and associated image files will then be exported to the location of the corresponding video files.
| |
|
| |
|
| ;Import Video Library
| | = Introduction = |
| :Imports an XML file into the Library database. If the entry does not exist it is appended.
| | <section begin="intro" />Kodi has the option to Export and Import the library databases. These options may be used for a number of reasons including the following more popular ones: |
| :If it exists:
| | *Perform database backup and recovery |
| #It removes all current info for that entry from the database.
| | *Reorganization of data or eliminate database fragmentation {{resize|0.8em|(export, clean/remove database, re-import)}} |
| #Inserts the info for that entry from the XML file.
| | *Move data between Kodi databases on different platforms {{resize|0.8em|(eg Widows to Linux)}}<section end="intro" /> |
|
| |
|
| *'''Note:''' If you wish to import a movie, TV show, music video or episode into the library, use the corresponding format in the exported xml file and enclose it with the <videodb></videodb> tags. Examples can be seen below, as nfo files.
| |
|
| |
|
| '''Music Library:'''<br>
| |
| ;Export Music Library
| |
| :Exports the Library [[The_XBMC_Database|database]] to XML files.
| |
| ;Import Music / Video Library
| |
| :Imports a XML file into the Library database. If the entry does not exist it is skipped.
| |
| :If it exists:
| |
| #It removes all current info for that entry from the database.
| |
| #Inserts the info for that entry from the XML file.
| |
|
| |
|
| ==Video nfo Files== | | = Music Library = |
| Nfo files can be used to provide data for a video file in XBMC or influence the search behavior 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.
| | This page details how to Import and Export the Music Library. |
|
| |
|
| 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 metadata directly from the nfo file or will parse it for a direct URL to the scraper info page. This allows XBMC to skip it's normal lookup and/or search procedures, useful if a file's information is not available on any of the scraper sites, or if the filematching criteria fails for the particular file.
| | '''''See: [[Import-export_library/Music| Import-Export Music lIbrary]]''''' |
|
| |
|
| ===Video nfo Files containing XML data===
| |
| 1. The *.nfo file is an XML file containing the data for inclusion in the library.
| |
|
| |
|
| ====Movies====
| |
| Movie.nfo will override all and any nfo files in the same folder as the media files.
| |
| If there is only one nfo file in a folder, The scraper will use it for all media files in that folder. If there are multiple media files in a folder, the *.nfo must be named exactly the same as the video file it is representing (ie. '''moviename.avi''' and '''moviename.nfo'''). In the case of multi-part (stacked) video [[Videos#Stacking_in_XBMC|stacking]], name the file either '''moviename.nfo''' or '''moviename-CD1.nfo''' where the first filename is '''moviename-CD1.avi'''.
| |
|
| |
|
| <xml>
| | = Video Library = |
| <movie>
| | This page details how to Import and Export the Video Library which consists of: |
| <title>Who knows</title>
| | *'''Movies'''- Metadata and artwork |
| <originaltitle>Who knows for real</originaltitle>
| | *'''TV Shows'''- Metadata and artwork |
| <rating>6.100000</rating>
| | *'''Music Videos'''- Metadata and artwork |
| <year>2008</year>
| |
| <top250>0</top250>
| |
| <votes>50</votes>
| |
| <outline>A look at the role of the Buckeye State in the 2004 Presidential Election.</outline>
| |
| <plot>A look at the role of the Buckeye State in the 2004 Presidential Election.</plot>
| |
| <tagline></tagline>
| |
| <runtime>90 min</runtime>
| |
| <thumb>http://ia.ec.imdb.com/media/imdb/01/I/25/65/31/10f.jpg</thumb>
| |
| <mpaa>Not available</mpaa>
| |
| <playcount>0</playcount>
| |
| <watched>false</watched>
| |
| <id>tt0432337</id>
| |
| <filenameandpath>c:\Dummy_Movie_Files\Movies\...So Goes The Nation.avi</filenameandpath>
| |
| <trailer></trailer>
| |
| <genre></genre>
| |
| <credits></credits>
| |
| <director>Adam Del Deo</director>
| |
| <actor>
| |
| <name>Paul Begala</name>
| |
| <role>Himself</role>
| |
| </actor>
| |
| <actor>
| |
| <name>George W. Bush</name>
| |
| <role>Himself</role>
| |
| </actor>
| |
| <actor>
| |
| <name>Mary Beth Cahill</name>
| |
| <role>Herself</role>
| |
| </actor>
| |
| <actor>
| |
| <name>Ed Gillespie</name>
| |
| <role>Himself</role>
| |
| </actor>
| |
| <actor>
| |
| <name>John Kerry</name>
| |
| <role>Himself</role>
| |
| </actor>
| |
| </movie>
| |
| </xml>
| |
|
| |
|
| ====TV Shows====
| | '''''See: [[Import-export_library/Video| Import-Export Video lIbrary]]''''' |
| The filename of the NFO should be "tvshow.nfo" (Exact, NOT the name of the actual TV show) and it should be in the root folder of the TV show.<br>
| |
| The nfo xml file may contain a valid <episodeguideurl> to allow online updates. If not, only episodes with nfo files will be added.
| |
|
| |
|
| <xml>
| |
| <tvshow>
| |
| <title>My TV Show</title>
| |
| <episodeguideurl>http://www.thetvdb.com/api/1D62F2F90030C444/series/seriesid/all/language.zip<episodeguideurl>
| |
| <!-- select the correct seriesid and language (en.zip) -->
| |
| <rating>9.900</rating>
| |
| <episode>0</episode>
| |
| <plot>The best TV show in the world</plot>
| |
| <genre>Action and Adventure / Drama</genre>
| |
| <premiered>2000-01-01</premiered>
| |
| <studio></studio>
| |
| <actor>
| |
| <name>Big John</name>
| |
| <role>Jack of all trades</role>
| |
| <thumb></thumb>
| |
| </actor>
| |
| </tvshow>
| |
| </xml>
| |
|
| |
|
| ====TV Episodes====
| | '''Note:''' You cannot selectively Import or Export parts of the database. |
| The *.nfo must be named exactly as the episode filename (i.e. '''episodename.avi''' and '''episodename.nfo''') and in the same folder, allowing multiple episode and *.nfo files within the same folder.
| |
|
| |
|
| <xml>
| |
| <episodedetails>
| |
| <title>My TV Episode</title>
| |
| <rating>10.00</rating>
| |
| <season>2</season>
| |
| <episode>1</episode>
| |
| <plot>he best episode in the world</plot>
| |
| <credits>Writer</credits>
| |
| <director>Mr. Vision</director>
| |
| <aired>2000-01-01</aired>
| |
| <actor>
| |
| <name>Little Suzie</name>
| |
| <role>Pole Jumper/Dancer</role>
| |
| </actor>
| |
| </episodedetails>
| |
| </xml>
| |
|
| |
|
| ====Music Videos====
| |
| The filename of the NFO should be the same as the music video file, only replacing the original extension with .nfo.<br>
| |
| i.e. '''Bestartistintheworld - Bestsongintheworld.avi''' should have the corresponding nfo filename '''Bestartistintheworld - Bestsongintheworld.nfo'''.
| |
|
| |
|
| <xml>
| | = A Note on Artwork = |
| <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>
| |
| </musicvideo>
| |
| </xml>
| |
|
| |
|
| ===Video nfo files containing an URL===
| | Cached artwork is an optimized version of the original image and this is what {{kodi}} exports, rather than the original full-quality image, so it is best to avoid exporting artwork if at all possible. |
| 2. The *.nfo file contains a URL of the information page to scrape.
| |
| 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 dir 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's 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 a nfo for that movie with the ofdb link in it and you are sorted!
| | To download original artwork to save locally use one of the following addons... |
| | * '''[https://forum.kodi.tv/showthread.php?tid=360078 Artwork Dump]'''- for v19 and later |
| | * '''[https://forum.kodi.tv/showthread.php?tid=258886 Artwork Beef]'''- for v18 and earlier |
|
| |
|
| ====Movies==== | | An explanation of the effects of these optimizations can be located in the [https://forum.kodi.tv/showthread.php?tid=315806&pid=2599318#pid2599318 forum here]. |
| Movie.nfo will override all and any nfo files in the same folder as the media files.
| |
|
| |
|
| Moviename.nfo where Moviename is the name of the movie file that points to a movie on [[IMDb (Video Library)|IMDb.com]].
| |
|
| |
|
| If you use the "Use Foldername for Lookups" [[Set_Contents_%28Video_Library%29#Options_After_Selecting_Scraper|scraper setting]] XBMC will use the first nfo file it finds in the folder and apply it to any valid video file it finds in the same folder.
| |
| <nowiki>http://www.imdb.com/title/tt0333766</nowiki>
| |
|
| |
|
| ====TV Shows====
| |
| Filename should be tvshow.nfo (Exact, NOT the name of the TV show) in the root folder of the TV Show that points to a show on [[TheTVDB.com (Video Library)|TheTVDB.com]].
| |
| <nowiki>http://thetvdb.com/index.php?tab=series&id=73545</nowiki>
| |
|
| |
|
| ====TV Episodes====
| | {{top}} |
| Episodename.nfo where Episodename is the name of the episode file.<br>
| | {{updated|20}} |
| '''Not currently supported!'''
| |
| <nowiki>http://thetvdb.com/?tab=episode&seriesid=73545&seasonid=5950&id=117847&lid=7</nowiki>
| |
|
| |
|
| ====Music Videos====
| | [[Category:Karellen]] |
| Mvideo.nfo where Mvideo is the name of the music video file that points to a music video on MTV.com
| | [[Category:Music library]] |
| <nowiki>http://www.mtv.com/overdrive/?artist=983&vid=222165</nowiki>
| | [[Category:Video library]] |
| | |
| ===Video nfo files containing a mix of XML and URL===
| |
| You can also create nfo files that conatain both XML data and an URL.
| |
| This is useful for instance if you want the entry in your database to have another name than the one officially provided by the scraper.
| |
| | |
| Example
| |
| <xml>
| |
| <movie>
| |
| <title>Sin City (Recut, Extended, Unrated)</title>
| |
| <runtime>147 min.</runtime>
| |
| </movie>
| |
| http://www.imdb.com/title/tt0401792/
| |
| </xml>
| |
| | |
| ==Importing library information from "My Movies" media management software==
| |
| [http://www.mymovies.name/ My Movies (www.mymovies.name)] is an online database for profiling DVD-Video movies. [http://www.mymovies.name/ 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 have the ability to the import movie library information from "[http://www.mymovies.name/ My Movies]" via the mymovies.xml files that it generates, and these mymovies.xml are prioritized over NFO files.
| |
| | |
| | |
| ==Music nfo files==
| |
| ===Music nfo files containing an URL===
| |
| ====Artists====
| |
| Artist.nfo in the artis folder that points to the corresponding artist page on [http://www.allmusic.com Allmusic.com].
| |
| <nowiki>http://www.allmusic.com/cg/amg.dll?p=amg&sql=11:gifoxqwkldae</nowiki>
| |
| Artist.nfo assumes an artist/album directory layout
| |
| | |
| ====Albums====
| |
| Album.nfo in the album folder that points to the corresponding album page on [http://www.allmusic.com Allmusic.com].
| |
| <nowiki>http://www.allmusic.com/cg/amg.dll?p=amg&sql=10:kifoxqualdde</nowiki>
| |
| | |
| [[category:Scraper]]
| |
| [[category:nfo]] | |
| [[Category:To-Do]] | |
| [[category:Usage]]
| |
| [[category:Library]]
| |
| [[category:Video Library]]
| |
| [[category:Music Library]]
| |