From 588d0df4d5e6592278069c9be8388691113511a8 Mon Sep 17 00:00:00 2001 From: realcopacetic Date: Thu, 9 May 2024 21:09:05 +0100 Subject: [PATCH] fix for trailer_autoscroll --- 16x9/Custom_1140_Widget_Settings.xml | 2 +- 16x9/Expressions.xml | 2 +- 16x9/Home.xml | 4 ---- 16x9/Templates_Panels.xml | 5 ++++- 16x9/Timers.xml | 26 +++++++++++++------------- README.md | 3 +++ addon.xml | 4 ++-- 7 files changed, 24 insertions(+), 22 deletions(-) diff --git a/16x9/Custom_1140_Widget_Settings.xml b/16x9/Custom_1140_Widget_Settings.xml index dacb4767..573fc27c 100644 --- a/16x9/Custom_1140_Widget_Settings.xml +++ b/16x9/Custom_1140_Widget_Settings.xml @@ -3,7 +3,7 @@ 3200 - + diff --git a/16x9/Expressions.xml b/16x9/Expressions.xml index 9cf16cda..0ced86b1 100644 --- a/16x9/Expressions.xml +++ b/16x9/Expressions.xml @@ -30,7 +30,7 @@ [$EXP[Background_FadeOut_Exceptions] + Skin.String(Background_Slideshow,Artists)] | Window.Next(music) Window.Previous(addonbrowser) + String.IsEmpty(Window(home).Property(Container_Addons_NonRepo)) - [Window.Previous(skinsettings) + !Window.IsVisible(1140)] | Window.Previous(interfacesettings) | Window.Previous(mediasettings) | Window.Previous(playersettings) | Window.Previous(systemsettings) | Window.Previous(servicesettings) | Window.Previous(gamesettings) | Window.Previous(pvrsettings) | Window.Previous(profiles) | Window.Previous(systeminfo) | Window.Previous(filemanager) + Window.Previous(skinsettings) | Window.Previous(interfacesettings) | Window.Previous(mediasettings) | Window.Previous(playersettings) | Window.Previous(systemsettings) | Window.Previous(servicesettings) | Window.Previous(gamesettings) | Window.Previous(pvrsettings) | Window.Previous(profiles) | Window.Previous(systeminfo) | Window.Previous(filemanager) Window.Previous(home) + Skin.HasSetting(Home_Background_Override_Enabled) + String.IsEmpty(window(home).property(Home_Widget)) Window.Previous(music) + Container.Content(playlists) + Skin.String(Background_Slideshow,Artists) Window.Previous(musicplaylisteditor) + Skin.String(Background_Slideshow,Artists) diff --git a/16x9/Home.xml b/16x9/Home.xml index c0cef3de..dc168ac0 100644 --- a/16x9/Home.xml +++ b/16x9/Home.xml @@ -82,9 +82,5 @@ - - right - - \ No newline at end of file diff --git a/16x9/Templates_Panels.xml b/16x9/Templates_Panels.xml index 8a821efe..4cf6a3ea 100644 --- a/16x9/Templates_Panels.xml +++ b/16x9/Templates_Panels.xml @@ -47,6 +47,9 @@ + + + @@ -58,7 +61,7 @@ - + diff --git a/16x9/Timers.xml b/16x9/Timers.xml index 83e2d388..fe7b91f8 100644 --- a/16x9/Timers.xml +++ b/16x9/Timers.xml @@ -49,7 +49,7 @@ trailer_autoplay_home Window.Is(home) + Skin.HasSetting(Trailer_Autoplay) + !String.IsEmpty(window(home).property(Home_Widget)) + Window.IsVisible(1160) + !Player.HasMedia - String.IsEmpty(Window(home).Property(Trailer_Autoplay)) + !Player.HasVideo + !String.IsEmpty(ListItem.Trailer) + String.IsEmpty(Window(home).Property(Trailer_Autoplay)) + !Player.HasVideo SetProperty(Trailer_Autoplay,true,home) PlayMedia($ESCINFO[ListItem.Trailer],1,noresume) SetProperty(Trailer_Autoplay,true,home) @@ -71,17 +71,17 @@ widget_spotlight - Control.HasFocus(3201) | Control.HasFocus(3202) | Control.HasFocus(3203) | Control.HasFocus(3204) | Control.HasFocus(3205) | Control.HasFocus(3206) | Control.HasFocus(3207) | Control.HasFocus(3208) | Control.HasFocus(3209) - [[Integer.IsGreaterOrEqual(Skin.TimerElapsedSecs(widget_spotlight),15) + System.IdleTime(15) + String.IsEmpty(Window(home).Property(Trailer_Autoscroll))] | [Integer.IsGreaterOrEqual(Skin.TimerElapsedSecs(widget_spotlight),4) + System.IdleTime(4) + String.IsEqual(Window(home).Property(Trailer_Autoscroll),true)]] + !Window.IsVisible(movieinformation) + !Player.HasVideo - Control.Move(3201,1) - Control.Move(3202,1) - Control.Move(3203,1) - Control.Move(3204,1) - Control.Move(3205,1) - ClearProperty(Trailer_Autoplay,home) - Control.Move(3206,1) - Control.Move(3207,1) - Control.Move(3208,1) - Control.Move(3209,1) + [Skin.HasSetting(Widget1_AutoScroll) + Control.HasFocus(3201)] | [Skin.HasSetting(Widget2_AutoScroll) + Control.HasFocus(3202)] | [Skin.HasSetting(Widget3_AutoScroll) + Control.HasFocus(3203)] | [Skin.HasSetting(Widget4_AutoScroll) + Control.HasFocus(3204)] | [Skin.HasSetting(Widget5_AutoScroll) + Control.HasFocus(3205)] | [Skin.HasSetting(Widget6_AutoScroll) + Control.HasFocus(3206)] | [Skin.HasSetting(Widget7_AutoScroll) + Control.HasFocus(3207)] | [Skin.HasSetting(Widget8_AutoScroll) + Control.HasFocus(3208)] | [Skin.HasSetting(Widget9_AutoScroll) + Control.HasFocus(3209)] + Player.HasVideo | Window.IsVisible(movieinformation) | Window.IsVisible(shutdownmenu) | Window.IsVisible(busydialog) + [[!Skin.HasSetting(Widget1_Trailer_Autoplay) + Integer.IsGreaterOrEqual(Skin.TimerElapsedSecs(widget_spotlight),8) + System.IdleTime(8)] | [Skin.HasSetting(Widget1_Trailer_Autoplay) + Integer.IsGreaterOrEqual(Skin.TimerElapsedSecs(widget_spotlight),2) + System.IdleTime(2) + Integer.IsGreaterOrEqual(Skin.TimerElapsedSecs(trailer_autoplay_home),2)]] + !Window.IsVisible(movieinformation) + !Player.HasVideo + !Window.IsVisible(shutdownmenu) + !Window.IsVisible(busydialog) + ClearProperty(Trailer_Autoplay,home) + Control.Move(3201,1) + Control.Move(3202,1) + Control.Move(3203,1) + Control.Move(3204,1) + Control.Move(3205,1) + Control.Move(3206,1) + Control.Move(3207,1) + Control.Move(3208,1) diff --git a/README.md b/README.md index a8c56472..a8ce5b27 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,9 @@ or send a letter to Creative Commons, 171 Second Street, Suite 300, San Francisc ### Changelog --- +**1.3.6** +- Fix for preventing widgets from auto-playing trailers when auto-scroll also enabled + **1.3.5** - Added visual listitem indicator for Collections (sets) and items with VideoVersions - Added tvchannels window diff --git a/addon.xml b/addon.xml index 6edf5771..652a25ba 100644 --- a/addon.xml +++ b/addon.xml @@ -1,5 +1,5 @@ - + @@ -7,7 +7,7 @@ - +