From 1f0cc3f925ccebe5c32bed9d0e9c2b1b9b26f69c Mon Sep 17 00:00:00 2001 From: jurialmunkey Date: Sun, 26 Mar 2023 00:31:43 +1100 Subject: [PATCH] :sparkles: Support for letterboxd movie ratings and metacrtiic tvshow ratings from mdblist --- 1080i/Includes_Info.xml | 36 +++++++++++------ 1080i/Includes_Items.xml | 85 +++++++++++++++++++++++++++++++++------- 2 files changed, 95 insertions(+), 26 deletions(-) diff --git a/1080i/Includes_Info.xml b/1080i/Includes_Info.xml index 24cb63e2..896e943f 100644 --- a/1080i/Includes_Info.xml +++ b/1080i/Includes_Info.xml @@ -1069,7 +1069,7 @@ - !Skin.HasSetting(Ratings.DisableMetacritic) + !Skin.HasSetting(Ratings.DisableMetacritic) | Skin.HasSetting(Ratings.EnableMetacritic.TVShows) $PARAM[colordiffuse] flags/$PARAM[directory]/ratings/metacritic.png Container(99950).ListItem.Property(MetaCritic_Rating) @@ -1077,30 +1077,44 @@ % Skin.HasSetting(Ratings.AutoHide) $PARAM[metacritic] + [[String.IsEqual($PARAM[dbtype],movie)] + !Skin.HasSetting(Ratings.DisableMetacritic)] | [[String.IsEqual($PARAM[dbtype],tvshow) | String.IsEqual($PARAM[dbtype],season) | String.IsEqual($PARAM[dbtype],episode) | $EXP[Exp_PVRWindows]] + Skin.HasSetting(Ratings.EnableMetacritic.TVShows)] - !Skin.HasSetting(Ratings.DisableTrakt) + !Skin.HasSetting(Ratings.DisableTrakt) | !Skin.HasSetting(Ratings.DisableTrakt.TVShows) $PARAM[colordiffuse] flags/$PARAM[directory]/ratings/trakt.png Container(99950).ListItem.Property(Trakt_Rating) −.− Skin.HasSetting(Ratings.AutoHide) $PARAM[trakt] + [[String.IsEqual($PARAM[dbtype],movie)] + !Skin.HasSetting(Ratings.DisableTrakt)] | [[String.IsEqual($PARAM[dbtype],tvshow) | String.IsEqual($PARAM[dbtype],season) | String.IsEqual($PARAM[dbtype],episode) | $EXP[Exp_PVRWindows]] + !Skin.HasSetting(Ratings.DisableTrakt.TVShows)] - !Skin.HasSetting(Ratings.DisableTMDB) + !Skin.HasSetting(Ratings.DisableTMDB) | !Skin.HasSetting(Ratings.DisableTMDB.TVShows) $PARAM[colordiffuse] flags/$PARAM[directory]/ratings/tmdb.png Container(99950).ListItem.Property(TMDb_Rating) −.− Skin.HasSetting(Ratings.AutoHide) $PARAM[tmdb] + [[String.IsEqual($PARAM[dbtype],movie)] + !Skin.HasSetting(Ratings.DisableTMDB)] | [[String.IsEqual($PARAM[dbtype],tvshow) | String.IsEqual($PARAM[dbtype],season) | String.IsEqual($PARAM[dbtype],episode) | $EXP[Exp_PVRWindows]] + !Skin.HasSetting(Ratings.DisableTMDB.TVShows)] - !Skin.HasSetting(Ratings.DisableRottenTomatoesCritic) + Skin.HasSetting(Ratings.EnableLetterBoxd) + $PARAM[colordiffuse] + flags/$PARAM[directory]/ratings/letterboxd.png + Container(99950).ListItem.Property(letterboxd_rating) + −.− + Skin.HasSetting(Ratings.AutoHide) + $PARAM[rottentomatoes] + [[String.IsEqual($PARAM[dbtype],movie)] + Skin.HasSetting(Ratings.EnableLetterBoxd)] + + + + !Skin.HasSetting(Ratings.DisableRottenTomatoesCritic) | Skin.HasSetting(Ratings.EnableRottenTomatoesCritic.TVShows) $PARAM[colordiffuse] flags/$PARAM[directory]/ratings/$VAR[Image_$PARAM[tmdbtype]_RottenTomatoes] Container(99950).ListItem.Property(RottenTomatoes_Rating) @@ -1108,10 +1122,11 @@ % Skin.HasSetting(Ratings.AutoHide) $PARAM[rottentomatoes] + [[String.IsEqual($PARAM[dbtype],movie)] + !Skin.HasSetting(Ratings.DisableRottenTomatoesCritic)] | [[String.IsEqual($PARAM[dbtype],tvshow) | String.IsEqual($PARAM[dbtype],season) | String.IsEqual($PARAM[dbtype],episode) | $EXP[Exp_PVRWindows]] + Skin.HasSetting(Ratings.EnableRottenTomatoesCritic.TVShows)] - !Skin.HasSetting(Ratings.DisableRottenTomatoesUser) + !Skin.HasSetting(Ratings.DisableRottenTomatoesUser) | Skin.HasSetting(Ratings.EnableRottenTomatoesUser.TVShows) $PARAM[colordiffuse] flags/$PARAM[directory]/ratings/$VAR[Image_$PARAM[tmdbtype]_RottenTomatoes_UserMeter] Container(99950).ListItem.Property(RottenTomatoes_UserMeter) @@ -1119,10 +1134,11 @@ % Skin.HasSetting(Ratings.AutoHide) $PARAM[usermeter] + [[String.IsEqual($PARAM[dbtype],movie)] + !Skin.HasSetting(Ratings.DisableRottenTomatoesUser)] | [[String.IsEqual($PARAM[dbtype],tvshow) | String.IsEqual($PARAM[dbtype],season) | String.IsEqual($PARAM[dbtype],episode) | $EXP[Exp_PVRWindows]] + Skin.HasSetting(Ratings.EnableRottenTomatoesUser.TVShows)] - !Skin.HasSetting(Ratings.DisableIMDb) + !Skin.HasSetting(Ratings.DisableIMDb) | !Skin.HasSetting(Ratings.DisableIMDb.TVShows) $PARAM[colordiffuse] flags/$PARAM[directory]/ratings/imdb.png 1 @@ -1131,6 +1147,7 @@ −.− Skin.HasSetting(Ratings.AutoHide) $PARAM[imdb] + [[String.IsEqual($PARAM[dbtype],movie)] + !Skin.HasSetting(Ratings.DisableIMDb)] | [[String.IsEqual($PARAM[dbtype],tvshow) | String.IsEqual($PARAM[dbtype],season) | String.IsEqual($PARAM[dbtype],episode) | $EXP[Exp_PVRWindows]] + !Skin.HasSetting(Ratings.DisableIMDb.TVShows)] @@ -1844,12 +1861,7 @@ ![$PARAM[shortline]] + !$EXP[Exp_PVRWindows] - [String.IsEqual($PARAM[container]ListItem.DBType,movie) | $EXP[Exp_PVRWindows]] - [String.IsEqual($PARAM[container]ListItem.DBType,movie) | $EXP[Exp_PVRWindows]] - [String.IsEqual($PARAM[container]ListItem.DBType,movie) | String.IsEqual($PARAM[container]ListItem.DBType,tvshow) | String.IsEqual($PARAM[container]ListItem.DBType,season) | String.IsEqual($PARAM[container]ListItem.DBType,episode) | $EXP[Exp_PVRWindows]] - [String.IsEqual($PARAM[container]ListItem.DBType,movie) | String.IsEqual($PARAM[container]ListItem.DBType,tvshow) | String.IsEqual($PARAM[container]ListItem.DBType,season) | String.IsEqual($PARAM[container]ListItem.DBType,episode) | $EXP[Exp_PVRWindows]] - [String.IsEqual($PARAM[container]ListItem.DBType,movie) | String.IsEqual($PARAM[container]ListItem.DBType,tvshow) | String.IsEqual($PARAM[container]ListItem.DBType,season) | String.IsEqual($PARAM[container]ListItem.DBType,episode) | $EXP[Exp_PVRWindows]] - [String.IsEqual($PARAM[container]ListItem.DBType,movie) | $EXP[Exp_PVRWindows]] + $PARAM[container]ListItem.DBType [![$PARAM[shortline]] | String.IsEqual($PARAM[container]ListItem.DBType,movie)] [![$PARAM[shortline]] + [String.IsEqual($PARAM[container]ListItem.DBType,movie) | String.IsEqual($PARAM[container]ListItem.DBType,tvshow) | $EXP[Exp_PVRWindows]]] [[[![$PARAM[shortline]] + String.IsEqual($PARAM[container]ListItem.DBType,movie) + !Skin.HasSetting(Ratings.DisableMovieRelease)] | [[String.IsEqual($PARAM[container]ListItem.DBType,tvshow) | String.IsEqual($PARAM[container]ListItem.DBType,season) | String.IsEqual($PARAM[container]ListItem.DBType,episode)] + !Skin.HasSetting(Ratings.DisableTvRelease)]]] diff --git a/1080i/Includes_Items.xml b/1080i/Includes_Items.xml index 3e2ac4f4..6b4e4617 100644 --- a/1080i/Includes_Items.xml +++ b/1080i/Includes_Items.xml @@ -1626,7 +1626,15 @@ Skin.ToggleSetting(Ratings.DisableMetacritic) !Skin.HasSetting(Ratings.DisableMetacritic) !Skin.HasSetting(Ratings.HideAll) - + + + + + + Skin.ToggleSetting(Ratings.EnableMetacritic.TVShows) + Skin.HasSetting(Ratings.EnableMetacritic.TVShows) + !Skin.HasSetting(Ratings.HideAll) + @@ -1634,7 +1642,15 @@ Skin.ToggleSetting(Ratings.DisableTrakt) !Skin.HasSetting(Ratings.DisableTrakt) !Skin.HasSetting(Ratings.HideAll) - + + + + + + Skin.ToggleSetting(Ratings.DisableTrakt.TVShows) + !Skin.HasSetting(Ratings.DisableTrakt.TVShows) + !Skin.HasSetting(Ratings.HideAll) + @@ -1642,7 +1658,23 @@ Skin.ToggleSetting(Ratings.DisableTMDB) !Skin.HasSetting(Ratings.DisableTMDB) !Skin.HasSetting(Ratings.HideAll) - + + + + + + Skin.ToggleSetting(Ratings.DisableTMDB.TVShows) + !Skin.HasSetting(Ratings.DisableTMDB.TVShows) + !Skin.HasSetting(Ratings.HideAll) + + + + + + Skin.ToggleSetting(Ratings.EnableLetterBoxd) + Skin.HasSetting(Ratings.EnableLetterBoxd) + !Skin.HasSetting(Ratings.HideAll) + @@ -1650,7 +1682,15 @@ Skin.ToggleSetting(Ratings.DisableRottenTomatoesUser) !Skin.HasSetting(Ratings.DisableRottenTomatoesUser) !Skin.HasSetting(Ratings.HideAll) - + + + + + + Skin.ToggleSetting(Ratings.EnableRottenTomatoesUser.TVShows) + Skin.HasSetting(Ratings.EnableRottenTomatoesUser.TVShows) + !Skin.HasSetting(Ratings.HideAll) + @@ -1658,7 +1698,15 @@ Skin.ToggleSetting(Ratings.DisableRottenTomatoesCritic) !Skin.HasSetting(Ratings.DisableRottenTomatoesCritic) !Skin.HasSetting(Ratings.HideAll) - + + + + + + Skin.ToggleSetting(Ratings.EnableRottenTomatoesCritic.TVShows) + Skin.HasSetting(Ratings.EnableRottenTomatoesCritic.TVShows) + !Skin.HasSetting(Ratings.HideAll) + @@ -1666,7 +1714,15 @@ Skin.ToggleSetting(Ratings.DisableIMDb) !Skin.HasSetting(Ratings.DisableIMDb) !Skin.HasSetting(Ratings.HideAll) - + + + + + + Skin.ToggleSetting(Ratings.DisableIMDb.TVShows) + !Skin.HasSetting(Ratings.DisableIMDb.TVShows) + !Skin.HasSetting(Ratings.HideAll) + @@ -1684,14 +1740,6 @@ !Skin.HasSetting(Ratings.HideAll) - - - - Skin.ToggleSetting(Ratings.DisableTvRelease) - !Skin.HasSetting(Ratings.DisableTvRelease) - !Skin.HasSetting(Ratings.HideAll) - - @@ -1700,6 +1748,15 @@ !Skin.HasSetting(Ratings.HideAll) + + + + Skin.ToggleSetting(Ratings.DisableTvRelease) + !Skin.HasSetting(Ratings.DisableTvRelease) + !Skin.HasSetting(Ratings.HideAll) + + +