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.
(2015-06-10, 01:41)phil65 Wrote: [ -> ]
(2015-06-10, 01:02)Gade Wrote: [ -> ]Thanks!

That definately brought the previously rated movies back. But newly rated movies are not added to the list / updated.

Should also be fixed now.

Thanks, working perfectly now Smile
Hi Phil,

As I can't get "Artworkdownloader : Choose Art" i.e. Sendclick*2003,10) to work from within a new version of DIaloginfo.xml with extendedinfo calls or from the context menu ( as a possible placement to allow moving to new DialogVideoInfo), then I'm trying to update the current DialogVideoInfo and move away from moreinfo / metadata actors and replace with extendedinfo calls

The code at the moment for actors is:

Code:
<item>
    <label>$INFO[Container(50).ListItem(0).Label]</label>
    <label2>$INFO[Container(50).ListItem(0).Label2]</label2>
    <thumb>$INFO[Container(50).ListItem(0).Thumb]</thumb>
    <visible>!IsEmpty(Container(50).ListItemNoWrap(0).Label)</visible>
    <onclick>SetProperty(Position,0)</onclick>
    <onclick>SetFocus(599)</onclick>
</item>

Which I've changed to:

Code:
<item>
    <label>$INFO[Container(50).ListItem(0).Label]</label>
    <label2>$INFO[Container(50).ListItem(0).Label2]</label2>
    <thumb>$INFO[Container(50).ListItem(0).Thumb]</thumb>
    <visible>!IsEmpty(Container(50).ListItemNoWrap(0).Label)</visible>
    <!--onclick>SetProperty(Position,0)</onclick-->
    <!--onclick>SetFocus(599)</onclick-->
    <onclick>RunScript(script.extendedinfo,info=extendedactorinfo,name=$INFO[Container(50).Listitem(0).Label])</onclick>
</item>

When I select an actor now I get dialogbusy but then nothing? it seems script-ExtendedInfo Script-DialogInfo executes but nothing appears on screen and I've lost focus, if I press esc then it seems to exit script-ExtendedInfo Script-DialogInfo and return to the actors?

Here's my logfile > Logfile

Any ideas & pointers on what I've got wrong?

Mike

Edit:> Found it is loading but in the background see screenshot, you can see the text below dialogvideoinfo:

Image
Change the zorder.
Thanks Hither, looked it up in wiki and gave updated script-ExtendedInfo Script-DialogInfo to have <zorder>2</zorder> and it's no looking ok.

The only thing puzzling is that no zorder exists in any of xmls being used and also when I use the new version of DialogVideoInfo then when selecting an actor script script-ExtendedInfo Script-DialogInfo executes and works correctly i.e. displayed on top, strange?

Mike.
Hi,

Is there a extendedinfo replacement for this from metadata.actors:

---

** HOME WIDGET : Most Popular Artists Born Today **

Parameters:
RunScript(script.metadata.actors,borntoday[,limit,random])
limit : 1 - 100 max
random : random and choice limit in 100 peoples

For example:
<onload condition="System.HasAddon(script.metadata.actors)">RunScript(script.metadata.actors,borntoday,10,random)</onload>

---

I've searched the Readme for both extendedinfo and skin.info and couldn't find anything so just making sure?

If there isn't anything is there another solution for doing this available today?

Thanks,

Mike.
(2015-06-14, 17:43)Mike_Doc Wrote: [ -> ]Thanks Hither, looked it up in wiki and gave updated script-ExtendedInfo Script-DialogInfo to have <zorder>2</zorder> and it's no looking ok.

The only thing puzzling is that no zorder exists in any of xmls being used and also when I use the new version of DialogVideoInfo then when selecting an actor script script-ExtendedInfo Script-DialogInfo executes and works correctly i.e. displayed on top, strange?

Mike.

That´s because the xml is opened via python .doModal(), that somehow fucks up zorder. Needs a fix in core I think, you have to workaround it for now.
(2015-06-14, 20:18)Mike_Doc Wrote: [ -> ]Hi,

Is there a extendedinfo replacement for this from metadata.actors:

---

** HOME WIDGET : Most Popular Artists Born Today **

Parameters:
RunScript(script.metadata.actors,borntoday[,limit,random])
limit : 1 - 100 max
random : random and choice limit in 100 peoples

For example:
<onload condition="System.HasAddon(script.metadata.actors)">RunScript(script.metadata.actors,borntoday,10,random)</onload>

---

I've searched the Readme for both extendedinfo and skin.info and couldn't find anything so just making sure?

If there isn't anything is there another solution for doing this available today?

Thanks,

Mike.

info=popularpeople is available, but no direct replacement for that function.
Thanks for letting me know Phil.

I'll look into either replacing with your suggestion or removing as I think this metadata call has just recently broken for whatever reason and as such needs replaced / removed.
Another last bigger feature for 3.0:
The script should now properly detect tvshows which are available locally. (needs a button with id 120 in dialogvideoinfo, see ref implementation)
Again, like for movies, this relies on tvshows havin the same name locally and online (or a dbid passed to info=extendedtvshowinfo). No way I can improve that atm.
Still needs bit of tweaking, but the largest parts should work now.
Great changes. So far everything works really well.
Made another bigger change and implemented a basic WindowManager class which manages the opening/closing of all dialogs (last change, I promise Tongue )
I also changed behaviour so that when switching dialogs, the previoius dialog stays open until the new one has finished loading (before it closed instantly) I hope that doesnt cause side-effects. If it does, tell me. Wink
Would be nice to get at least 3 ACKs from skinners to make sure nothing important is broken. Please test esp. opening the dialog from different places (plugin section, program section, context menu, calls from DialogVideoInfo)
I haven't experienced any problems yet with latest Github Smile

I will keep testing the next couple of days as I'm currently adding more features...
Hi,

Attempting to do multiple executes onload of DialogAlbumInfo as such:

<onload condition="Container.Content(artists)">RunScript(script.extendedinfo,info=artistdetails,artistname=$ESCINFO[ListItem.Artist],silent=False)</onload>
<onload condition="Container.Content(artists)">RunScript(script.extendedinfo,info=artistevents&amp;&amp;artistname=$INFO[ListItem.Artist],silent=False)</onload>


I'm only getting one execution in the logfile for the artistdetails:

Code:
08:59:55 T:11056   DEBUG: script.extendedinfo: found artist id for Fleetwood Mac: bd13909f-1c29-4c27-a874-d4aaf27c5b1a
08:59:55 T:11056   DEBUG: script.extendedinfo: {
                                                "artist_mbid": "bd13909f-1c29-4c27-a874-d4aaf27c5b1a",
                                                "artistname": "Fleetwood Mac",
                                                "control": null,
                                                "default.py": "",
                                                "handle": null,
                                                "silent": "False"
                                            }
08:59:55 T:11056   DEBUG: script.extendedinfo: [
                                                "artistdetails"
                                            ]
08:59:55 T:11056   DEBUG: script.extendedinfo: prop load for http://www.theaudiodb.com/api/v1/json/58353d43204d68753987fl/search.php?s=Fleetwood+Mac. time: 0.002000
08:59:55 T:11056  NOTICE: finished
08:59:55 T:11056    INFO: CPythonInvoker(73, C:\Users\Mike\AppData\Roaming\Kodi\addons\script.extendedinfo-master\default.py): script successfully run
08:59:55 T:11056    INFO: Python script stopped

The artistevents doesn't seem to be working, so what have I got wrong?

Mike
Why do you want that call? You probably dont even know what it is doing (it's not documented yet), so you shouldnt need it.
DialogAlbumInfo has all these items within a content for 'upcoming concerts' and the relevant widget is empty so I presumed the call was missing as only the 'artistdetails' existed so I added the artistevents after it was confirmed extendedinfo is responsible for these infolabels

Code:
<content>
                                <item id="1">
                                    <label>$INFO[Window(Home).Property(ArtistEvents.1.Artists)]</label>
                                    <label2>$INFO[Window(Home).Property(ArtistEvents.1.Date)]</label2>
                                    <property name="City">$INFO[Window(Home).Property(ArtistEvents.1.City)]</property>
                                    <property name="Name">$INFO[Window(Home).Property(ArtistEvents.1.Name)]</property>
                                    <onclick>ActivateWindow(videos,plugin://plugin.video.youtube/kodion/search/query/?q=$INFO[Window(Home).Property(ArtistEvents.1.Artists)],return)</onclick>
                                    <onclick>Dialog.Close(musicinformation)</onclick>
                                    <visible>IntegerGreaterThan(Window(Home).Property(ArtistEvents.Count),0)</visible>
                                </item>
                                <item id="2">
                                    <label>$INFO[Window(Home).Property(ArtistEvents.2.Artists)]</label>
                                    <label2>$INFO[Window(Home).Property(ArtistEvents.2.Date)]</label2>
                                    <property name="City">$INFO[Window(Home).Property(ArtistEvents.2.City)]</property>
                                    <property name="Name">$INFO[Window(Home).Property(ArtistEvents.2.Name)]</property>
                                    <onclick>ActivateWindow(videos,plugin://plugin.video.youtube/kodion/search/query/?q=$INFO[Window(Home).Property(ArtistEvents.2.Artists)],return)</onclick>
                                    <onclick>Dialog.Close(musicinformation)</onclick>
                                    <visible>IntegerGreaterThan(Window(Home).Property(ArtistEvents.Count),1)</visible>
                                </item>
                                <item id="3">
                                    <label>$INFO[Window(Home).Property(ArtistEvents.3.Artists)]</label>
                                    <label2>$INFO[Window(Home).Property(ArtistEvents.3.Date)]</label2>
                                    <property name="City">$INFO[Window(Home).Property(ArtistEvents.3.City)]</property>
                                    <property name="Name">$INFO[Window(Home).Property(ArtistEvents.3.Name)]</property>
                                    <onclick>ActivateWindow(videos,plugin://plugin.video.youtube/kodion/search/query/?q=$INFO[Window(Home).Property(ArtistEvents.3.Artists)],return)</onclick>
                                    <onclick>Dialog.Close(musicinformation)</onclick>
                                    <visible>IntegerGreaterThan(Window(Home).Property(ArtistEvents.Count),2)</visible>
                                </item>
                                <item id="4">
                                    <label>$INFO[Window(Home).Property(ArtistEvents.4.Artists)]</label>
                                    <label2>$INFO[Window(Home).Property(ArtistEvents.4.Date)]</label2>
                                    <property name="City">$INFO[Window(Home).Property(ArtistEvents.4.City)]</property>
                                    <property name="Name">$INFO[Window(Home).Property(ArtistEvents.4.Name)]</property>
                                    <onclick>ActivateWindow(videos,plugin://plugin.video.youtube/kodion/search/query/?q=$INFO[Window(Home).Property(ArtistEvents.4.Artists)],return)</onclick>
                                    <onclick>Dialog.Close(musicinformation)</onclick>
                                    <visible>IntegerGreaterThan(Window(Home).Property(ArtistEvents.Count),3)</visible>
                                </item>
                                <item id="5">
                                    <label>$INFO[Window(Home).Property(ArtistEvents.5.Artists)]</label>
                                    <label2>$INFO[Window(Home).Property(ArtistEvents.5.Date)]</label2>
                                    <property name="City">$INFO[Window(Home).Property(ArtistEvents.5.City)]</property>
                                    <property name="Name">$INFO[Window(Home).Property(ArtistEvents.5.Name)]</property>
                                    <onclick>ActivateWindow(videos,plugin://plugin.video.youtube/kodion/search/query/?q=$INFO[Window(Home).Property(ArtistEvents.5.Artists)],return)</onclick>
                                    <onclick>Dialog.Close(musicinformation)</onclick>
                                    <visible>IntegerGreaterThan(Window(Home).Property(ArtistEvents.Count),4)</visible>
                                </item>
                                <item id="6">
                                    <label>$INFO[Window(Home).Property(ArtistEvents.6.Artists)]</label>
                                    <label2>$INFO[Window(Home).Property(ArtistEvents.6.Date)]</label2>
                                    <property name="City">$INFO[Window(Home).Property(ArtistEvents.6.City)]</property>
                                    <property name="Name">$INFO[Window(Home).Property(ArtistEvents.6.Name)]</property>
                                    <onclick>ActivateWindow(videos,plugin://plugin.video.youtube/kodion/search/query/?q=$INFO[Window(Home).Property(ArtistEvents.6.Artists)],return)</onclick>
                                    <onclick>Dialog.Close(musicinformation)</onclick>
                                    <visible>IntegerGreaterThan(Window(Home).Property(ArtistEvents.Count),5)</visible>
                                </item>
                                <item id="7">
                                    <label>$INFO[Window(Home).Property(ArtistEvents.7.Artists)]</label>
                                    <label2>$INFO[Window(Home).Property(ArtistEvents.7.Date)]</label2>
                                    <property name="City">$INFO[Window(Home).Property(ArtistEvents.7.City)]</property>
                                    <property name="Name">$INFO[Window(Home).Property(ArtistEvents.7.Name)]</property>
                                    <onclick>ActivateWindow(videos,plugin://plugin.video.youtube/kodion/search/query/?q=$INFO[Window(Home).Property(ArtistEvents.7.Artists)],return)</onclick>
                                    <onclick>Dialog.Close(musicinformation)</onclick>
                                    <visible>IntegerGreaterThan(Window(Home).Property(ArtistEvents.Count),6)</visible>
                                </item>
                                <item id="8">
                                    <label>$INFO[Window(Home).Property(ArtistEvents.8.Artists)]</label>
                                    <label2>$INFO[Window(Home).Property(ArtistEvents.8.Date)]</label2>
                                    <property name="City">$INFO[Window(Home).Property(ArtistEvents.8.City)]</property>
                                    <property name="Name">$INFO[Window(Home).Property(ArtistEvents.8.Name)]</property>
                                    <onclick>ActivateWindow(videos,plugin://plugin.video.youtube/kodion/search/query/?q=$INFO[Window(Home).Property(ArtistEvents.8.Artists)],return)</onclick>
                                    <onclick>Dialog.Close(musicinformation)</onclick>
                                    <visible>IntegerGreaterThan(Window(Home).Property(ArtistEvents.Count),7)</visible>
                                </item>
                                <item id="9">
                                    <label>$INFO[Window(Home).Property(ArtistEvents.9.Artists)]</label>
                                    <label2>$INFO[Window(Home).Property(ArtistEvents.9.Date)]</label2>
                                    <property name="City">$INFO[Window(Home).Property(ArtistEvents.9.City)]</property>
                                    <property name="Name">$INFO[Window(Home).Property(ArtistEvents.9.Name)]</property>
                                    <onclick>ActivateWindow(videos,plugin://plugin.video.youtube/kodion/search/query/?q=$INFO[Window(Home).Property(ArtistEvents.9.Artists)],return)</onclick>
                                    <onclick>Dialog.Close(musicinformation)</onclick>
                                    <visible>IntegerGreaterThan(Window(Home).Property(ArtistEvents.Count),8)</visible>
                                </item>
                                <item id="10">
                                    <label>$INFO[Window(Home).Property(ArtistEvents.10.Artists)]</label>
                                    <label2>$INFO[Window(Home).Property(ArtistEvents.10.Date)]</label2>
                                    <property name="City">$INFO[Window(Home).Property(ArtistEvents.10.City)]</property>
                                    <property name="Name">$INFO[Window(Home).Property(ArtistEvents.10.Name)]</property>
                                    <onclick>ActivateWindow(videos,plugin://plugin.video.youtube/kodion/search/query/?q=$INFO[Window(Home).Property(ArtistEvents.10.Artists)],return)</onclick>
                                    <onclick>Dialog.Close(musicinformation)</onclick>
                                    <visible>IntegerGreaterThan(Window(Home).Property(ArtistEvents.Count),9)</visible>
                                </item>
                                <item id="11">
                                    <label>$INFO[Window(Home).Property(ArtistEvents.11.Artists)]</label>
                                    <label2>$INFO[Window(Home).Property(ArtistEvents.11.Date)]</label2>
                                    <property name="City">$INFO[Window(Home).Property(ArtistEvents.11.City)]</property>
                                    <property name="Name">$INFO[Window(Home).Property(ArtistEvents.11.Name)]</property>
                                    <onclick>ActivateWindow(videos,plugin://plugin.video.youtube/kodion/search/query/?q=$INFO[Window(Home).Property(ArtistEvents.11.Artists)],return)</onclick>
                                    <onclick>Dialog.Close(musicinformation)</onclick>
                                    <visible>IntegerGreaterThan(Window(Home).Property(ArtistEvents.Count),10)</visible>
                                </item>
                                <item id="12">
                                    <label>$INFO[Window(Home).Property(ArtistEvents.12.Artists)]</label>
                                    <label2>$INFO[Window(Home).Property(ArtistEvents.12.Date)]</label2>
                                    <property name="City">$INFO[Window(Home).Property(ArtistEvents.12.City)]</property>
                                    <property name="Name">$INFO[Window(Home).Property(ArtistEvents.12.Name)]</property>
                                    <onclick>ActivateWindow(videos,plugin://plugin.video.youtube/kodion/search/query/?q=$INFO[Window(Home).Property(ArtistEvents.12.Artists)],return)</onclick>
                                    <onclick>Dialog.Close(musicinformation)</onclick>
                                    <visible>IntegerGreaterThan(Window(Home).Property(ArtistEvents.Count),11)</visible>
                                </item>
                            </content>

These may have existed from when the skin used moreinfo and I'm trying to remove moreinfo from the skin at the moment.

Mike.