2023-06-06, 11:42
thanks it works
python:def check_screensaver(self):
'''Allow user to disable screensaver on fullscreen music playback'''
if getCondVisibility(
"Window.IsActive(visualisation) + Skin.HasSetting(SkinHelper.DisableScreenSaverOnFullScreenMusic)"):
if not self.screensaver_disabled:
# disable screensaver when fullscreen music active
self.screensaver_disabled = True
screensaver_setting = kodi_json('Settings.GetSettingValue', '{"setting":"screensaver.mode"}')
if screensaver_setting:
self.screensaver_setting = screensaver_setting
kodi_json('Settings.SetSettingValue', {"setting": "screensaver.mode", "value": None})
log_msg(
"Disabled screensaver while fullscreen music playback - previous setting: %s" %
self.screensaver_setting, xbmc.LOGINFO)
elif self.screensaver_disabled and self.screensaver_setting:
# enable screensaver again after fullscreen music playback was ended
kodi_json('Settings.SetSettingValue', {"setting": "screensaver.mode", "value": self.screensaver_setting})
self.screensaver_disabled = False
self.screensaver_setting = None
log_msg(
"fullscreen music playback ended - restoring screensaver: %s" %
self.screensaver_setting, xbmc.LOGINFO)
python:def check_screensaver(self):
'''Allow user to disable screensaver on fullscreen music playback'''
if getCondVisibility(
"Window.IsActive(visualisation) + Skin.HasSetting(SkinHelper.DisableScreenSaverOnFullScreenMusic)"):
xbmc.executebuiltin('InhibitScreensaver(true)')
elif getCondVisibility(
"!Window.IsActive(visualisation) | !Skin.HasSetting(SkinHelper.DisableScreenSaverOnFullScreenMusic)"):
xbmc.executebuiltin('InhibitScreensaver(false)')
(2024-02-16, 19:46)latts9923 Wrote: In Nexus, I am not seeing the country label for some Movies with multiple countries using $INFO[Window(Home).Property(SkinHelper.ListItem.Country)]. I also tried $INFO[Window(Home).Property(SkinHelper.ListItem.Country.0)], but still no joy. For the Movies that are displaying a label, it is a two letter country...such as "us" for United States of America. With Matrix using v1.1.43 I see "United States of America" for the label, but not with v1.20.1 for Nexus.
xml:<onload condition="System.HasAddon(script.skin.helper.service)">RunScript(script.skin.helper.service,action=stripstring,splitchar= /,string=$INFO[Window(Home).Property(SkinHelper.ListItem.Country)],output=country.flag,index=0)</onload>
(2024-02-18, 18:51)Dumyat Wrote: Does anybody know if a particular date format can be changed?
When I call the premiere date for PVR items, I'm getting yyyy/mm/dd returned, but I would like to see the regular format used for my region of dd/mm/yyyy.
Any ideas if this is possible?
(2024-02-18, 20:43)Fuchs2468 Wrote:Ah, I wasn't aware of that feature.(2024-02-18, 18:51)Dumyat Wrote: Does anybody know if a particular date format can be changed?You could use "$INFO[Window(Home).Property(SkinHelper.ListItem.premiered.formatted)]" then you will get this format "18 Feb 2024".
When I call the premiere date for PVR items, I'm getting yyyy/mm/dd returned, but I would like to see the regular format used for my region of dd/mm/yyyy.
Any ideas if this is possible?
(2024-02-18, 15:02)latts9923 Wrote: @Fuchs2468
Thanks...yeah, I use "$INFO[Window(Home).Property(SkinHelper.ListItem.Country)]" for Sets, but I also use it to display a country flag instead of text in the Video Info screen by using...
xml:<onload condition="System.HasAddon(script.skin.helper.service)">RunScript(script.skin.helper.service,action=stripstring,splitchar= /,string=$INFO[Window(Home).Property(SkinHelper.ListItem.Country)],output=country.flag,index=0)</onload>
xml:<variable name="value_countryflag">
<value condition="!String.IsEmpty(ListItem.Country)">$VAR[countries_path]$INFO[ListItem.Country,,.png]</value>
<value condition="String.IsEmpty(ListItem.Country) + !String.IsEmpty(Window(Home).Property(country.flag))">$INFO[Window(Home).Property(country.flag),resource://resource.images.moviecountryicons.flags/,.png]</value>
</variable>
(2024-02-19, 04:07)latts9923 Wrote: @Fuchs2468
Hmm...I use this same variable in Matrix and it works just fine for Movies that are missing the Country value in the database. There has to be something funky with the Nexus version of Skin Helper or Metadatautils. Like you said, the Sets work fine in Nexus...I see the country text and flag. But I get nothing for Movies.
xml:RunScript(script.skin.helper.service,action=stripstring,splitchar= / ,string=$INFO[Window(Home).Property(SkinHelper.ListItem.Country)],output=country.flag,index=0)
xml:$INFO[Window(Home).Property(country.flag),resource://<my_languageflags>/,.png]
xml:resource://<my_languageflags>/$INFO[Window(Home).Property(country.flag)].png
xml:RunScript(script.embuary.helper,action=split,value='$ESCINFO[ListItem.Country]',separator='" / "',prop=Mysplit)