User:Karellen/scratchpad: Difference between revisions

From Official Kodi Wiki
Jump to navigation Jump to search
No edit summary
mNo edit summary
 
(154 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{mininav|[[General topics]]|[[Video library|Videos]]{{l2|[[Music/Audio]]}}|[[Video library/Management|Management]]<br />&nbsp;}}
__TOC__
{{see also|NFO files|HOW-TO:Backup the library}}
<section begin="intro" />Kodi offers the capability to import and export data manually into/from the [[Library|Media Library]], as well as importing media info automatically from [[NFO files|.nfo files]].<section end="intro" />


= Outdated =
This section shows all pages except:
# those updated for Nexus + Omega, and
# those pages belonging to the Categories listed in the following sections
<br>


Kodi has the option to both Export and Import its Video and Music database. These options can be used for a number of reasons including the following more popular ones.
<dpl>
*Perform database backup and recovery (This is not the only method for backup and recovery)
namespace= HOW-TO||
*Reorganization of data or eliminate database fragmentation (export, clean/remove database, re-import)
notcategory = Omega
*Move data between Kodi databases on different platforms (eg Widows to Linux)
notcategory = Skin_development
notcategory = Add-on_development
notcategory = Disambiguation_pages
notcategory = Development
notcategory = Remotes
ordermethod = title
</dpl>
<!-- https://help.fandom.com/wiki/Extension:DPL3/Parameters:_Controlling_output_order -->


When exporting, database objects are dumped to a nfo file which can then be used to import into the same or another Kodi database. The method used to import is dependant upon the export options used.


Various options are available to control what objects are exported or imported.
= Skin Development =
Skin Development Pages only


<dpl>
category = Skin_development
</dpl>


== Video Library Export / Import ==
The option is accessed via the Settings menu as detailed in the first image.


Upon selection of the Export Library setting, you will be required to choose the Export method as depicted in the second image below. Continue reading for an explanation of the options.


<gallery widths="700" heights="400">
= Development =
File:LibExp01.jpg|Location of setting
Development pages only
File:LibExp02.png|Select which Export option you require.
</gallery>


<dpl>
category = Development
</dpl>


=== Export to Separate Files ===


This option will export the metadata stored in the database and save it into a nfo file alongside the movie file. This is a good example where Movies and TV Show episodes would benefit from being in their own directory.


After selecting '''Separate''', you will then be asked if you would like to '''Export thumbnails and fanart?'''. This will export the Fanart, Posters, Banners and Episode Thumbs.
= Add-on Development =
*Choosing '''Yes''' will save a copy of the cached artwork into the Movie, TV Show and TV Show Episode directory alongside the video file and the nfo file.
<dpl>
*Choosing '''No''' will not export the artwork
category = Add-on_development
</dpl>


The next option is '''Export Actors Thumbs'''.
*Choosing '''Yes''' will export a copy of the Actors artwork in a directory named ''.actors''
*Choosing '''No''' will not export a copy of the Actors artwork


The final option is '''Overwrite Old Files'''.
*Choosing '''Yes''' will overwrite the existing nfo files and artwork. This is useful if you have modified your metadata such as changed the artwork, created or modified movie sets, etc. Any movies/tv shows that were not present since the last Export will have the nfo and artwork exported to their directory.
*Choosing '''No''' will add nfo files and artwork to those movies/tv shows that do not already have them. eg they are new and added after the last export.
*If this is the first time this option has been run and/or you have no nfo files and artwork saved in your movie/tv show directories, both choices will have the same result.


The Export will commence immediately once the final option is selected. An onscreen progress bar will indicate progress.
= Remotes =
<dpl>
category = Remotes
</dpl>


<gallery widths="500" heights="300">
File:LibExp03.png|Do you want to export Thumbnails and Fanart?
File:LibExp05.jpg|Do you want to export Actors Thumbs?
File:LibExp04.png|Do you want to Overwrite Old Files?
</gallery>




=== Export to Single File ===
= Disambiguation Pages =
[[File:LibExp06.jpg|400px|right]]
<dpl>
category = Disambiguation_pages
</dpl>






This option will export all metadata and all artwork to a single directory as follows
= Karellen =
*The only option available is the save location which you will be prompted and required to enter
<dpl>
*Kodi will create a directory in your selected location named ''xbmc_videodb_yyyy-mm-dd''
  namespace= HOW-TO||
*Library metadata will be saved into a single ''videodb.xml'' file within that directory
  category = Karellen
*Artwork will be saved within multiple sub-directories according to type
  notcategory = Omega
*Subsequent exports '''will not''' overwrite existing Single File exports
</dpl>
*Subsequent exports are '''full''' exports. They are '''not''' incremental backups.
 
 
 
 
=== Import ===
 
If you exported your library using the '''Export to Separate Files''' option, then you must use the normal scraping process to re-import the data. {{small see also|Library_update}}
 
If you exported your library using the '''Export to Single File''' option, you will need to use this method to import the data as follows
*Select '''Import''' to commence the import process
*Locate the the directory for your previously saved single file export
*If you have multiple single file exports, ensure you have selected the correct one.
*Select '''Ok'''. A progress bar will be displayed to indicate progress
*Once complete, your library should be functional again
 
Be aware that if you have removed movies or tv shows since the export, the metadata for those movies and tv shows will be re-imported into the library. You will need to run a '''Clean Library''' to remove them. This option is located just above the '''Export''' entry.
 
 
 
== Music Library Export / Import ==
 
 
 
 
 
 
== Importing library information from "My Movies" media management software ==
 
[http://www.mymovies.dk/ My Movies (www.mymovies.name)] 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 Kodi in the same way as Kodi's own XML formatted NFO files are scanned/scraped.
 
Kodi 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.
 
 
== Other Options ==
By adding suitable code to ''advancedsettings.xml'', you are able to further modify which data is exported. {{small see also|Advanced_settings}}
 
<videolibrary>
  <exportautothumbs>false</exportautothumbs> -- export auto-generated thumbs. Defaults to false --
  <importwatchedstate>false</importwatchedstate> -- import previously exported playdate and playcount from .nfo files. Defaults to false --
  <importresumepoint>false</importresumepoint> -- import previously exported resume point from .nfo files. Defaults to false --
</videolibrary>

Latest revision as of 04:58, 2 May 2024

Outdated

This section shows all pages except:

  1. those updated for Nexus + Omega, and
  2. those pages belonging to the Categories listed in the following sections



Skin Development

Skin Development Pages only


Development

Development pages only


Add-on Development


Remotes


Disambiguation Pages


Karellen