Release - [Mod] Panel-Style Home Screen Widgets - Nox 5

  Thread Rating:
  • 3 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
Warner306 Offline
Posting Freak
Posts: 2,666
Joined: Feb 2014
Reputation: 91
Location: Canada
Post: #1
Updated for Jarvis Git Version
Updated: 17/11/2015

This mod adds panel-style widgets and ExtendedInfo content to Aeon Nox 5.

These panels can be added to your home screen using the standard menu customizer included with the skin. Two xmls must be replaced and one edit made to variables.xml.

Trakt.tv Trending Movies - ExtendedInfo:
[Image: Widgets-Trending-Movies_zpsrv7fxhah.jpg]

Trakt.tv Trending Shows - ExtendedInfo:
[Image: Widgets-Trending-Shows_zpsgbzqwx6y.jpg]

Next Aired Aired Today - TV Show Next Aired:
[Image: Widgets-Aired-Today_zpsbatxoubd.jpg]

Recent Episodes - Library:
[Image: Widgets-Recent-Episodes_zpsxlyhltad.jpg]

Recent Albums - Library:
[Image: Widgets-Recent-Albums_zpsi4q5xd1g.jpg]

Program Addons - Library:
[Image: Widgets-Program-Addons_zps1hufwaro.jpg]

Available Widget Choices:

<!-- Widget 1 Recent Movies -->
<!-- Widget 2 In Cinemas (Rotten Tomatoes) replaces Random Movies -->
<!-- Widget 3 Recommended Movies -->
<!-- Widget 4 Recent Episodes -->
<!-- Widget 5 Trending Movies (Trakt.tv) replaces Random Episodes -->
<!-- Widget 6 Recommended Episodes -->
<!-- Widget 7 Trending Shows (Trakt.tv) replaces Random Songs -->
<!-- Widget 8 Aired Today (Next-Aired) replaces Random Albums -->
<!-- Widget 9 Recent Albums -->
<!-- Widget 10 Recommended Albums -->
<!-- Widget 11 Weather -->
<!-- Widget 12 Video Playlists -->
<!-- Widget 13 Music Playlists -->
<!-- Widget 14 Video Addons -->
<!-- Widget 15 Custom (Video Addons) Path to Plugin -->
<!-- Widget 16 Music Addons -->
<!-- Widget 17 Picture Addons -->
<!-- Widget 18 Program Addons -->

ExtendedInfo Content:

Three new widget types are integrated that use the ExtendedInfo Script:
  • "In Cinemas" from Rotten Tomatoes replaces "Random movies"
  • "Trending Movies" from Trakt.tv replaces "Random episodes"
  • "Trending Shows" from Trakt.tv replaces "Random songs"
In addition, "Aired Today" makes use of the TV Show Next Aired script.

The titles to these widgets are already included in the download. The content, however, must be added manually with a single edit to variables.xml. I left this edit to the user due to the fact that variables.xml controls many other skin functions besides widgets. The other two files, custom_1124_WidgetCustomizer.xml and IncludesHomeRecentlyAdded.xml, deal exclusively with widgets. They are provided complete and will be updated with the skin.

You will Need:
  • custom_1124_WidgetCustomizer.xml
  • IncludesHomeRecentlyAdded.xml
  • Instructions for editing variables - Widgets - Nox 5
  • ExtendedInfo Script
Download Custom Panel Widgets Mod: https://drive.google.com/file/d/0B2LAr9I...sp=sharing.

Place the xml files in the addons/aeon.nox.5/1080i folder for the widgets to appear.

A copy of the ExtendedInfo Script is required for the online content to populate. Otherwise, these panels will appear blank. This add-on is found in the Kodi Add-on repository via the Add-on manager:
  1. Settings
  2. Add-ons
  3. Install from repository
  4. Kodi Add-on repository
  5. Program Add-ons
  6. ExtendedInfo Script
Git Source: https://github.com/phil65/script.extendedinfo.

Lastly, an xml editor such as Notepad++ is necessary to complete the single edit to variables.xml.

Pasted instructions for editing variables.xml to include ExtendedInfo panels:

Widget Content - "Random movies" replaced by "In Cinemas (Rotten Tomatoes)," "Random episodes" replaced by "Trending Movies (Trakt.tv)," "Random songs" replaced by "Trending Shows (Trakt.tv)" and "Random albums" replaced by "Aired Today (Next Aired)."

Replace the complete variable at Line 416:

<variable name="WidgetListContent">
<value condition="StringCompare(Container(9000).ListItem.Property(Widget),2)">plugin://script.extendedinfo?info=boxoffice</value>
<value condition="StringCompare(Container(9000).ListItem.Property(Widget),5)">plugin://script.extendedinfo?info=trendingmovies</value>
<value condition="StringCompare(Container(9000).ListItem.Property(Widget),6)">plugin://service.library.data.provider?type=recommendedepisodes&amp;reload=$INFO[Window.Property(recommendedepisodes)]</value>
<value condition="StringCompare(Container(9000).ListItem.Property(Widget),7)">plugin://script.extendedinfo?info=trendingshows</value>
<value condition="StringCompare(Container(9000).ListItem.Property(Widget),9)">plugin://service.library.data.provider?type=recentalbums&amp;reload=$INFO[Window.Property(recentalbums)]</value>
<value condition="StringCompare(Container(9000).ListItem.Property(Widget),10)">plugin://service.library.data.provider?type=recommendedalbums&amp;reload=$INFO[Window.Property(recommendedalbums)]</value>
<value condition="!IsEmpty(Container(9000).ListItem.Property(Widget))">$INFO[Container(9000).ListItem.Property(Widget)]</value>
</variable>
(This post was last modified: 2015-11-18 00:36 by Warner306.)
find quote
Warner306 Offline
Posting Freak
Posts: 2,666
Joined: Feb 2014
Reputation: 91
Location: Canada
Post: #2
The default action for ExtendedInfo content (play trailer) can be changed via the add-on settings:

[Image: ExtendedSettings_zpssh9yjefx.jpg]

Open InfoDialog by default loads the Video Info screen in place of the trailer, allowing you to view information such as the cast, crew and release date.

Refreshing Content: I believe the panels are programmed to update every 5-7 days. If you wish to update the content more frequently, you must select "Delete cache" from the add-on settings.
(This post was last modified: 2015-11-17 07:45 by Warner306.)
find quote
Edworld Offline
Posting Freak
Posts: 1,197
Joined: Sep 2014
Reputation: 7
Location: Michigan
Post: #3
Warner:

This looks great!

In one of your posts you shared your skin. Are these mods included?
find quote
Warner306 Offline
Posting Freak
Posts: 2,666
Joined: Feb 2014
Reputation: 91
Location: Canada
Post: #4
(2015-01-18 06:50)Edworld Wrote:  Warner:

This looks great!

In one of your posts you shared your skin. Are these mods included?

Nope, not included. Not all panel types display correctly, so I left it out. I think I'm done creating new mods. I was fond of the ExtendedInfo Script and actually use it on a regular basis. So it wasn't just about making an already great skin look better. I like having access to online content that is always evolving. I have other ideas, but I'll stick to monitoring what has already been posted.

I do like the look of these panels, however. They look great on a TV screen. But the panel content does not refresh often enough, or at some cases, at all! This is been mentioned to Phil, so I'll wait and see what happens.
find quote
Warner306 Offline
Posting Freak
Posts: 2,666
Joined: Feb 2014
Reputation: 91
Location: Canada
Post: #5
FYI: If you are having issues with ExtendedInfo content not refreshing, try deleting the add-on folder located at:

userdata/addon_data/script.extendedinfo

That fixed it for me.

But you have to keep deleting it to keep updating!
(This post was last modified: 2015-01-26 23:23 by Warner306.)
find quote
huzz456 Offline
Senior Member
Posts: 155
Joined: Dec 2012
Reputation: 0
Post: #6
This is excellent, great work! I'm wondering if it's possible to have an 'add to couchpotato' button somewhere for the online content? There is a trailer addon that does it so should be possible
find quote
Warner306 Offline
Posting Freak
Posts: 2,666
Joined: Feb 2014
Reputation: 91
Location: Canada
Post: #7
(2015-01-19 23:34)huzz456 Wrote:  This is excellent, great work! I'm wondering if it's possible to have an 'add to couchpotato' button somewhere for the online content? There is a trailer addon that does it so should be possible

I haven't looked, but it couldn't be done from the home screen. The ExtendedInfo plugin controls the onclick action, which plays a trailer by default. You would have to enable the infodialog and add a button in there. My VideoInfo dialogs for ExtendedInfo are already full of other content, so I don't know where I would put such a button.

Edit: It could work by adding an onclick action to an item in the panel that contains the director, writer, release date, etc. I would add an item to the end that could be clicked and perform a plugin action. The Director is already a click-able button. I would need the code to do this, however. I don't know anything about CouchPotato.
(This post was last modified: 2015-01-20 05:32 by Warner306.)
find quote
Warner306 Offline
Posting Freak
Posts: 2,666
Joined: Feb 2014
Reputation: 91
Location: Canada
Post: #8
I just started using CouchPotato myself and plan to investigate this matter further. It likely can be done. A similar function is to rate a movie via Trakt. That code looks like this:

<onclick>RunScript(script.trakt,action=rate)</onclick>

A similar call may be available for CouchPotato. That will require some research or assistance...

Edit: I think I've found the answer already. I'll have to test it. I'm told there is no notification if the action is successful or not. That could be a problem.

<onclick>RunPlugin(plugin://plugin.video.couchpotato_manager/movies/add?title=$INFO[ListItem.Label])</onclick>
(This post was last modified: 2015-01-20 07:34 by Warner306.)
find quote
huzz456 Offline
Senior Member
Posts: 155
Joined: Dec 2012
Reputation: 0
Post: #9
Wow quick work! Looking forward to this, will make my setup much quicker and easier when it comes to finding new content to watch
find quote
dan_jericho Offline
Junior Member
Posts: 20
Joined: Apr 2012
Reputation: 0
Post: #10
Do you have any plans to do a panel type widget for addons?
find quote
Warner306 Offline
Posting Freak
Posts: 2,666
Joined: Feb 2014
Reputation: 91
Location: Canada
Post: #11
(2015-01-20 19:25)dan_jericho Wrote:  Do you have any plans to do a panel type widget for addons?

Addons are already coded to look the album covers. You cannot create custom addon widgets, however. The choices are limited to those listed in the instructions. This is a limitation of the skin not my design.
find quote
Warner306 Offline
Posting Freak
Posts: 2,666
Joined: Feb 2014
Reputation: 91
Location: Canada
Post: #12
(2015-01-20 12:50)huzz456 Wrote:  Wow quick work! Looking forward to this, will make my setup much quicker and easier when it comes to finding new content to watch

I couldn't get this feature to work me. All I end up with is a script error. I sent you a PM with a test copy to see if it works for you. I think my problem relates to the CouchPotato addon requiring an update.
find quote
huzz456 Offline
Senior Member
Posts: 155
Joined: Dec 2012
Reputation: 0
Post: #13
Thanks Warner hopefully I'll get a chance to look this weekend
find quote
Warner306 Offline
Posting Freak
Posts: 2,666
Joined: Feb 2014
Reputation: 91
Location: Canada
Post: #14
(2015-01-23 01:38)huzz456 Wrote:  Thanks Warner hopefully I'll get a chance to look this weekend

If it works for you, I can improve the design slightly and provide you with a copy.
find quote
huzz456 Offline
Senior Member
Posts: 155
Joined: Dec 2012
Reputation: 0
Post: #15
Hi warner, just having a go at this. I've copied the 3 xml files (2 from above and 1 from pm) to the skin/1080i folder and edited the lines at 392 in variables xml. When I go to the menu customiser in nox I now have the new widget options but none will appear on the home screen when selected. What am I doing wrong?
find quote
Post Reply