2019-07-11, 08:42
(2019-07-11, 08:40)sualfred Wrote: usage in dialog video info:working also for Krypton ported EmbuaryHelper?
(2019-07-11, 08:40)sualfred Wrote: usage in dialog video info:working also for Krypton ported EmbuaryHelper?
(2019-07-11, 08:50)sualfred Wrote: I can backport this function if required.Only if the necessary time and motivation is available.
<control type="multiimage" id="98767">
<left>520</left>
<top>150</top>
<height>550</height>
<width>550</width>
<timeperimage>6000</timeperimage>
<randomize>false</randomize>
<fadetime>1000</fadetime>
<aspectratio aligny="bottom">keep</aspectratio>
<imagepath background="true">$INFO[Window(home).Property(genre.1).ListItem.Label,resource://resource.images.moviecountryicons.flags/,.png]</imagepath>
<visible>Container.Content(movies)</visible>
</control>
<control type="list">
<itemlayout>
<control type="image">
<texture>$INFO[ListItem.Label,resource://resource.images.moviecountryicons.flags/,.png]</texture>
</control>
</itemlayout>
<focusedlayout>
<control type="image">
<texture>$INFO[ListItem.Label,resource://resource.images.moviecountryicons.flags/,.png]</texture>
</control>
</focusedlayout>
<content>
<item>
<label>$INFO[Window(home).Property(genre.0)]</label>
<visible>!String.IsEmpty(Window(home).Property(genre.0))</visible>
</item>
<item>
<label>$INFO[Window(home).Property(genre.1)]</label>
<visible>!String.IsEmpty(Window(home).Property(genre.1))</visible>
</item>
<item>
<label>$INFO[Window(home).Property(genre.2)]</label>
<visible>!String.IsEmpty(Window(home).Property(genre.2))</visible>
</item>
.....
....
</content>
</control>
...
<control type="image">
<texture>$INFO[Window(home).Property(genre.1),resource://resource.images.moviecountryicons.flags/,.png]</texture>
</control>
<control type="image">
<texture>$INFO[Window(home).Property(genre.2),resource://resource.images.moviecountryicons.flags/,.png]</texture>
</control>
....
(2019-07-11, 08:40)sualfred Wrote: https://github.com/sualfred/script.embua...a63e466ba5
usage in dialog video info:
Code:
<onload>runscript(script.embuary.helper,action=split,property=genre,separator='" / "',value='$ESCINFO[ListItem.Genre]')</onload>
<onload>runscript(script.embuary.helper,action=split,property=studio,separator='" / "',value='$ESCINFO[ListItem.Studio]')</onload>
<onload>runscript(script.embuary.helper,action=split,property=country,separator='" / "',value='$ESCINFO[ListItem.Country]')</onload>
... and what ever floats your boat ...
Results in
Code:
$INFO[Window(home).Property(genre.0)]
$INFO[Window(home).Property(genre.1)]
... etc etc ..
<onload condition="!Skin.HasSetting(FocusMonitor)">Skin.ToggleSetting(FocusMonitor)</onload>
(2019-07-11, 06:20)sualfred Wrote: But I'm not a fan to add a "focus monitor" to support this for all windows and listings. It's expensive and it's one of the things that made the skin helper service so slow. And it's always slightly delayed and only working for the focused item.
xml:
<content>plugin://script.embuary.helper/?info=bydbid&dbid=$INFO[ListItem.DBID]&type=$INFO[ListItem.DBType]</content>
xml:
$INFO[Container(2121).ListItem.Property(Genre.0)]
xml:2019-07-12 11:22:23.652 T:3288 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.AttributeError'>
Error Contents: 'PluginContent' object has no attribute 'method_details'
Traceback (most recent call last):
File "C:\Leia2\portable_data\addons\script.embuary.helper\plugin.py", line 97, in <module>
Main()
File "C:\Leia2\portable_data\addons\script.embuary.helper\plugin.py", line 27, in __init__
self.getinfos()
File "C:\Leia2\portable_data\addons\script.embuary.helper\plugin.py", line 83, in getinfos
plugin.get_bydbid()
File "C:\Leia2\portable_data\addons\script.embuary.helper\resources\lib\plugin_content.py", line 65, in get_bydbid
json_query = json_call(self.method_details,
AttributeError: 'PluginContent' object has no attribute 'method_details'
-->End of Python script error report<--
2019-07-12 11:22:23.701 T:3960 ERROR: XFILE::CDirectory::GetDirectory - Error getting plugin://script.embuary.helper/?info=bydbid&dbid=&type=
xml:
<variable name="getDBIDcontent">
<value condition="!String.IsEmpty(ListItem.DBID) + [String.IsEqual(ListItem.DBType,movie) | String.IsEqual(ListItem.DBType,tvshow) | String.IsEqual(ListItem.DBType,episode)]">plugin://script.embuary.helper/?info=bydbid&dbid=$INFO[ListItem.DBID]&type=$INFO[ListItem.DBType]</value>
<value>-</value>
</variable>
xml:
<content>$VAR[getDBIDcontent]</content>