2019-07-20, 16:31
Dunno if this is a good idea for slow devices. I guess lowering to 0.5 is the minimum I would go. Blurring isn't the only thing that is running in the service.
(2019-07-20, 16:31)sualfred Wrote: Dunno if this is a good idea for slow devices. I guess lowering to 0.5 is the minimum I would go. Blurring isn't the only thing that is running in the service.
(2019-07-20, 21:59)sualfred Wrote: getbydbid argYou mean this?
plugin://script.embuary.helper?info=getcast&type=$INFO[ListItem.DBType]&dbid=$INFO[ListItem.DBID]
Quote:add a hidden containeryou mean a second container list?
<control type="group">
<control type="list" id="345">
<left>3000</left>
<height>1</height>
<width>1</width>
<autoscroll>true</autoscroll>
<scrolltime>5000</scrolltime>
<itemlayout/>
<focusedlayout/>
<content>plugin://script.embuary.helper/?info=getresourceimages&addon=resource.images.actorart&string='$ESCINFO[ListItem.Cast]'</content>
</control>
<control type="image">
<left>1000</left>
<top>150</top>
<width>548</width>
<height>548</height>
<texture background="true">$INFO[Container(345).ListItem.Icon]</texture>
</control>
</control>
<control type="group">
<control type="list" id="344">
<left>3000</left>
<height>1</height>
<width>1</width>
<autoscroll>true</autoscroll>
<scrolltime>5000</scrolltime>
<itemlayout/>
<focusedlayout/>
<content>plugin://script.embuary.helper?info=getcast&type=$INFO[ListItem.DBType]&dbid=$INFO[ListItem.DBID]</content>
</control>
<control type="list" id="345">
<left>3000</left>
<height>1</height>
<width>1</width>
<autoscroll>true</autoscroll>
<scrolltime>5000</scrolltime>
<itemlayout/>
<focusedlayout/>
<content>$INFO[Container(344).plugin://script.embuary.helper/?info=getresourceimages&addon=resource.images.actorart&string='$ESCINFO[ListItem.Cast]'</content>
</control>
<control type="image">
<left>1000</left>
<top>150</top>
<width>548</width>
<height>548</height>
<aspectratio align="center" aligny="bottom">keep</aspectratio>
<texture background="true">$INFO[Container(345).ListItem.Icon]</texture>
<fadetime>1000</fadetime>
</control>
</control>
<control type="group">
<control type="list" id="344">
<left>3000</left>
<height>1</height>
<width>1</width>
<autoscroll>true</autoscroll>
<scrolltime>5000</scrolltime>
<itemlayout/>
<focusedlayout/>
<content>plugin://script.embuary.helper?info=getcast&type=$INFO[ListItem.DBType]&dbid=$INFO[ListItem.DBID]</content>
</control>
<control type="list" id="345">
<left>3000</left>
<height>1</height>
<width>1</width>
<autoscroll>true</autoscroll>
<scrolltime>5000</scrolltime>
<itemlayout/>
<focusedlayout/>
<content>plugin://script.embuary.helper/?info=getresourceimages&addon=resource.images.actorart&string='$ESCINFO[Container(344).ListItem.Label]'</content>
</control>
<control type="image">
<left>1000</left>
<top>150</top>
<width>548</width>
<height>548</height>
<aspectratio align="center" aligny="bottom">keep</aspectratio>
<texture background="true">$INFO[Container(345).ListItem.Icon]</texture>
<fadetime>1000</fadetime>
</control>
</control>
(2019-07-20, 11:19)sualfred Wrote: @wyrm
The common user don't set his region properly. A German user for example sets his language to "German", but doesn't change his region from Belgium (default for whatever reason) to Germany.
You already can do this:
https://github.com/sualfred/script.embua...tem-locale
This returns the system locale instead of the Kodi one.
And build a variable based on the returned value:
https://www.iban.com/country-codes
xml:<variable name="longcountry">
<value condition="String.IsEqual(Window(home).Property(SystemLocale),DE">Germany</value>
.....
<value>foobar</value>
</variable>
Is this enough, or do you really need the Kodi set one that is set in guisettings.xml?
(2019-07-21, 08:57)sualfred Wrote: @roidy
is 0.5 enough or have you lowered it?
python:old_image = ""
def image_filter(prop='listitem',file=None,radius=BLUR_RADIUS):
image = file if file is not None else xbmc.getInfoLabel('Control.GetLabel(%s)' % BLUR_CONTAINER)
try:
radius = int(radius)
except ValueError:
log('No valid radius defined for blurring')
return
if image and image != old_image:
old_image = image
blurred_image, imagecolor = image_blur(image,radius)
winprop(prop + '_blurred', blurred_image)
winprop(prop + '_color', imagecolor)
RunScript(script.embuary.helper,action=getkodisetting,setting=locale.country)
Window(home).property(locale.country)
RunScript(script.embuary.helper,action=getkodisetting,setting=locale.country,strip=timeformat)
Window(home).property(locale.country)