Kodi Community Forum
Can't find a function for a link - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: OS independent / Other (https://forum.kodi.tv/forumdisplay.php?fid=228)
+---- Thread: Can't find a function for a link (/showthread.php?tid=354779)



Can't find a function for a link - G_streamer - 2020-05-27

I am playing around with a menu system for Kodi which I want to include a few shortcuts.
It will be a backup menu to Export and Import Kodi's Video Library without the need to go into the Kodi System/Media/Library options.
I found the Export Library function: exportlibrary(type [, exportSingeFile, exportThumbs, overwrite, exportActorThumbs])
However, I see no "Import" Library function listed anywhere. Of course I guessed at changing exportlibrary to importlibrary but that didn't work.
Anyone have any idea what that might be, or where to find it in inside Kodi to help this idiot out? lol


RE: Can't find a function for a link - Karellen - 2020-05-27

(2020-05-27, 17:56)G_streamer Wrote: However, I see no "Import" Library function listed anywhere. Of course I guessed at changing exportlibrary to importlibrary but that didn't work.
If you are exporting to Separate Files, then you use the Update Library function, which is available in the Left Sideblade Menu

Might be of some use... https://forum.kodi.tv/showthread.php?tid=336226&pid=2794144#pid2794144


RE: Can't find a function for a link - G_streamer - 2020-05-27

(2020-05-27, 20:36)Karellen Wrote:
(2020-05-27, 17:56)G_streamer Wrote: However, I see no "Import" Library function listed anywhere. Of course I guessed at changing exportlibrary to importlibrary but that didn't work.
If you are exporting to Separate Files, then you use the Update Library function, which is available in the Left Sideblade Menu

Might be of some use... https://forum.kodi.tv/showthread.php?tid=336226&pid=2794144#pid2794144 
Yes, I understand that way of doing it. What I am really trying to do is a menu option to do a Library dump of a single file to my hard drive as a backup, refresh my Kodi, then import the Library back in. I have the commands to export, update and clean but the import feature is not one I can figure out the command for. I do appreciate your reply. Thank you.


RE: Can't find a function for a link - DaVu - 2020-05-28

(2020-05-27, 21:31)G_streamer Wrote: but the import feature is not one I can figure out the command for

Because it does not exist, unfortunately Wink

The "Library builtins" are mentioned here:

https://github.com/xbmc/xbmc/blob/master/xbmc/interfaces/builtins/LibraryBuiltins.cpp

If you search for "export" you will find the section which you already figured out. Try searching for "import" and you won't find anything. If you want that feature, please create a feature request at the specific subforum Wink


RE: Can't find a function for a link - G_streamer - 2020-05-28

(2020-05-28, 00:20)DaVu Wrote:
(2020-05-27, 21:31)G_streamer Wrote: but the import feature is not one I can figure out the command for

Because it does not exist, unfortunately Wink

The "Library builtins" are mentioned here:

https://github.com/xbmc/xbmc/blob/master/xbmc/interfaces/builtins/LibraryBuiltins.cpp

If you search for "export" you will find the section which you already figured out. Try searching for "import" and you won't find anything. If you want that feature, please create a feature request at the specific subforum Wink 

Okay, thank you for the reply. Much appreciated.