Kodi Community Forum

Full Version: script.extendedinfo
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
(2014-11-08, 13:32)nessus Wrote: [ -> ]Hi Phil

Is it possible to add in these list's a YouTube search action on click:

Quote:Top Music Artists: info=topartists
Shows appearing on TV: info=airingshows
Shows premiering on TV: info=premiereshows
Trending TV Shows: info=trendingshows
Near Concerts: info=nearevents
Concerts for Venue: info=venueevents

Also it will be great if is possible when you click a TV Show item that it's in the local library, to go to the root of that item. If not then do a YouTube search.


Cheers
Nessus

"Near Concerts" and "Concerts for Venue" already have an onclick event (you need script.maps.browser from my github for that, still WIP though)
The plan for artists / tvshows / movies etc in the long term is to add an info dialog which appears on onclick(), I can add youtube for now though when I find some time.
I can't get any results for Trakt similiar shows, do I need to add any parameters?

Code:
<onfocus>RunScript(script.extendedinfo,info=similartvshowstrakt)</onfocus>

Thanks.
(2014-11-10, 00:04)Hitcher Wrote: [ -> ]I can't get any results for Trakt similiar shows, do I need to add any parameters?

Code:
<onfocus>RunScript(script.extendedinfo,info=similartvshowstrakt)</onfocus>

Thanks.

debug log?
i sometimes experienced very long response times from their API so it´s possible that your request timed out. If that is the case then I cannot fix that, sorry.
EDIT:
and you have to add ,dbid=$INFO[ListItem.DBID]. Readme doesnt mention that, will fix it.
First try was at season level, second at episode.

http://pastebin.com/cvdarbaG

Thanks.
see my edit above.
Code:
<onfocus>RunScript(script.extendedinfo,info=similartvshowstrakt&amp;&amp;dbid=$INFO[ListItem.DBID])</onfocus>

http://pastebin.com/mwAYHfv8

This should work for content shoudn't it?

Code:
<content>plugin://script.extendedinfo?info=similartvshowstrakt</content>

EDIT: Might be a Trakt problem as I can't get any results from them.
&amp;&amp; is the separator for plugin paths, for RunScript() it´s just commas.
so either
Code:
<onfocus>RunScript(script.extendedinfo,info=similartvshowstrakt,dbid=$INFO[ListItem.DBID])</onfocus>
or
Code:
<content>plugin://script.extendedinfo?info=similartvshowstrakt&amp;&amp;dbid=$INFO[ListItem.DBID]</content>
Now I get script failed error, lol.

http://pastebin.com/Z0VHZJz6
Question: Is the "limit" parameter works in plugin paths ?
NearConcerts has 40 items which IMO is to much.

Cheers
Nessus
(2014-11-10, 01:57)nessus Wrote: [ -> ]Question: Is the "limit" parameter works in plugin paths ?
NearConcerts has 40 items which IMO is to much.

Cheers
Nessus

not integrated yet.

(2014-11-10, 00:59)Hitcher Wrote: [ -> ]Now I get script failed error, lol.

http://pastebin.com/Z0VHZJz6

do you pass a tvshow dbid or an episode dbid?
(2014-11-10, 01:59)phil65 Wrote: [ -> ]not integrated yet.
No problem. Will wait.

Thanks
Nessus
(2014-11-10, 01:59)phil65 Wrote: [ -> ]
(2014-11-10, 00:59)Hitcher Wrote: [ -> ]Now I get script failed error, lol.

http://pastebin.com/Z0VHZJz6

do you pass a tvshow dbid or an episode dbid?

That was the problem the DBID changed when entering seasons and episodes, thanks.
(2014-11-10, 02:02)nessus Wrote: [ -> ]
(2014-11-10, 01:59)phil65 Wrote: [ -> ]not integrated yet.
No problem. Will wait.

Thanks
Nessus

Added optional parameter limit=.
Didnt test properly, so let me know if it works.
Works fine. Thanks

Cheers
Nessus
(2014-11-10, 21:08)phil65 Wrote: [ -> ]Added optional parameter limit=.
Didnt test properly, so let me know if it works.
Works fine here.Wink
Since the ability to set a limit is now possible... would it be a problem to bump up the maxResults limit from 20 to 50 for youtubes? Big Grin