From 9ed7b55891360f49574f6cf4e1b7d45e41bafe9e Mon Sep 17 00:00:00 2001 From: Christian Gade Date: Mon, 31 Aug 2020 14:39:31 +0200 Subject: [PATCH] Dynamic content for home screen widgets (#83) --- 720p/IncludesHomeRecentlyAdded.xml | 292 ++--------------------------- addon.xml | 4 +- changelog.txt | 4 + 3 files changed, 26 insertions(+), 274 deletions(-) diff --git a/720p/IncludesHomeRecentlyAdded.xml b/720p/IncludesHomeRecentlyAdded.xml index e0ce60a..484814c 100644 --- a/720p/IncludesHomeRecentlyAdded.xml +++ b/720p/IncludesHomeRecentlyAdded.xml @@ -59,7 +59,7 @@ 10 160 170 - $INFO[ListItem.Icon] + $INFO[ListItem.Art(poster)] keep button-nofocus.png 5 @@ -92,7 +92,7 @@ 10 160 170 - $INFO[ListItem.Icon] + $INFO[ListItem.Art(poster)] keep folder-focus.png 5 @@ -103,7 +103,7 @@ 10 160 170 - $INFO[ListItem.Icon] + $INFO[ListItem.Art(poster)] keep button-nofocus.png 5 @@ -137,88 +137,7 @@ Control.HasFocus(8000) - - - - - PlayMedia($ESCINFO[Window.Property(LatestMovie.1.Path)]) - DefaultVideoCover.png - $INFO[Window.Property(LatestMovie.1.Thumb)] - !String.IsEmpty(Window.Property(LatestMovie.1.Title)) - - - - - PlayMedia($ESCINFO[Window.Property(LatestMovie.2.Path)]) - DefaultVideoCover.png - $INFO[Window.Property(LatestMovie.2.Thumb)] - !String.IsEmpty(Window.Property(LatestMovie.2.Title)) - - - - - PlayMedia($ESCINFO[Window.Property(LatestMovie.3.Path)]) - DefaultVideoCover.png - $INFO[Window.Property(LatestMovie.3.Thumb)] - !String.IsEmpty(Window.Property(LatestMovie.3.Title)) - - - - - PlayMedia($ESCINFO[Window.Property(LatestMovie.4.Path)]) - DefaultVideoCover.png - $INFO[Window.Property(LatestMovie.4.Thumb)] - !String.IsEmpty(Window.Property(LatestMovie.4.Title)) - - - - - PlayMedia($ESCINFO[Window.Property(LatestMovie.5.Path)]) - DefaultVideoCover.png - $INFO[Window.Property(LatestMovie.5.Thumb)] - !String.IsEmpty(Window.Property(LatestMovie.5.Title)) - - - - - PlayMedia($ESCINFO[Window.Property(LatestMovie.6.Path)]) - DefaultVideoCover.png - $INFO[Window.Property(LatestMovie.6.Thumb)] - !String.IsEmpty(Window.Property(LatestMovie.6.Title)) - - - - - PlayMedia($ESCINFO[Window.Property(LatestMovie.7.Path)]) - DefaultVideoCover.png - $INFO[Window.Property(LatestMovie.7.Thumb)] - !String.IsEmpty(Window.Property(LatestMovie.7.Title)) - - - - - PlayMedia($ESCINFO[Window.Property(LatestMovie.8.Path)]) - DefaultVideoCover.png - $INFO[Window.Property(LatestMovie.8.Thumb)] - !String.IsEmpty(Window.Property(LatestMovie.8.Title)) - - - - - PlayMedia($ESCINFO[Window.Property(LatestMovie.9.Path)]) - DefaultVideoCover.png - $INFO[Window.Property(LatestMovie.9.Thumb)] - !String.IsEmpty(Window.Property(LatestMovie.9.Title)) - - - - - PlayMedia($ESCINFO[Window.Property(LatestMovie.10.Path)]) - DefaultVideoCover.png - $INFO[Window.Property(LatestMovie.10.Thumb)] - !String.IsEmpty(Window.Property(LatestMovie.10.Title)) - - + videodb://movies/titles left Arrow @@ -295,7 +214,7 @@ 220 155 scale - $INFO[ListItem.Icon] + $INFO[ListItem.Art(thumb)] button-nofocus.png 5 @@ -310,7 +229,7 @@ selected center center - + 20 @@ -323,7 +242,7 @@ selected center center - + @@ -341,7 +260,7 @@ 220 155 scale - $INFO[ListItem.Icon] + $INFO[ListItem.Art(thumb)] folder-focus.png 5 Control.HasFocus(8001) @@ -352,7 +271,7 @@ 220 155 scale - $INFO[ListItem.Icon] + $INFO[ListItem.Art(thumb)] button-nofocus.png 5 !Control.HasFocus(8001) @@ -368,7 +287,7 @@ selected center center - + 20 @@ -381,7 +300,7 @@ selected center center - + !Control.HasFocus(8001) @@ -394,92 +313,11 @@ selected center center - + Control.HasFocus(8001) - - - - $INFO[Window.Property(LatestEpisode.1.ShowTitle)] - [UPPERCASE]$INFO[Window.Property(LatestEpisode.1.EpisodeNo)][/UPPERCASE] - PlayMedia($ESCINFO[Window.Property(LatestEpisode.1.Path)]) - $INFO[Window.Property(LatestEpisode.1.Fanart)] - $INFO[Window.Property(LatestEpisode.1.Thumb)] - !String.IsEmpty(Window.Property(LatestEpisode.1.EpisodeTitle)) - - - - $INFO[Window.Property(LatestEpisode.2.ShowTitle)] - [UPPERCASE]$INFO[Window.Property(LatestEpisode.2.EpisodeNo)][/UPPERCASE] - PlayMedia($ESCINFO[Window.Property(LatestEpisode.2.Path)]) - $INFO[Window.Property(LatestEpisode.2.Fanart)] - $INFO[Window.Property(LatestEpisode.2.Thumb)] - !String.IsEmpty(Window.Property(LatestEpisode.2.EpisodeTitle)) - - - - $INFO[Window.Property(LatestEpisode.3.ShowTitle)] - [UPPERCASE]$INFO[Window.Property(LatestEpisode.3.EpisodeNo)][/UPPERCASE] - PlayMedia($ESCINFO[Window.Property(LatestEpisode.3.Path)]) - $INFO[Window.Property(LatestEpisode.3.Fanart)] - $INFO[Window.Property(LatestEpisode.3.Thumb)] - !String.IsEmpty(Window.Property(LatestEpisode.3.EpisodeTitle)) - - - - $INFO[Window.Property(LatestEpisode.4.ShowTitle)] - [UPPERCASE]$INFO[Window.Property(LatestEpisode.4.EpisodeNo)][/UPPERCASE] - PlayMedia($ESCINFO[Window.Property(LatestEpisode.4.Path)]) - $INFO[Window.Property(LatestEpisode.4.Fanart)] - $INFO[Window.Property(LatestEpisode.4.Thumb)] - !String.IsEmpty(Window.Property(LatestEpisode.4.EpisodeTitle)) - - - - $INFO[Window.Property(LatestEpisode.5.ShowTitle)] - [UPPERCASE]$INFO[Window.Property(LatestEpisode.5.EpisodeNo)][/UPPERCASE] - PlayMedia($ESCINFO[Window.Property(LatestEpisode.5.Path)]) - $INFO[Window.Property(LatestEpisode.5.Fanart)] - $INFO[Window.Property(LatestEpisode.5.Thumb)] - !String.IsEmpty(Window.Property(LatestEpisode.5.EpisodeTitle)) - - - - $INFO[Window.Property(LatestEpisode.6.ShowTitle)] - [UPPERCASE]$INFO[Window.Property(LatestEpisode.6.EpisodeNo)][/UPPERCASE] - PlayMedia($ESCINFO[Window.Property(LatestEpisode.6.Path)]) - $INFO[Window.Property(LatestEpisode.6.Fanart)] - $INFO[Window.Property(LatestEpisode.6.Thumb)] - !String.IsEmpty(Window.Property(LatestEpisode.6.EpisodeTitle)) - - - - $INFO[Window.Property(LatestEpisode.7.ShowTitle)] - [UPPERCASE]$INFO[Window.Property(LatestEpisode.7.EpisodeNo)][/UPPERCASE] - PlayMedia($ESCINFO[Window.Property(LatestEpisode.7.Path)]) - $INFO[Window.Property(LatestEpisode.7.Fanart)] - $INFO[Window.Property(LatestEpisode.7.Thumb)] - !String.IsEmpty(Window.Property(LatestEpisode.7.EpisodeTitle)) - - - - $INFO[Window.Property(LatestEpisode.8.ShowTitle)] - [UPPERCASE]$INFO[Window.Property(LatestEpisode.8.EpisodeNo)][/UPPERCASE] - PlayMedia($ESCINFO[Window.Property(LatestEpisode.8.Path)]) - $INFO[Window.Property(LatestEpisode.8.Fanart)] - $INFO[Window.Property(LatestEpisode.8.Thumb)] - !String.IsEmpty(Window.Property(LatestEpisode.8.EpisodeTitle)) - - - - $INFO[Window.Property(LatestEpisode.9.ShowTitle)] - [UPPERCASE]$INFO[Window.Property(LatestEpisode.9.EpisodeNo)][/UPPERCASE] - PlayMedia($ESCINFO[Window.Property(LatestEpisode.9.Path)]) - $INFO[Window.Property(LatestEpisode.9.Fanart)] - $INFO[Window.Property(LatestEpisode.9.Thumb)] - !String.IsEmpty(Window.Property(LatestEpisode.9.EpisodeTitle)) - - - - $INFO[Window.Property(LatestEpisode.10.ShowTitle)] - [UPPERCASE]$INFO[Window.Property(LatestEpisode.10.EpisodeNo)][/UPPERCASE] - PlayMedia($ESCINFO[Window.Property(LatestEpisode.10.Path)]) - $INFO[Window.Property(LatestEpisode.10.Fanart)] - $INFO[Window.Property(LatestEpisode.10.Thumb)] - !String.IsEmpty(Window.Property(LatestEpisode.10.EpisodeTitle)) - - + videodb://tvshows/titles/-1/-1/ left Arrow @@ -541,6 +379,7 @@ 200 Horizontal + PlayMedia($INFO[ListItem.FolderPath],isdir) background @@ -556,7 +395,7 @@ 180 155 keep - $INFO[ListItem.Icon] + $INFO[ListItem.Art(thumb)] button-nofocus.png 5 @@ -571,7 +410,7 @@ selected center center - + 10 @@ -602,7 +441,7 @@ 180 155 keep - $INFO[ListItem.Icon] + $INFO[ListItem.Art(thumb)] folder-focus.png 5 Control.HasFocus(8002) @@ -613,7 +452,7 @@ 180 155 keep - $INFO[ListItem.Icon] + $INFO[ListItem.Art(thumb)] button-nofocus.png 5 !Control.HasFocus(8002) @@ -629,7 +468,7 @@ selected center center - + 10 @@ -659,98 +498,7 @@ Control.HasFocus(8002) - - - - $INFO[Window.Property(LatestAlbum.1.Artist)] - PlayList.Clear - PlayMedia("$INFO[Window.Property(LatestAlbum.1.Path)]") - DefaultAlbumCover.png - $INFO[Window.Property(LatestAlbum.1.Thumb)] - !String.IsEmpty(Window.Property(LatestAlbum.1.Title)) - - - - $INFO[Window.Property(LatestAlbum.2.Artist)] - PlayList.Clear - PlayMedia("$INFO[Window.Property(LatestAlbum.2.Path)]") - DefaultAlbumCover.png - $INFO[Window.Property(LatestAlbum.2.Thumb)] - !String.IsEmpty(Window.Property(LatestAlbum.2.Title)) - - - - $INFO[Window.Property(LatestAlbum.3.Artist)] - PlayList.Clear - PlayMedia("$INFO[Window.Property(LatestAlbum.3.Path)]") - DefaultAlbumCover.png - $INFO[Window.Property(LatestAlbum.3.Thumb)] - !String.IsEmpty(Window.Property(LatestAlbum.3.Title)) - - - - $INFO[Window.Property(LatestAlbum.4.Artist)] - PlayList.Clear - PlayMedia("$INFO[Window.Property(LatestAlbum.4.Path)]") - DefaultAlbumCover.png - $INFO[Window.Property(LatestAlbum.4.Thumb)] - !String.IsEmpty(Window.Property(LatestAlbum.4.Title)) - - - - $INFO[Window.Property(LatestAlbum.5.Artist)] - PlayList.Clear - PlayMedia("$INFO[Window.Property(LatestAlbum.5.Path)]") - DefaultAlbumCover.png - $INFO[Window.Property(LatestAlbum.5.Thumb)] - !String.IsEmpty(Window.Property(LatestAlbum.5.Title)) - - - - $INFO[Window.Property(LatestAlbum.6.Artist)] - PlayList.Clear - PlayMedia("$INFO[Window.Property(LatestAlbum.6.Path)]") - DefaultAlbumCover.png - $INFO[Window.Property(LatestAlbum.6.Thumb)] - !String.IsEmpty(Window.Property(LatestAlbum.6.Title)) - - - - $INFO[Window.Property(LatestAlbum.7.Artist)] - PlayList.Clear - PlayMedia("$INFO[Window.Property(LatestAlbum.7.Path)]") - DefaultAlbumCover.png - $INFO[Window.Property(LatestAlbum.7.Thumb)] - !String.IsEmpty(Window.Property(LatestAlbum.7.Title)) - - - - $INFO[Window.Property(LatestAlbum.8.Artist)] - PlayList.Clear - PlayMedia("$INFO[Window.Property(LatestAlbum.8.Path)]") - DefaultAlbumCover.png - $INFO[Window.Property(LatestAlbum.8.Thumb)] - !String.IsEmpty(Window.Property(LatestAlbum.8.Title)) - - - - $INFO[Window.Property(LatestAlbum.9.Artist)] - PlayList.Clear - PlayMedia("$INFO[Window.Property(LatestAlbum.9.Path)]") - DefaultAlbumCover.png - $INFO[Window.Property(LatestAlbum.9.Thumb)] - !String.IsEmpty(Window.Property(LatestAlbum.9.Title)) - - - - $INFO[Window.Property(LatestAlbum.10.Artist)] - PlayList.Clear - PlayMedia("$INFO[Window.Property(LatestAlbum.10.Path)]") - DefaultAlbumCover.png - $INFO[Window.Property(LatestAlbum.10.Thumb)] - !String.IsEmpty(Window.Property(LatestAlbum.10.Title)) - - + musicdb://recentlyaddedalbums left Arrow diff --git a/addon.xml b/addon.xml index 8a86491..6bb3295 100644 --- a/addon.xml +++ b/addon.xml @@ -1,5 +1,5 @@ - + @@ -143,6 +143,6 @@ resources/screenshot-08.jpg resources/screenshot-09.jpg - - Bump xbmc.gui.[CR]- Add support for enabled add-ons. + - Switch to dynamic content for home screen widgets. diff --git a/changelog.txt b/changelog.txt index 0b6a94d..b18d9b2 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,3 +1,7 @@ +[B]4.7.6[/B] + +- Switch to dynamic content for home screen widgets + [B]4.7.5[/B] - Bump xbmc.gui