Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added certification ratings for movies and tv shows. #257

Closed
wants to merge 5 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Display Certification Ratings
Displays certification ratings for movies and tv shows on the video's poster/season/episode image.
boredazfcuk committed Mar 14, 2019
commit f74075af9ec3a21122124f4f3972b1136a24e954
Binary file added extras/certification-ratings/movie/gb/12.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added extras/certification-ratings/movie/gb/12A.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added extras/certification-ratings/movie/gb/15.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added extras/certification-ratings/movie/gb/18.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added extras/certification-ratings/movie/gb/PG.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added extras/certification-ratings/movie/gb/R18.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added extras/certification-ratings/movie/gb/U.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added extras/certification-ratings/movie/gb/Uc.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added extras/certification-ratings/movie/us/G.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added extras/certification-ratings/movie/us/NC-17.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added extras/certification-ratings/movie/us/NR.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added extras/certification-ratings/movie/us/PG-13.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added extras/certification-ratings/movie/us/PG.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added extras/certification-ratings/movie/us/R.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added extras/certification-ratings/tvshow/us/TV-14.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added extras/certification-ratings/tvshow/us/TV-G.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added extras/certification-ratings/tvshow/us/TV-MA.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added extras/certification-ratings/tvshow/us/TV-PG.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added extras/certification-ratings/tvshow/us/TV-Y.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added extras/certification-ratings/tvshow/us/TV-Y7.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 24 additions & 0 deletions language/resource.language.en_au/strings.po
Original file line number Diff line number Diff line change
@@ -36,6 +36,10 @@ msgctxt "#31020"
msgid "Actions"
msgstr "Actions"

msgctxt "#31051"
msgid "Toggle language"
msgstr "Toggle language"

msgctxt "#31038"
msgid "Rewind"
msgstr "Rewind"
@@ -63,3 +67,23 @@ msgstr "Local subtitle available"
msgctxt "#31100"
msgid "Shift"
msgstr "Shift"

msgctxt "#31171"
msgid "Show movie certification ratings"
msgstr "Show movie certification ratings"

msgctxt "#31172"
msgid "Show TV show certification ratings"
msgstr "Show TV show certification ratings"

msgctxt "#31173"
msgid "Display certification rating on TV show poster"
msgstr "Display certification rating on TV show poster"

msgctxt "#31174"
msgid "Display certification rating on season poster"
msgstr "Display certification rating on season poster"

msgctxt "#31175"
msgid "Display certification rating on episode thumbnail"
msgstr "Display certification rating on episode thumbnail"
57 changes: 49 additions & 8 deletions language/resource.language.en_gb/strings.po
Original file line number Diff line number Diff line change
@@ -154,7 +154,10 @@ msgctxt "#31026"
msgid "Timeshift"
msgstr ""

#empty string with id 31027
#: /xml/SkinSettings.xml
msgctxt "#31027"
msgid "Movie certification rating country"
msgstr ""

#: /xml/DialogAlbumInfo.xml /xml/DialogVideoInfo.xml
msgctxt "#31028"
@@ -201,7 +204,10 @@ msgctxt "#31036"
msgid "items"
msgstr ""

#empty string with id 31037
#: /xml/SkinSettings.xml
msgctxt "#31037"
msgid "TV show certification rating country"
msgstr ""

#: /xml/Variables.xml
msgctxt "#31038"
@@ -213,7 +219,10 @@ msgctxt "#31039"
msgid "Fast forward"
msgstr ""

#empty string with id 31040
#: /xml/SkinSettings.xml
msgctxt "#31040"
msgid "Show Movie certification ratings"
msgstr ""

#: /xml/Variables.xml /xml/MyPics.xml
msgctxt "#31041"
@@ -245,22 +254,26 @@ msgctxt "#31046"
msgid "Delete group"
msgstr ""

#empty string with id 31047
#: /xml/SkinSettings.xml
msgctxt "#31047"
msgid "Display certification rating on TV show poster"
msgstr ""

#: /xml/DialogVideoInfo.xml
msgctxt "#31048"
msgid "Available"
msgstr ""

#empty string with id 31049
#: /xml/SkinSettings.xml
msgctxt "#31049"
msgid "Display certification rating on season poster"
msgstr ""

#: /xml/Variables.xml
msgctxt "#31050"
msgid "Press [B]OK[/B] to stop"
msgstr ""

#empty string with id 31051

#: /xml/Includes.xml
msgctxt "#31052"
msgid "filtered"
@@ -598,7 +611,10 @@ msgctxt "#31132"
msgid "Select Program"
msgstr ""

#empty string with id 31133
#: /xml/Custom_1101_SettingsList.xml
msgctxt "#31133"
msgid "Select Resolution"
msgstr ""

#: /xml/DialogSeekBar.xml
msgctxt "#31134"
@@ -738,3 +754,28 @@ msgstr ""
msgctxt "#31163"
msgid "Show Fanart background"
msgstr ""

#: /xml/SkinSettings.xml
msgctxt "#31171"
msgid "Show movie certification ratings"
msgstr "Show movie certification ratings"

#: /xml/SkinSettings.xml
msgctxt "#31172"
msgid "Show TV show certification ratings"
msgstr "Show TV show certification ratings"

#: /xml/SkinSettings.xml
msgctxt "#31173"
msgid "Display certification rating on TV show poster"
msgstr "Display certification rating on TV show poster"

#: /xml/SkinSettings.xml
msgctxt "#31174"
msgid "Display certification rating on season poster"
msgstr "Display certification rating on season poster"

#: /xml/SkinSettings.xml
msgctxt "#31175"
msgid "Display certification rating on episode thumbnail"
msgstr "Display certification rating on episode thumbnail"
24 changes: 24 additions & 0 deletions language/resource.language.en_nz/strings.po
Original file line number Diff line number Diff line change
@@ -192,6 +192,10 @@ msgctxt "#31046"
msgid "Delete group"
msgstr "Delete group"

msgctxt "#31047"
msgid "Display certification rating on TV show poster"
msgstr "Display certification rating on TV show poster"

msgctxt "#31048"
msgid "Available"
msgstr "Available"
@@ -555,3 +559,23 @@ msgstr "Play your personal games or download one of the many game add-ons from t
msgctxt "#31163"
msgid "Show Fanart background"
msgstr "Show Fanart background"

msgctxt "#31171"
msgid "Show movie certification ratings"
msgstr "Show movie certification ratings"

msgctxt "#31172"
msgid "Show TV show certification ratings"
msgstr "Show TV show certification ratings"

msgctxt "#31173"
msgid "Display certification rating on TV show poster"
msgstr "Display certification rating on TV show poster"

msgctxt "#31174"
msgid "Display certification rating on season poster"
msgstr "Display certification rating on season poster"

msgctxt "#31175"
msgid "Display certification rating on episode thumbnail"
msgstr "Display certification rating on episode thumbnail"
36 changes: 36 additions & 0 deletions language/resource.language.en_us/strings.po
Original file line number Diff line number Diff line change
@@ -124,6 +124,10 @@ msgctxt "#31026"
msgid "Timeshift"
msgstr "Timeshift"

msgctxt "#31027"
msgid "Show movie certification ratings"
msgstr "Show movie certification ratings"

msgctxt "#31028"
msgid "Show fanart"
msgstr "Show fanart"
@@ -160,6 +164,10 @@ msgctxt "#31036"
msgid "items"
msgstr "items"

msgctxt "#31037"
msgid "Show TV show certification ratings"
msgstr "Show TV show certification ratings"

msgctxt "#31038"
msgid "Rewind"
msgstr "Rewind"
@@ -192,10 +200,18 @@ msgctxt "#31046"
msgid "Delete group"
msgstr "Delete group"

msgctxt "#31047"
msgid "Display certification rating on TV show poster"
msgstr "Display certification rating on TV show poster"

msgctxt "#31048"
msgid "Available"
msgstr "Available"

msgctxt "#31049"
msgid "Display certification rating on season poster"
msgstr "Display certification rating on season poster"

msgctxt "#31050"
msgid "Press [B]OK[/B] to stop"
msgstr "Press [B]OK[/B] to stop"
@@ -555,3 +571,23 @@ msgstr "Play your personal games or download one of the many game add-ons from t
msgctxt "#31163"
msgid "Show Fanart background"
msgstr "Show Fanart background"

msgctxt "#31171"
msgid "Show movie certification ratings"
msgstr "Show movie certification ratings"

msgctxt "#31172"
msgid "Show TV show certification ratings"
msgstr "Show TV show certification ratings"

msgctxt "#31173"
msgid "Display certification rating on TV show poster"
msgstr "Display certification rating on TV show poster"

msgctxt "#31174"
msgid "Display certification rating on season poster"
msgstr "Display certification rating on season poster"

msgctxt "#31175"
msgid "Display certification rating on episode thumbnail"
msgstr "Display certification rating on episode thumbnail"
28 changes: 27 additions & 1 deletion xml/DialogVideoInfo.xml
Original file line number Diff line number Diff line change
@@ -32,6 +32,26 @@
<aspectratio>scale</aspectratio>
<texture fallback="DefaultVideo.png">$VAR[InfoDialogPosterVar]</texture>
</control>
<control type="group">
<description>Information view - Movie - Large movie poster image</description>
<visible>!Skin.String(show_moviecertificationrating,$LOCALIZE[16018]) + String.IsEqual(ListItem.DbType,movie)</visible>
<include content="MovieCertificationRatingImage">
<param name="left" value="445"/>
<param name="top" value="720"/>
<param name="height" value="80" />
<param name="width" value="80" />
</include>
</control>
<control type="group">
<description>Information view - TV show - Large show poster image</description>
<visible>!Skin.String(show_tvshowcertificationrating,$LOCALIZE[16018]) + [[Skin.HasSetting(show_tvshowposter) + String.IsEqual(ListItem.DbType,tvshow)] | [Skin.HasSetting(show_tvshowseason) + String.IsEqual(ListItem.DbType,season)] | [Skin.HasSetting(show_tvshowepisode) + String.IsEqual(ListItem.DbType,episode)]]</visible>
<include content="TVShowCertificationRatingImage">
<param name="left" value="40"/>
<param name="top" value="40"/>
<param name="height" value="53" />
<param name="width" value="53" />
</include>
</control>
<control type="group">
<visible>String.IsEqual(ListItem.DBType,episode) | String.IsEqual(ListItem.DBType,video)</visible>
<visible>!String.IsEmpty(ListItem.Thumb) + !String.IsEqual(ListItem.Thumb,ListItem.Art(poster))</visible>
@@ -193,7 +213,13 @@
<param name="label" value="[COLOR button_focus]$LOCALIZE[31048]: [/COLOR]$INFO[ListItem.Season,, $LOCALIZE[36905]]$INFO[ListItem.Episode, (, $LOCALIZE[20453])]" />
<param name="visible" value="!String.IsEmpty(ListItem.Season) + !String.IsEqual(ListItem.DBType,episode)" />
</include>
<include content="InfoDialogMetadata">
<!-- Do not display certification rating text on the movie information screen if certification images are enabled -->
<include content="InfoDialogMetadata" condition="Skin.String(show_moviecertificationrating,$LOCALIZE[231]) + String.IsEqual(ListItem.DBType,movie)">
<param name="control_id" value="156" />
<param name="label" value="[COLOR button_focus]$LOCALIZE[31017]: [/COLOR]$INFO[ListItem.Mpaa]" />
</include>
<!-- Do not display certification rating text on the TV show information screen if certification images are enabled -->
<include content="InfoDialogMetadata" condition="Skin.String(show_tvshowcertificationrating,$LOCALIZE[16018]) + String.IsEqual(ListItem.DBType,tvshow)">
<param name="control_id" value="156" />
<param name="label" value="[COLOR button_focus]$LOCALIZE[31017]: [/COLOR]$INFO[ListItem.Mpaa]" />
<param name="visible" value="!String.IsEmpty(ListItem.Mpaa)" />
24 changes: 23 additions & 1 deletion xml/Includes.xml
Original file line number Diff line number Diff line change
@@ -1505,4 +1505,26 @@
</control>
</focusedlayout>
</include>
</includes>
<include name="MovieCertificationRatingImage">
<control type="image">
<top>$PARAM[top]</top>
<left>$PARAM[left]</left>
<width>$PARAM[width]</width>
<height>$PARAM[height]</height>
<description>Control to display certification rating image</description>
<aspectratio>keep</aspectratio>
<texture>special://skin/extras/certification-ratings/movie/$VAR[MovieCertificationRatingCountryVar]/$VAR[CertificationRatingVar].png</texture>
</control>
</include>
<include name="TVShowCertificationRatingImage">
<control type="image">
<top>$PARAM[top]</top>
<left>$PARAM[left]</left>
<width>$PARAM[width]</width>
<height>$PARAM[height]</height>
<description>Control to display certification rating image</description>
<aspectratio>keep</aspectratio>
<texture>special://skin/extras/certification-ratings/tvshow/$VAR[TVShowCertificationRatingCountryVar]/$VAR[CertificationRatingVar].png</texture>
</control>
</include>
</includes>
38 changes: 38 additions & 0 deletions xml/SkinSettings.xml
Original file line number Diff line number Diff line change
@@ -67,6 +67,44 @@
<onclick>Skin.SelectBool($LOCALIZE[31024], 38018|circle_userrating, 563|circle_rating, 16018|)</onclick>
<label2>$VAR[RatingSettingLabel2Var]</label2>
</control>
<control type="button" id="708">
<label>$LOCALIZE[31037]</label>
<include>DefaultSettingButton</include>
<label2>$VAR[TVShowCertificationRatingLongCountryVar]</label2>
<onclick condition="String.IsEmpty(show_tvshowcertificationrating)">Skin.SetString(show_tvshowcertificationrating,us)</onclick>
<onclick condition="Skin.String(show_tvshowcertificationrating,$LOCALIZE[231])">Skin.SetString(show_tvshowcertificationrating,us)</onclick>
<onclick condition="Skin.String(show_tvshowcertificationrating,us)">Skin.SetString(show_tvshowcertificationrating,$LOCALIZE[231])</onclick>
</control>
<control type="radiobutton" id="709">
<label> - $LOCALIZE[31173]</label>
<include>DefaultSettingButton</include>
<onclick>Skin.ToggleSetting(show_tvshowposter)</onclick>
<selected>Skin.HasSetting(show_tvshowposter)</selected>
<visible>!Skin.String(show_tvshowcertificationrating,$LOCALIZE[231]) + Skin.String(show_tvshowcertificationrating)</visible>
</control>
<control type="radiobutton" id="710">
<label> - $LOCALIZE[31174]</label>
<include>DefaultSettingButton</include>
<onclick>Skin.ToggleSetting(show_tvshowseason)</onclick>
<selected>Skin.HasSetting(show_tvshowseason)</selected>
<visible>!Skin.String(show_tvshowcertificationrating,$LOCALIZE[231]) + Skin.String(show_tvshowcertificationrating)</visible>
</control>
<control type="radiobutton" id="711">
<label> - $LOCALIZE[31175]</label>
<include>DefaultSettingButton</include>
<onclick>Skin.ToggleSetting(show_tvshowepisode)</onclick>
<selected>Skin.HasSetting(show_tvshowepisode)</selected>
<visible>!Skin.String(show_tvshowcertificationrating,$LOCALIZE[231]) + Skin.String(show_tvshowcertificationrating)</visible>
</control>
<control type="button" id="712">
<label>$LOCALIZE[31171]</label>
<include>DefaultSettingButton</include>
<label2>$VAR[MovieCertificationRatingLongCountryVar]</label2>
<onclick condition="String.IsEmpty(show_moviecertificationrating)">Skin.SetString(show_moviecertificationrating,gb)</onclick>
<onclick condition="Skin.String(show_moviecertificationrating,$LOCALIZE[231])">Skin.SetString(show_moviecertificationrating,gb)</onclick>
<onclick condition="Skin.String(show_moviecertificationrating,gb)">Skin.SetString(show_moviecertificationrating,us)</onclick>
<onclick condition="Skin.String(show_moviecertificationrating,us)">Skin.SetString(show_moviecertificationrating,$LOCALIZE[231])</onclick>
</control>
</control>
<control type="grouplist" id="600">
<top>160</top>
Loading