(2022-06-29, 23:08)arneson Wrote: [ -> ]I don't known about "search providers" in Kodi. Is it a special feature of the Arctic Horizon 2 Skin ?
How do you want to call the context.item.tidal2 (TIDAL2 Search) addon ?
hey @
arneson thanks for all the information.
it's not a special skin feature, i've seen it integrated in many skins. i think it uses the global search add-on and skinshortcuts, but i'm not quite sure how it works together when it all blends. i only got that we can add more and i've been looking at how addons call for search terms to integrate radio de plugin. i've looked at tidal addons code too and how the search API calls work, but couldn't really handle all that information
however i made the call for the search results, it would pop-up the standard search box with the term typed in already (as it should) but it did not "enter" (,return) and i could not find a way to make it do that
it would work when i pressed enter on the search pop-up window. but the pop-up shouldn't be displayed.
all i know is this works by adding the right search term - the same one you would use when you add a shortcut into a skin for the search. i actually think the ",return" was the problem with the search window popping out, so i'll test it a little later with all the information you gave me.
with arctic horizon 2, jurialmunkey just made the search window accessible directly from the home screen, so you just go to it and start typing (without leaving home page) and the results come out as widget results. so it's become very usable and very useful (and it's fast). before that i never realized you could search other addons directly from kodi's search or that it was a thing but it was there all the time
it just never popped out to me like this. i was actually trying to find a way to remove that search window when i realized what it can do.
getting as more as possible addons to be searched from there would be a great addition. many were already there, like youtube, tmdb search, spotify, addon search, local library, but there's a posibility to extend that. and i'd love to see tidal there.
for example, in the skin template.xml (in case of artic horizon 2) there's a code for each search call so this is an example of a spotify search:
Code:
plugin://plugin.audio.spotify/?action=search_artists&artistid=
this call will search for artists on spotify. if you would add this as a skin shortcut, it would open a search window for you to search artists, but in this case, the term you're searching for will be inserted when you type it in the search window and displayed as a widget together with all the other searches you added (artists, albums, local library, radio, netflix...), each a widget in its own row with search results from all the providers it got results from.
radio de addon search term was a bit more complicated because it tells the search to open page 1 of the results so
Code:
plugin://plugin.audio.radio_de/stations/search/SEARCHTERM/1/
in that case we can use two lines to integrate the search from this "search provider":
Code:
<property name="widgetPath" tag="property" attribute="name|list" value="DefaultSearch-Radio">plugin://plugin.audio.radio_de/stations/search/</property>
<property name="widgetPath2" tag="property" attribute="name|list" value="DefaultSearch-Radio">/1/</property>
depending on a skin, "widgetpath" is sometimes called just "path"
tidal should work like this then, if i want to search all:
Code:
<property name="widgetPath" tag="property" attribute="name|list" value="DefaultSearch-TidalAll">plugin://context.item.tidal2/search_field/all/</property>
or for an artist
Code:
<property name="widgetPath" tag="property" attribute="name|list" value="DefaultSearch-TidalArtists">plugin://context.item.tidal2/search_field/artist/</property>
and that would be it but that would always pop-up the search box with "kelly clarkson" (example) written already instead of showing results in the results window. so i tried to close that like netflix needs to be closed:
Code:
<property name="widgetPath" tag="property" attribute="name|list" value="DefaultSearch-Netflix">plugin://plugin.video.netflix/directory/search/search/?query=</property>
<property name="widgetPath2" tag="property" attribute="name|list" value="DefaultSearch-Netflix">/</property>
so that
/ practically tells it to return the results. without it it popping the window.
but whatever i did with tidal, the search window would pop-up with the search term already typed in the box.
that's why i think the ,return might fix that. or maybe i haven't used the right search term before. i'll let you know when i test it. i really hope i get this working so it can get integrated. thank you again!
p.s. you have to try this skin, i'm amazed