(2019-07-24, 09:26)Jonnygrunge Wrote: (2019-07-24, 09:08)Karellen Wrote: (2019-07-24, 09:05)Jonnygrunge Wrote: I know mardukL is going to have a look into this in more detail when he gets the opportunity.
As I said, it is not a skin issue. It is the scraped data that is the issue. Not sure what mardukL can do with the skin that will work for every country certification, or are you hoping that mardukL will redesign the skin for the UK
only?
Anyway, your choice how you proceed
Not sure really I have the modded Alpha version of his in zip format. I would be happy to upload this for any changes he needs/wants to apply and perhaps create a UK version? Not for me to decide though his work, not mine! Yeah it is annoying that most of the scraped data appears to be MPAA biased, but hey ho! Thanks for your support and all the work you have done for the project over the years! Total respect!
Hi, first @
Karellen is right, also have a depper knowledge about scrapping in generell ,beside other things aswell.
Changing textures, and using only this is not intended nor useull.
Whats the state here
- The scrapper adds mpaa certification value based on scrapper settings, and writes the fetched value into the db, skins can use $INFO[ListItem.mpaa] to show it
- the 'universal scrapper' is (the only i know about ) which can use a prefix
(that means $INFO[ListItem.mpaa] will return 'prefix''mpaavalue' instead of just ''mpaavalue' )
- If the scrapper cant find one based on settings, you need
- a) add mpaa certification on the db site you like to use within the scrapper (e.g. themoviedb.org) for your missing movie
- b) using nfo, and set a mpaa value manualy <mpaa>
16</mpaa>, or <mpaa>
UK:16</mpaa>, the green value is representing what will shown using
$INFO[ListItem.mpaa]
- c) edit the depending kodi .db file (dont ask me for support here
for that )
- a skin can make use of a variable based on a prefix (using as example some of this string.*startswith/contains/endswith/isempty*$INFO[ListItem.mpaa])
that means
if there is just a numeric value its impossible to make a variable for icons based on different country certs, but using a prefix resolve that, because you can check against that prefix (e.g. "String.StartsWith(ListItem.mpaa),UK)" )
What a skin can do
is creating a skinstring (fixed textlabel) to check against
e.g.
xml:
setting button action
<onclick condition="">Skin.Reset(mpaa_prefix)</onclick> <!-- reset if in use in case of change it -->
<onclick condition="">Skin.SetString(mpaa_prefix)</onclick> <!-- set custom prefix, needed to check against via variable, this will open dialogkeybord to set your label -->
<onclick condition="">Skin.Toggleseting(i_am_not_using_scraper_prefix)</onclick> <!-- may usefull as option to check against for a variable -->
now a skinner can use the prefix similiar to the one from the scrapper to use them in a variabel, usefull if using tmdb scrapper and want to use a prefix
e.g.
xml:
for a text label
<value condition="!String.IsEmpty(ListItem.mpaa) + !String.IsEmpty(Skin.String(mpaa_prefix))">$INFO[Skin.String(mpaa_prefix)]$INFO[ListItem.mpaa]</value>
for an image
<value condition="String.EndsWith(ListItem.mpaa,12) + String.StartsWith(Skin.String(mpaa_prefix,UK)">$VAR[mediaflags_large_path]/mpaa/BBFC_12_Certificate_UK.png</value>
Thats all whats possible (at least for me)
I dont like to fill empty results with fake label, eg. if empty i just like to use N/A, or an NR image.