2017-01-02, 00:43
Introducing the Library Search script - a WIP script to provide a search facility for music and videos in your library.
Unlike other solutions which query Kodi directly and provide the results in their own windows, this script doesn't provide any results itself - instead it provides a set of template library nodes which it customises with your search term. This means search results are shown in the skins normal library views; the search types are easy to customise without knowing any Python; there's the possibility to integrate with other addons to provide results (for example, a PVR search addon could be directly integrated); with some plugins you can integrate them so you can link directly to their search results.
Background
I often work on little 'proof of concept' scripts, where I'm playing around to see if something is possible within Kodi. Most of the time it's not. Very occasionally it does work, but isn't interesting enough to share. Once in a blue moon there's something like this where the basic idea works and is interesting - at which point I'm happy to share the idea with the hope the community can help me bring it through to an actually workable solution.
Installation
The script is available on my personal repo, the latest version which can be installed via Kodi's 'Install from zip' is here, or for those who are happy manually installing scripts the source is here.
Known Issues
Plugin Integration
It's possible to link directly to some plugins own search results. Only plugins that support passing a search term in their path will work - place ::SEARCHTERM:: in the relevant part of the URI. Note that you should ask plugin authors directly if their plugin works in this way and what the path should be. Please also remember the forum rules (wiki) as they relate to banned add-ons (wiki).
Plugin integration is accessed through this plugins settings.
Any and all feedback is very welcome.
Unlike other solutions which query Kodi directly and provide the results in their own windows, this script doesn't provide any results itself - instead it provides a set of template library nodes which it customises with your search term. This means search results are shown in the skins normal library views; the search types are easy to customise without knowing any Python; there's the possibility to integrate with other addons to provide results (for example, a PVR search addon could be directly integrated); with some plugins you can integrate them so you can link directly to their search results.
Background
I often work on little 'proof of concept' scripts, where I'm playing around to see if something is possible within Kodi. Most of the time it's not. Very occasionally it does work, but isn't interesting enough to share. Once in a blue moon there's something like this where the basic idea works and is interesting - at which point I'm happy to share the idea with the hope the community can help me bring it through to an actually workable solution.
Installation
The script is available on my personal repo, the latest version which can be installed via Kodi's 'Install from zip' is here, or for those who are happy manually installing scripts the source is here.
Known Issues
- Krypton only
- No PVR search
- Navigation still needs some work, particularly going 'back' from integrated plugins.
- Search results are limited by the power of library nodes. In practical terms that means we're looking at search results where the items 'contain' the search string
- Because it, to some degree, abuses the Library Nodes feature of Kodi it's quite possible this won't be considered acceptable for the official Kodi repo
- All those thousands of minor issues hopefully you can help in finding
Plugin Integration
It's possible to link directly to some plugins own search results. Only plugins that support passing a search term in their path will work - place ::SEARCHTERM:: in the relevant part of the URI. Note that you should ask plugin authors directly if their plugin works in this way and what the path should be. Please also remember the forum rules (wiki) as they relate to banned add-ons (wiki).
Plugin integration is accessed through this plugins settings.
Any and all feedback is very welcome.