From c5b5e6ee4a7eba78763b1d46815f5627519c612c Mon Sep 17 00:00:00 2001 From: Kevin Goffe Date: Sun, 4 Feb 2024 19:18:38 +0000 Subject: [PATCH] Add directors list --- language/resource.language.en_gb/strings.po | 8 +++- xml/DialogFullScreenInfo.xml | 2 +- xml/Includes_Dialog_Movie_TV_Information.xml | 48 ++++++++++++++------ xml/Includes_Dialog_Video_Information.xml | 48 ++++++++++++++------ xml/Includes_Variables.xml | 36 +++++++++------ 5 files changed, 98 insertions(+), 44 deletions(-) diff --git a/language/resource.language.en_gb/strings.po b/language/resource.language.en_gb/strings.po index da3d589..0f5449d 100644 --- a/language/resource.language.en_gb/strings.po +++ b/language/resource.language.en_gb/strings.po @@ -796,7 +796,11 @@ msgctxt "#31191" msgid "Which extra would you like to watch?" msgstr "" -#empty strings from id 31192 to 31193 +msgctxt "#31192" +msgid "Director" +msgstr "" + +#empty string with id 31193 msgctxt "#31194" msgid "Submit" @@ -931,7 +935,7 @@ msgid "Please try again later." msgstr "" msgctxt "#31232" -msgid "Cast and Role" +msgid "Also directed by" msgstr "" msgctxt "#31233" diff --git a/xml/DialogFullScreenInfo.xml b/xml/DialogFullScreenInfo.xml index e523a2f..00755d3 100644 --- a/xml/DialogFullScreenInfo.xml +++ b/xml/DialogFullScreenInfo.xml @@ -40,7 +40,7 @@ Med48 bottom ffdadada - + 76 diff --git a/xml/Includes_Dialog_Movie_TV_Information.xml b/xml/Includes_Dialog_Movie_TV_Information.xml index 43ad99b..c02e8f5 100644 --- a/xml/Includes_Dialog_Movie_TV_Information.xml +++ b/xml/Includes_Dialog_Movie_TV_Information.xml @@ -59,22 +59,24 @@ Close 500 ClearProperty(RecommendedVideos,home) + ClearProperty(DirectedByList,home) Light35 ffdadada ffffc24b NoTextures - Conditional + Conditional 1146 960 70 7000 - noop + 7002 Close 500 SetProperty(RecommendedVideos,1,home) + ClearProperty(DirectedByList,home) Light35 ffdadada ffffc24b @@ -82,6 +84,25 @@ NoTextures Conditional + + 1256 + 960 + 70 + 7001 + noop + Close + 500 + SetProperty(DirectedByList,1,home) + ClearProperty(RecommendedVideos,home) + Light35 + ffdadada + ffffc24b + + NoTextures + String.IsEqual(ListItem.DBTYPE,movie) + Conditional + Conditional + 950 @@ -338,21 +359,21 @@ -542 4800 1152 - RunScript(plugin.video.themoviedb.helper,add_query=$INFO[Container(500).ListItem.Label],type=person,call_auto=1113) - RunScript(plugin.video.themoviedb.helper,add_query=$INFO[Container(500).ListItem.Label],type=movie,call_auto=1113) - RunScript(plugin.video.themoviedb.helper,add_query=$INFO[Container(500).ListItem.Label],type=tv,call_auto=1113) + RunScript(plugin.video.themoviedb.helper,add_path=$INFO[Container(500).ListItem.FolderPath],call_auto=1113) Control.SetFocus(500,0,absolute) 3000 Control.SetFocus(500,0,absolute) noop Control.SetFocus(500,0,absolute) - 7000 + 7000 7001 + 7002 noop SetProperty(BounceRight,1,Home) Control.SetFocus(500,0,absolute) - 7000 + 7000 7001 + 7002 2 2 list @@ -385,7 +406,7 @@ 640 330 views/default_overlay.png - !Container.Content(Sets) + !String.IsEmpty(ListItem.Label) + String.IsEmpty(Window(home).Property(RecommendedVideos)) + !Container.Content(Sets) + !String.IsEmpty(ListItem.Label) + String.IsEmpty(Window(home).Property(RecommendedVideos)) + String.IsEmpty(Window(home).Property(DirectedByList)) 36 @@ -396,7 +417,7 @@ ffffffff ShadowColour - !Container.Content(Sets) + !String.IsEmpty(ListItem.Label) + String.IsEmpty(Window(home).Property(RecommendedVideos)) + !Container.Content(Sets) + !String.IsEmpty(ListItem.Label) + String.IsEmpty(Window(home).Property(RecommendedVideos)) + String.IsEmpty(Window(home).Property(DirectedByList)) Conditional @@ -409,7 +430,7 @@ ffffffff ShadowColour - !Container.Content(Sets) + !String.IsEmpty(ListItem.Label2) + !Container.Content(Sets) + !String.IsEmpty(ListItem.Label2) + String.IsEmpty(Window(home).Property(RecommendedVideos)) + String.IsEmpty(Window(home).Property(DirectedByList)) 96 @@ -458,7 +479,7 @@ 640 330 views/default_overlay.png - !Container.Content(Sets) + !String.IsEmpty(ListItem.Label) + String.IsEmpty(Window(home).Property(RecommendedVideos)) + !Container.Content(Sets) + !String.IsEmpty(ListItem.Label) + String.IsEmpty(Window(home).Property(RecommendedVideos)) + String.IsEmpty(Window(home).Property(DirectedByList)) @@ -473,7 +494,7 @@ ffffffff ShadowColour - !Container.Content(Sets) + !String.IsEmpty(ListItem.Label) + String.IsEmpty(Window(home).Property(RecommendedVideos)) + !Container.Content(Sets) + !String.IsEmpty(ListItem.Label) + String.IsEmpty(Window(home).Property(RecommendedVideos)) + String.IsEmpty(Window(home).Property(DirectedByList)) Conditional @@ -489,7 +510,7 @@ ffffffff ShadowColour - !Container.Content(Sets) + !String.IsEmpty(ListItem.Label2) + !Container.Content(Sets) + !String.IsEmpty(ListItem.Label2) + String.IsEmpty(Window(home).Property(RecommendedVideos)) + String.IsEmpty(Window(home).Property(DirectedByList)) @@ -536,6 +557,7 @@ Light24 ffbcbcbc + String.IsEmpty(Window(home).Property(RecommendedVideos)) + String.IsEmpty(Window(home).Property(DirectedByList)) diff --git a/xml/Includes_Dialog_Video_Information.xml b/xml/Includes_Dialog_Video_Information.xml index c22f678..87275ee 100644 --- a/xml/Includes_Dialog_Video_Information.xml +++ b/xml/Includes_Dialog_Video_Information.xml @@ -127,22 +127,24 @@ Close 9000 ClearProperty(RecommendedVideos,home) + ClearProperty(DirectedByList,home) Light35 ffdadada ffffc24b NoTextures - Conditional + Conditional 1146 960 70 7000 - noop + 7002 Close 500 SetProperty(RecommendedVideos,1,home) + ClearProperty(DirectedByList,home) Light35 ffdadada ffffc24b @@ -150,6 +152,25 @@ NoTextures Conditional + + 1256 + 960 + 70 + 7001 + noop + Close + 500 + SetProperty(DirectedByList,1,home) + ClearProperty(RecommendedVideos,home) + Light35 + ffdadada + ffffc24b + + NoTextures + String.IsEqual(ListItem.DBTYPE,movie) + Conditional + Conditional + 1020 @@ -630,21 +651,21 @@ -542 4800 1152 - RunScript(plugin.video.themoviedb.helper,add_query=$INFO[Container(500).ListItem.Label],type=person,call_auto=1113) - RunScript(plugin.video.themoviedb.helper,add_query=$INFO[Container(500).ListItem.Label],type=movie,call_auto=1113) - RunScript(plugin.video.themoviedb.helper,add_query=$INFO[Container(500).ListItem.Label],type=tv,call_auto=1113) + RunScript(plugin.video.themoviedb.helper,add_path=$INFO[Container(500).ListItem.FolderPath],call_auto=1113) Control.SetFocus(500,0,absolute) Control.SetFocus(500,0,absolute) 9001 noop Control.SetFocus(500,0,absolute) - 7000 + 7000 7001 + 7002 noop SetProperty(BounceRight,1,Home) Control.SetFocus(500,0,absolute) - 7000 + 7000 7001 + 7002 2 2 list @@ -677,7 +698,7 @@ 640 330 views/default_overlay.png - !Container.Content(Sets) + !String.IsEmpty(ListItem.Label) + String.IsEmpty(Window(home).Property(RecommendedVideos)) + !Container.Content(Sets) + !String.IsEmpty(ListItem.Label) + String.IsEmpty(Window(home).Property(RecommendedVideos)) + String.IsEmpty(Window(home).Property(DirectedByList)) 36 @@ -688,7 +709,7 @@ ffffffff ShadowColour - !Container.Content(Sets) + !String.IsEmpty(ListItem.Label) + String.IsEmpty(Window(home).Property(RecommendedVideos)) + !Container.Content(Sets) + !String.IsEmpty(ListItem.Label) + String.IsEmpty(Window(home).Property(RecommendedVideos)) + String.IsEmpty(Window(home).Property(DirectedByList)) Conditional @@ -701,7 +722,7 @@ ffffffff ShadowColour - !Container.Content(Sets) + !String.IsEmpty(ListItem.Label2) + !Container.Content(Sets) + !String.IsEmpty(ListItem.Label2) + String.IsEmpty(Window(home).Property(RecommendedVideos)) + String.IsEmpty(Window(home).Property(DirectedByList)) 96 @@ -750,7 +771,7 @@ 640 330 views/default_overlay.png - !Container.Content(Sets) + !String.IsEmpty(ListItem.Label) + String.IsEmpty(Window(home).Property(RecommendedVideos)) + !Container.Content(Sets) + !String.IsEmpty(ListItem.Label) + String.IsEmpty(Window(home).Property(RecommendedVideos)) + String.IsEmpty(Window(home).Property(DirectedByList)) @@ -765,7 +786,7 @@ ffffffff ShadowColour - !Container.Content(Sets) + !String.IsEmpty(ListItem.Label) + String.IsEmpty(Window(home).Property(RecommendedVideos)) + !Container.Content(Sets) + !String.IsEmpty(ListItem.Label) + String.IsEmpty(Window(home).Property(RecommendedVideos)) + String.IsEmpty(Window(home).Property(DirectedByList)) Conditional @@ -781,7 +802,7 @@ ffffffff ShadowColour - !Container.Content(Sets) + !String.IsEmpty(ListItem.Label2) + !Container.Content(Sets) + !String.IsEmpty(ListItem.Label2) + String.IsEmpty(Window(home).Property(RecommendedVideos)) + String.IsEmpty(Window(home).Property(DirectedByList)) @@ -828,6 +849,7 @@ Light24 ffbcbcbc + String.IsEmpty(Window(home).Property(RecommendedVideos)) + String.IsEmpty(Window(home).Property(DirectedByList)) diff --git a/xml/Includes_Variables.xml b/xml/Includes_Variables.xml index 8fbc0cc..abf21c1 100644 --- a/xml/Includes_Variables.xml +++ b/xml/Includes_Variables.xml @@ -128,30 +128,35 @@ - plugin://plugin.video.themoviedb.helper?info=stars_in_movies&tmdb_type=person&TMDb_ID=$INFO[ListItem.Property(TMDb_ID)]&nextpage=false&limit=100 - plugin://plugin.video.themoviedb.helper?info=stars_in_tvshows&tmdb_type=person&TMDb_ID=$INFO[ListItem.Property(TMDb_ID)]&nextpage=false&limit=100 - plugin://plugin.video.themoviedb.helper?info=images&tmdb_type=person&TMDb_ID=$INFO[ListItem.Property(TMDb_ID)]&nextpage=false + plugin://plugin.video.themoviedb.helper?info=stars_in_movies&tmdb_type=person&tmdb_id=$INFO[ListItem.Property(TMDb_ID)]&nextpage=false&limit=100 + plugin://plugin.video.themoviedb.helper?info=stars_in_tvshows&tmdb_type=person&tmdb_id=$INFO[ListItem.Property(TMDb_ID)]&nextpage=false&limit=100 + plugin://plugin.video.themoviedb.helper?info=images&tmdb_type=person&tmdb_id=$INFO[ListItem.Property(TMDb_ID)]&nextpage=false - plugin://plugin.video.themoviedb.helper?info=cast&tmdb_type=movie&aggregate=true&TMDb_ID=$INFO[ListItem.Property(TMDb_ID)]&nextpage=false - plugin://plugin.video.themoviedb.helper?info=cast&tmdb_type=tv&aggregate=true&TMDb_ID=$INFO[ListItem.Property(TMDb_ID)]&nextpage=false - plugin://plugin.video.themoviedb.helper?info=recommendations&tmdb_type=movie&TMDb_ID=$INFO[ListItem.Property(TMDb_ID)]&nextpage=false - plugin://plugin.video.themoviedb.helper?info=recommendations&tmdb_type=tv&TMDb_ID=$INFO[ListItem.Property(TMDb_ID)]&nextpage=false + plugin://plugin.video.themoviedb.helper?info=cast&tmdb_type=movie&aggregate=true&tmdb_id=$INFO[ListItem.Property(TMDb_ID)]&nextpage=false + plugin://plugin.video.themoviedb.helper?info=cast&tmdb_type=tv&aggregate=true&tmdb_id=$INFO[ListItem.Property(TMDb_ID)]&nextpage=false + plugin://plugin.video.themoviedb.helper?info=recommendations&tmdb_type=movie&tmdb_id=$INFO[ListItem.Property(TMDb_ID)]&nextpage=false + plugin://plugin.video.themoviedb.helper?info=recommendations&tmdb_type=tv&tmdb_id=$INFO[ListItem.Property(TMDb_ID)]&nextpage=false + plugin://plugin.video.themoviedb.helper?info=crew_in_both&type=person&filter_key=job&filter_value=Director&query=$INFO[ListItem.Director]&exclude_key=title&exclude_value=$INFO[ListItem.Title]&aggregate=true&nextpage=false - plugin://plugin.video.themoviedb.helper?info=cast&TMDb_ID=$INFO[Container(99950).ListItem.Property(TMDb_ID)]&tmdb_type=movie&aggregate=true&nextpage=false - plugin://plugin.video.themoviedb.helper?info=cast&TMDb_ID=$INFO[Container(99950).ListItem.Property(TMDb_ID)]&tmdb_type=tv&aggregate=true&nextpage=false - plugin://plugin.video.themoviedb.helper?info=cast&TMDb_ID=$INFO[Container(99950).ListItem.Property(TVShow.TMDb_ID)]&tmdb_type=tv&aggregate=true&nextpage=false - plugin://plugin.video.themoviedb.helper?info=cast&tmdb_type=movie&aggregate=true&query=$INFO[ListItem.Title]&year=$INFO[ListItem.Year]&nextpage=false - plugin://plugin.video.themoviedb.helper?info=cast&tmdb_type=tv&aggregate=true&query=$INFO[ListItem.TVShowTitle]&year=$INFO[ListItem.Year]&nextpage=false + plugin://plugin.video.themoviedb.helper?info=cast&tmdb_id=$INFO[Container(99950).ListItem.Property(TMDb_ID)]&tmdb_type=movie&aggregate=true&nextpage=false + plugin://plugin.video.themoviedb.helper?info=cast&tmdb_id=$INFO[Container(99950).ListItem.Property(TMDb_ID)]&tmdb_type=tv&aggregate=true&nextpage=false + plugin://plugin.video.themoviedb.helper?info=cast&tmdb_id=$INFO[Container(99950).ListItem.Property(TVShow.TMDb_ID)]&tmdb_type=tv&aggregate=true&nextpage=false + plugin://plugin.video.themoviedb.helper?info=cast&tmdb_type=movie&aggregate=true&query=$INFO[ListItem.Title]&year=$INFO[ListItem.Year]&nextpage=false + plugin://plugin.video.themoviedb.helper?info=cast&tmdb_type=tv&aggregate=true&query=$INFO[ListItem.TVShowTitle]&year=$INFO[ListItem.Year]&nextpage=false + plugin://plugin.video.themoviedb.helper?info=recommendations&tmdb_id=$INFO[Container(99950).ListItem.Property(TMDb_ID)]&tmdb_type=movie&aggregate=true&nextpage=false + plugin://plugin.video.themoviedb.helper?info=recommendations&tmdb_id=$INFO[Container(99950).ListItem.Property(TMDb_ID)]&tmdb_type=tv&aggregate=true&nextpage=false + plugin://plugin.video.themoviedb.helper?info=recommendations&tmdb_id=$INFO[Container(99950).ListItem.Property(TVShow.TMDb_ID)]&tmdb_type=tv&aggregate=true&nextpage=false plugin://plugin.video.themoviedb.helper?info=recommendations&tmdb_type=movie&query=$INFO[ListItem.Title]&year=$INFO[ListItem.Year]&nextpage=false plugin://plugin.video.themoviedb.helper?info=recommendations&tmdb_type=tv&query=$INFO[ListItem.TVShowTitle]&year=$INFO[ListItem.Year]&nextpage=false + plugin://plugin.video.themoviedb.helper?info=crew_in_both&type=person&filter_key=job&filter_value=Director&query=$INFO[ListItem.Director]&exclude_key=title&exclude_value=$INFO[ListItem.Title]&aggregate=true&nextpage=false - plugin://plugin.video.themoviedb.helper/?info=cast&tmdb_type=movie$INFO[Window(Home).Property(TMDbHelper.Player.TMDb_ID),&TMDb_ID=,] + plugin://plugin.video.themoviedb.helper/?info=cast&tmdb_type=movie$INFO[Window(Home).Property(TMDbHelper.Player.TMDb_ID),&tmdb_id=,] plugin://plugin.video.themoviedb.helper/?info=cast&tmdb_type=movie$INFO[VideoPlayer.IMDBNumber,&imdb_id=,] plugin://plugin.video.themoviedb.helper/?info=cast&tmdb_type=movie$INFO[Player.Title,&query=,]$INFO[VideoPlayer.Year,&year=,] - plugin://plugin.video.themoviedb.helper/?info=cast&tmdb_type=tv$INFO[Window(Home).Property(TMDbHelper.Player.tvshow.TMDb_ID),&TMDb_ID=,]$INFO[VideoPlayer.Season,&season=,]$INFO[VideoPlayer.Episode,&episode=,] + plugin://plugin.video.themoviedb.helper/?info=cast&tmdb_type=tv$INFO[Window(Home).Property(TMDbHelper.Player.tvshow.TMDb_ID),&tmdb_id=,]$INFO[VideoPlayer.Season,&season=,]$INFO[VideoPlayer.Episode,&episode=,] plugin://plugin.video.themoviedb.helper/?info=cast&tmdb_type=tv$INFO[VideoPlayer.TVShowTitle,&query=,]$INFO[VideoPlayer.Season,&season=,]$INFO[VideoPlayer.Episode,&episode=,] @@ -523,8 +528,9 @@ ff717171 - $LOCALIZE[31076] + $LOCALIZE[31076] $LOCALIZE[31113] + $LOCALIZE[31232] $INFO[ListItem.Director] $LOCALIZE[31066]