Release - script.skin.info.service

  Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
phil65 Offline
Team-Kodi Developer
Posts: 6,501
Joined: Mar 2009
Reputation: 135
Location: Cologne, Germany
Star  script.skin.info.service
Post: #1
hey guys,
I stripped out the daemon part of script.extendedinfo into a separate add-on.
https://github.com/phil65/script.skin.info.service
This also covers all properties from script.videolanguage now (thx to black) so you do not need to have 2 daemons running for setting window properties in media windows.
Documentation (i hope i got everything):
Code:
Start the script with RunScript(script.skin.info.service) in startup.xml
+Properties will then be available in the corresponding media windows.
+
+New properties:
+
+For artists:
+Window(home).Property(...)
+    'Artist.Album.%d.Title' % i
+    'Artist.Album.%d.Plot' % i
+    'Artist.Album.%d.PlotOutline' % i
+    'Artist.Album.%d.Year' % i
+    'Artist.Album.%d.Duration' % i
+    'Artist.Album.%d.Thumb' % i
+    'Artist.Album.%d.ID' % i
+    'Artist.Albums.Newest'  
+    'Artist.Albums.Oldest'  
+    'Artist.Albums.Count'  
+    'Artist.Albums.Playcount'  
+
+For Albums:
+Window(home).Property(...)
+    'Album.Song.%d.Title' % i
+    'Album.Song.%d.FileExtension' % i
+    'Album.Songs.TrackList'  
+    'Album.Songs.Discs'
+    'Album.Songs.Discs'  
+    'Album.Songs.Duration'  
+    'Album.Songs.Count'
+
+For movie sets:
+Window(home).Property(...)
+    'Set.Movie.%d.Art(clearlogo)' % i
+    'Set.Movie.%d.Art(fanart)' % i
+    'Set.Movie.%d.Art(poster)' % i
+    'Set.Movie.%d.Art(discart)' % i
+    'Set.Movies.Plot'  
+    'Set.Movies.ExtendedPlot'  
+    'Set.Movies.Runtime'  
+    'Set.Movies.Writer'  
+    'Set.Movies.Director'  
+    'Set.Movies.Genre'  
+    'Set.Movies.Years'  
+    'Set.Movies.Count'
+
+For movie years, directors, actors, genres, studios countries and tags:
+Window(home).Property(...)
+    'Detail.Movie.%d.Art(poster)' % i
+    'Detail.Movie.%d.Art(fanart)' % i
+    'Detail.Movie.%d.Path' % i
+
+For movies:
+Window(movieinformation).Property(...)
+    AudioLanguage.%d' % i
+    AudioCodec.%d' % i
+    AudioChannels.%d' % i
+    SubtitleLanguage.%d' % i
+    AudioLanguage
+    SubtitleLanguage

Donate: https://kodi.tv/contribute/donate (foundation), 14CmofXb2PDohNqKtaBYRcMtQV3BBWrLNB (BTC personal)
Estuary: Kodis new default skin - ExtendedInfo Script - KodiDevKit
(This post was last modified: 2015-03-11 15:30 by phil65.)
find quote
Hitcher Offline
Team-Kodi Member
Posts: 12,983
Joined: Aug 2007
Reputation: 189
Location: Eastleigh, UK
Post: #2
Nice, can it get added to the official repos for use in official skins?
find quote
phil65 Offline
Team-Kodi Developer
Posts: 6,501
Joined: Mar 2009
Reputation: 135
Location: Cologne, Germany
Post: #3
(2014-08-29 11:40)Hitcher Wrote:  Nice, can it get added to the official repos for use in official skins?

yes, I´m in the process of getting my python stuff into shape. when I´m done I´ll ask for repo inclusion.
since this is firing a lot of json calls, do you skinners want the ability to only get info for specific media types? (something like RunScript(script.skin.info.service,info=sets|movies|artists) )

Donate: https://kodi.tv/contribute/donate (foundation), 14CmofXb2PDohNqKtaBYRcMtQV3BBWrLNB (BTC personal)
Estuary: Kodis new default skin - ExtendedInfo Script - KodiDevKit
find quote
Hitcher Offline
Team-Kodi Member
Posts: 12,983
Joined: Aug 2007
Reputation: 189
Location: Eastleigh, UK
Post: #4
Yes, that would be great. Big Grin
find quote
phil65 Offline
Team-Kodi Developer
Posts: 6,501
Joined: Mar 2009
Reputation: 135
Location: Cologne, Germany
Post: #5
new properties for movies: (thx to BigNoid)
AudioLanguage (single string with all languages, divided by "/")
SubtitleLanguage ("")

Donate: https://kodi.tv/contribute/donate (foundation), 14CmofXb2PDohNqKtaBYRcMtQV3BBWrLNB (BTC personal)
Estuary: Kodis new default skin - ExtendedInfo Script - KodiDevKit
find quote
Mike-pro Offline
Junior Member
Posts: 2
Joined: Aug 2014
Reputation: 0
Post: #6
Hi,

Is there a simple 'Set.Movies.Titles' ?

To only list movies in sets without plot or so ?

Thanks.
find quote
phil65 Offline
Team-Kodi Developer
Posts: 6,501
Joined: Mar 2009
Reputation: 135
Location: Cologne, Germany
Post: #7
(2014-09-26 11:06)Mike-pro Wrote:  Hi,

Is there a simple 'Set.Movies.Titles' ?

To only list movies in sets without plot or so ?

Thanks.

no, not available.

For devs:
I completely converted this script to make it event-driven without the need of a daemon which runs all the time.
should be better in terms of performance + some other nice side-effects (instant change of infos for example)

you can test it here: https://github.com/phil65/script.skin.in...onToPlugin

to you use you need to put a container into myvideonav.xml / mymusicnav.xml:

Code:
<control type="list" id="20000">
             <posx>0</posx>
            <posy>0</posy>
            <width>1</width>
            <height>1</height>
            <orientation>horizontal</orientation>
            <itemlayout></itemlayout>
            <focusedlayout></focusedlayout>
            <content>plugin://script.skin.info.service?dbid=$INFO[ListItem.DBID]&amp;label=$INFO[ListItem.Label]/</content>
        </control>

feedback appreciated. thx.

Donate: https://kodi.tv/contribute/donate (foundation), 14CmofXb2PDohNqKtaBYRcMtQV3BBWrLNB (BTC personal)
Estuary: Kodis new default skin - ExtendedInfo Script - KodiDevKit
(This post was last modified: 2014-09-29 02:28 by phil65.)
find quote
jurialmunkey Offline
Skilled Skinner
Posts: 1,739
Joined: Feb 2013
Reputation: 159
Post: #8
(2014-09-29 01:42)phil65 Wrote:  For devs:
I completely converted this script to make it event-driven without the need of a daemon which runs all the time.
should be better in terms of performance + some other nice side-effects (instant change of infos for example)

you can test it here: https://github.com/phil65/script.skin.in...onToPlugin
feedback appreciated. thx.

I get a script failed notification on load...
EDIT: Realised I do not need to run it at startup anymore because it is being loaded as content. Seems to be working well so far.

EDIT2: Sometimes I'm getting the info disappearing after it briefly shows up if I scroll quickly down to the movie set (for set extendedplot).Also, I'll occasionally get the info from the wrong set.This only happens when I'm scrolling through quickly. I'm only using it outside list containers.

EDIT3: I've gone back and compared it to the original script.skin.info.service and the performance actually seems worse in the DaeomonToPlugin version. Plus the old version seems to always display the correct info.
(This post was last modified: 2014-09-29 02:47 by jurialmunkey.)
find quote
phil65 Offline
Team-Kodi Developer
Posts: 6,501
Joined: Mar 2009
Reputation: 135
Location: Cologne, Germany
Post: #9
correct. not needed to run it on startup anymore.

Donate: https://kodi.tv/contribute/donate (foundation), 14CmofXb2PDohNqKtaBYRcMtQV3BBWrLNB (BTC personal)
Estuary: Kodis new default skin - ExtendedInfo Script - KodiDevKit
find quote
phil65 Offline
Team-Kodi Developer
Posts: 6,501
Joined: Mar 2009
Reputation: 135
Location: Cologne, Germany
Post: #10
ok, could not spot any difference here on my end. you only tested sets, right?
if performance is worse i will return to the old way of course. In theory it should be better now.
also please try again latest version. i removed the logging so perhaps that helps.
perhaps someone else could test, too?

Donate: https://kodi.tv/contribute/donate (foundation), 14CmofXb2PDohNqKtaBYRcMtQV3BBWrLNB (BTC personal)
Estuary: Kodis new default skin - ExtendedInfo Script - KodiDevKit
(This post was last modified: 2014-09-29 03:41 by phil65.)
find quote
phil65 Offline
Team-Kodi Developer
Posts: 6,501
Joined: Mar 2009
Reputation: 135
Location: Cologne, Germany
Post: #11
on a sidenote:
for a lot of use cases you you can also simply just use <content>videodb://movies/sets/$INFO[ListItem.DBID]/</content>
no script needed at all when doing it this way.

Donate: https://kodi.tv/contribute/donate (foundation), 14CmofXb2PDohNqKtaBYRcMtQV3BBWrLNB (BTC personal)
Estuary: Kodis new default skin - ExtendedInfo Script - KodiDevKit
find quote
Hitcher Offline
Team-Kodi Member
Posts: 12,983
Joined: Aug 2007
Reputation: 189
Location: Eastleigh, UK
Post: #12
I haven't had time to test this update out but I've definitely seen the difference when using content paths for home widgets vs window properties (script.watchlist vs skin.widgets) and went back to using the latter.
find quote
phil65 Offline
Team-Kodi Developer
Posts: 6,501
Joined: Mar 2009
Reputation: 135
Location: Cologne, Germany
Post: #13
(2014-09-30 10:13)Hitcher Wrote:  I haven't had time to test this update out but I've definitely seen the difference when using content paths for home widgets vs window properties (script.watchlist vs skin.widgets) and went back to using the latter.

that´s not comparable since i do not fill any lists with the plugin:// stuff in this case. i just use the list to trigger the property update.

Donate: https://kodi.tv/contribute/donate (foundation), 14CmofXb2PDohNqKtaBYRcMtQV3BBWrLNB (BTC personal)
Estuary: Kodis new default skin - ExtendedInfo Script - KodiDevKit
find quote
Hitcher Offline
Team-Kodi Member
Posts: 12,983
Joined: Aug 2007
Reputation: 189
Location: Eastleigh, UK
Post: #14
OK cool.
find quote
boppyman Offline
Senior Member
Posts: 178
Joined: Sep 2012
Reputation: 0
Post: #15
Hi Phil

I was using your extendedinfo script to show information on sets but it stopped working with frodo and am now using this one in here (script.skin.info.service-master) which works brilliant but i have to manually launch it at each startup to get it to work.

Is there any way to set it to launch automatically?

Thanks
find quote
Post Reply