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.
hmm i see, seems to be a bug in buggalo script:

21:58:03 T:1709342800 ERROR: body += '<td>%s</td>' % str(values[key])
21:58:03 T:1709342800 ERROR: UnicodeEncodeError: 'ascii' codec can't encode character u'\xf3' in position 16: ordinal not in range(128)

i deactivated it for now, the newest GIT should show the actual error then in debug log.

https://github.com/phil65/script.extende...4ada69fc9b
Here's a log using the latest GIT -

Debug log

Busy dialog starts, kaitoast dialog reports error with extendedinfo, Kodi hangs with the busy dialog going.
ok, that helps Smile
try again with newest commit, please.
Thanks, I'll give a go when I finish work.

1200 commits - congratulations. Laugh

EDIT: Looking good so far, thanks.
Is there a way to retrieve a tv show's network / studio in script-ExtendedInfo Script-DialogVideoInfo.xml outside of container 1450?

So similar to
PHP Code:
$INFO[Window.Property(movie.Studio)] 

but for shows ?
Container(1450).ListItem.Label should work.
(2015-02-21, 21:36)phil65 Wrote: [ -> ]Container(1450).ListItem.Label should work.

It does, but I need it to work if 1450 is hidden too Smile
If your just looking for the studio logo with a text fallback, this comes close (movies / tvshows).
PHP Code:
<control type="group">
                        <
width>198</width>
                        <
control type="group">
                            <
visible>!IntegerGreaterThan(Container(1450).NumItems,0)</visible>
                            <
control type="image" id="800011">
                                <
colordiffuse>grey</colordiffuse>
                                <
width>198</width>
                                <include>
MediaFlagVars</include>
                                <
bordersize>2</bordersize>
                                <
texture>$INFO[Container(550).ListItem(0).label,flags/studios/,.png]</texture>
                            </
control
                            <
control type="label">
                                <
left>0</left>
                                <
width>198</width>
                                <
height>90</height>
                                <
align>center</align>
                                <
label>$INFO[Container(550).ListItem(0).label]</label>
                                <
font>font10</font>
                                <
textcolor>grey</textcolor>
                                <
wrapmultiline>true</wrapmultiline>
                                <
visible>IsEmpty(Control.GetLabel(800011))</visible>
                            </
control>
                        </
control>
                        <
control type="group">
                            <
visible>IntegerGreaterThan(Container(1450).NumItems,0)</visible>
                            <
control type="image" id="800012">
                                <
colordiffuse>grey</colordiffuse>
                                <
width>198</width>
                                <include>
MediaFlagVars</include>
                                <
bordersize>2</bordersize>
                                <
texture>$INFO[Container(1450).ListItem(0).label,flags/studios/,.png]</texture>
                            </
control>
                            <
control type="label">
                                <
left>0</left>
                                <
width>198</width>
                                <
height>90</height>
                                <
align>center</align>
                                <
label>$INFO[Container(1450).ListItem(0).label]</label>
                                <
font>font10</font>
                                <
textcolor>grey</textcolor>
                                <
wrapmultiline>true</wrapmultiline>
                                <
visible>IsEmpty(Control.GetLabel(800012))</visible>
                            </
control>
                        </
control>
                    </
control
(2015-02-22, 09:57)Steveb Wrote: [ -> ]If your just looking for the studio logo with a text fallback, this comes close (movies / tvshows).
---

Thanks, but I just need the label. And this also relies on container 1450 being visible.
Yea, no probs. The 'NumItems,0' logic should still do the trick, > than (tvshow (visible)) < (movie (not visible)). That's just my interpretation. Smile. But I'm not looking at your code, so who knows. Mix and match, you'll work it out. Wink
(2015-02-22, 10:38)Steveb Wrote: [ -> ]Yea, no probs. The 'NumItems,0' logic should still do the trick, > than (tvshow (visible)) < (movie (not visible)). That's just my interpretation. Smile. But I'm not looking at your code, so who knows. Mix and match, you'll work it out. Wink

I misread earlier, thanks. The thing is, I plan to make every section customisable. So the user can select which sections will be displayed. Therefore it cannot rely on the visibility of containers, be it 550 or 1450 Smile
Also, this will return the studio name instead of the network name. I some cases these are the same or similar, but often they are not. I feel it would look weird when the name is different from the network name that is used in other (non extended info) windows.
@Jeroen - Can you use a conditional fade animation instead of a visibility condition?
I'm afraid not, because of nesting of controls. Simplified I am using:

Code:
<grouplist>
    <group>
        <labels></labels>
        <buttons></buttons>
        <panel id="550">
    </group>
    <group>
        <labels></labels>
        <buttons></buttons>
        <panel id="1450">
    </group>
</grouplist>

Using a fade animation would just leave gaps in the grouplist. And the groups need specific heights.
Yep, I totally get where your coming from now. Ask phil65 for a update, nicely. Smile . I don't think that can be done with skin bools, but I would love to be proven wrong. Smile
(2015-02-16, 18:46)Jeroen Wrote: [ -> ]
(2015-02-16, 16:50)phil65 Wrote: [ -> ]
(2015-02-16, 13:03)Jeroen Wrote: [ -> ]Anyone else experiencing troubles starting the add-on lately? I have tried several I* nightly builds, and EI crashes 100% of the time, regardless of how it was started (starting from the add-on browser, through context menu buttons, buttons in movie info dialog, etc). I also tried phil's skin to make sure it's not an issue with my skin, but same story there. Also restored defaults and deleted the cache.

so that only happens on I*? Debug log?

Just tried with 14.1, no crashing there. Went back to the most recent I* build and the crashing is back.

Hopefully this log will help: http://pastebin.com/n0DSLJg6 This is when trying to open the actor info from the context menu.

The crash dialog that comes up doesn't let me submit the report.

I didn't see any errors relating to extended info but you'll probably make more sense out of it Smile

@phil: did you get a chance to look at this? Still crashing for me on nightlies.

Another question / problem I am facing: no matter what I try I am not able to set a default control, I have to press a direction button and then the control I set as default gets focused. System.CurrentControl returns empty in all cases. Does the script expect certain control ID's to always be there in order to set the default focus?