Mod Video Information Window (DialogVideoInfo) with Rotten Tomatoes - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33) +--- Forum: Skins Support (https://forum.kodi.tv/forumdisplay.php?fid=67) +---- Forum: Arctic: Zephyr - Reloaded (https://forum.kodi.tv/forumdisplay.php?fid=221) +---- Thread: Mod Video Information Window (DialogVideoInfo) with Rotten Tomatoes (/showthread.php?tid=261424) |
RE: Video Information Window (DialogVideoInfo) with Rotten Tomatoes - Hustler1337 - 2016-02-27 (2016-02-27, 01:49)neurosis13 Wrote:(2016-02-27, 00:47)Hustler1337 Wrote: It is possible to show the flags in your case, but that would involve adding variables to the code, which requires modification of another file - something that I tried to avoid to ease the process of updating the skin when a skin update is released. Oops, sorry, I don't use discart and it was late at night. I don't mind doing a custom version for you since I quite enjoy it and it's fairly quick to make the changes since the hard work has already been done. I've repositioned the labels and hopefully it shouldn't overlap the discart Also, I've created a custom variable for the flag icon to show since your MPAA ratings are not in the normal format used by most. You'll need to add the following in Includes_Labels.xml: PHP Code: <variable name="GetShortenedMPAA"> Also, here is the dialoguevideo.xml file: [removed] I've not tested it, so do let me know how it goes. RE: Video Information Window (DialogVideoInfo) with Rotten Tomatoes - Hustler1337 - 2016-02-27 Tweaks Disable Trailer-autoplay: Delete lines: 10, 11 and 1359 of DialogVideoinfo.xml
Change Rating Star Colours: To diffuse, replace <texture> part only of:
PHP Code: <texture>flags/$VAR[Flagstar1].png</texture> Repeat for Flagstar2, Flagstar3, Flagstar4 and Flagstar 5 with a colour of your choice. Here are some examples: "Firebrick" (similar to Netflix) Code: <texture colordiffuse="firebrick"> "Red" Code: <texture colordiffuse="red"> Skin Highlight (example) Code: <texture colordiffuse="$VAR[ColorHighlight]"> "GoldenRod" Code: <texture colordiffuse="goldenrod"> "Gold" Code: <texture colordiffuse="gold"> "OrangeRed" Code: <texture colordiffuse="orangered"> RE: Video Information Window (DialogVideoInfo) with Rotten Tomatoes - Edworld - 2016-02-27 Hustler: Do you know what to change if you don't want to show the image or rating if the result is "N/A"? I tried using IsEmpty but couldn't get it to work Thanks RE: Video Information Window (DialogVideoInfo) with Rotten Tomatoes - neurosis13 - 2016-02-27 @Hustler yes, you are fantastic! i think it couldn't have been done better. thanks a lot, will play with it for a while to see what can be improved but for now everything is how i wanted it to be. RE: Video Information Window (DialogVideoInfo) with Rotten Tomatoes - Hustler1337 - 2016-02-27 Nemesis, I've noticed I've forgotten to add a diffuse since you're using the Light colour theme - the Star flags, MPAA and HD icon, and Studio logos appear white and difficult to see on the light theme. Update to this: [removed] and it should appear as dark grey, like the rest of the theme. Thanks for the screenshot, I wouldn't have noticed otherwise RE: Video Information Window (DialogVideoInfo) with Rotten Tomatoes - neurosis13 - 2016-02-27 (2016-02-27, 18:53)Hustler1337 Wrote: Nemesis, I've noticed I've forgotten to add a diffuse since you're using the Light colour theme - the Star flags, MPAA and HD icon, and Studio logos appear white and difficult to see on the light theme. Update to this: http://pastebin.com/raw/HS1WVjwP and it should appear as dark grey, like the rest of the theme. Thanks for the screenshot, I wouldn't have noticed otherwise works! by the way, in the screenshot you see that the movie is Rated X Can you make a mpaa flag for that ? if not i can try to make one which fits the design of the others as good as it gets. Do you know how i can add the condition for that in the Includes_Labels.xml ? i tried to do it myself but somehow it didn't work. RE: Video Information Window (DialogVideoInfo) with Rotten Tomatoes - Hustler1337 - 2016-02-27 Replace the variable in Includes_Labels.xml with this: http://pastebin.com/raw/yyDsk1J9 and download the updated set of flags from here. Hope that works. RE: Video Information Window (DialogVideoInfo) with Rotten Tomatoes - neurosis13 - 2016-02-28 (2016-02-27, 23:42)Hustler1337 Wrote: Replace the variable in Includes_Labels.xml with this: http://pastebin.com/raw/yyDsk1J9 and download the updated set of flags from here. Hope that works. it worked, thank you very much. RE: Video Information Window (DialogVideoInfo) with Rotten Tomatoes - lollofabbri - 2016-02-28 What about add oscar and golden globe awards? RE: Video Information Window (DialogVideoInfo) with Rotten Tomatoes - neurosis13 - 2016-02-28 @Hustler i noticed yesterday that the TV mpaa logos didn't show up correctly, it always showed the " T " logo. i removed the variable for the "T" rating from the Includes_Labels.xml and then it worked, now all TV US mpaa logos are being shown. i also had the problem that the "PG" rating for movies sometimes showed the "NR" logo. i corrected that myself and it works now. just wanted to inform you. RE: Video Information Window (DialogVideoInfo) with Rotten Tomatoes - Hustler1337 - 2016-02-28 (2016-02-28, 14:16)lollofabbri Wrote: What about add oscar and golden globe awards? Oscar and Golden Globe awards are already included under "Awards" RE: Video Information Window (DialogVideoInfo) with Rotten Tomatoes - Hustler1337 - 2016-02-28 @Neurosis, oops. I know why it happened - the code returns the first match from the list and in that list "T" was above the TV-MA etc lookups so it never had the chance to get down to looking for the TV-MA etc part. You can solve it by moving the "T" only search to the bottom of the list. The workaround overall is not ideal so it can be prone to errors, but for the most part it should work for you. The code essentially scans through your custom formatted MPAA tag, searching for the values given in the list and returns back to the skin a shortened version of it for the skin to use. It could be improved if I had a better idea of how it is formatted for all ratings. The ideal solution would have been a script-side solution but that goes beyond the scope of skinning. Yours is an unusual case, so for others reading, you shouldn't have any of these issues. Glad you got it all working for you Neurosis RE: Video Information Window (DialogVideoInfo) with Rotten Tomatoes - neurosis13 - 2016-02-28 (2016-02-28, 16:13)Hustler1337 Wrote: @Neurosis, oops. I know why it happened - the code returns the first match from the list and in that list "T" was above the TV-MA etc lookups so it never had the chance to get down to looking for the TV-MA etc part. You can solve it by moving the "T" only search to the bottom of the list. The workaround overall is not ideal so it can be prone to errors, but for the most part it should work for you. The code essentially scans through your custom formatted MPAA tag, searching for the values given in the list and returns back to the skin a shortened version of it for the skin to use. It could be improved if I had a better idea of how it is formatted for all ratings. The ideal solution would have been a script-side solution but that goes beyond the scope of skinning. hi hustler, thank you for your explanation. i got it all working now. The problem is that all kodi movie scrapers don't scrape this info so that leaves us with add ons and tools like ember media manager and Media Elch etc, but not everybody uses these tools of course. Maybe sometime in the future Universal Movie Scraper and / or Themoviedb scraper pick those mpaa rating descriptions up. should anybody be interested in the includes_LAbels.xml changes, here they are: <variable name="GetShortenedMPAA"> <value condition="SubString(ListItem.Mpaa,PG-13)">pg-13</value> <value condition="SubString(ListItem.Mpaa,PG for)">pg</value> <value condition="SubString(ListItem.Mpaa,R for)">r</value> <value condition="SubString(ListItem.Mpaa,G for)">g</value> <value condition="SubString(ListItem.Mpaa,Rated R)">r</value> <value condition="SubString(ListItem.Mpaa,Rated UC)">uc</value> <value condition="SubString(ListItem.Mpaa,NC-17)">nc-17</value> <value condition="SubString(ListItem.Mpaa,VM14)">vm14</value> <value condition="SubString(ListItem.Mpaa,VM18)">vm18</value> <value condition="SubString(ListItem.Mpaa,Rated X )">x</value> <value condition="SubString(ListItem.Mpaa,Rated PG )">pg</value> <value condition="SubString(ListItem.Mpaa,G )">g</value> <value condition="SubString(ListItem.Mpaa,TV-Y7 )">TV-Y7</value> <value condition="SubString(ListItem.Mpaa,TV-Y )">TV-Y</value> <value condition="SubString(ListItem.Mpaa,TV-G )">TV-G</value> <value condition="SubString(ListItem.Mpaa,TV-PG )">TV-PG</value> <value condition="SubString(ListItem.Mpaa,TV-14 )">TV-14</value> <value condition="SubString(ListItem.Mpaa,TV-MA )">TV-MA</value> <value condition="SubString(ListItem.Mpaa,0 )">0</value> <value condition="SubString(ListItem.Mpaa,6 )">6</value> <value condition="SubString(ListItem.Mpaa,12 )">12</value> <value condition="SubString(ListItem.Mpaa,12a )">12a</value> <value condition="SubString(ListItem.Mpaa,15 )">15</value> <value condition="SubString(ListItem.Mpaa,16 )">16</value> <value condition="SubString(ListItem.Mpaa,18 )">18</value> <value condition="SubString(ListItem.Mpaa,R18)">r18</value> <value condition="IsEmpty(ListItem.Mpaa)">nr</value> <value>nr</value> </variable></includes> RE: Video Information Window (DialogVideoInfo) with Rotten Tomatoes - lollofabbri - 2016-02-29 (2016-02-28, 15:57)Hustler1337 Wrote:(2016-02-28, 14:16)lollofabbri Wrote: What about add oscar and golden globe awards? I mean the icons of the awards... maybe close to the raitings RE: Video Information Window (DialogVideoInfo) with Rotten Tomatoes - Edworld - 2016-03-02 Hustler1337: Any interest in adding metacritic.com rating? It is now available with skinhelper.service Thanks |