Release - script.skin.info.service
#1
Star 
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), 146Gr48FqHM7TPB9q33HHv6uWpgQqdz1yk (BTC personal)
Estuary: Kodis new default skin - ExtendedInfo Script - KodiDevKit
Reply
#2
Nice, can it get added to the official repos for use in official skins?
Reply
#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), 146Gr48FqHM7TPB9q33HHv6uWpgQqdz1yk (BTC personal)
Estuary: Kodis new default skin - ExtendedInfo Script - KodiDevKit
Reply
#4
Yes, that would be great. Big Grin
Reply
#5
new properties for movies: (thx to BigNoid)
AudioLanguage (single string with all languages, divided by "/")
SubtitleLanguage ("")
Donate: https://kodi.tv/contribute/donate (foundation), 146Gr48FqHM7TPB9q33HHv6uWpgQqdz1yk (BTC personal)
Estuary: Kodis new default skin - ExtendedInfo Script - KodiDevKit
Reply
#6
Hi,

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

To only list movies in sets without plot or so ?

Thanks.
Reply
#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), 146Gr48FqHM7TPB9q33HHv6uWpgQqdz1yk (BTC personal)
Estuary: Kodis new default skin - ExtendedInfo Script - KodiDevKit
Reply
#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.
Reply
#9
correct. not needed to run it on startup anymore.
Donate: https://kodi.tv/contribute/donate (foundation), 146Gr48FqHM7TPB9q33HHv6uWpgQqdz1yk (BTC personal)
Estuary: Kodis new default skin - ExtendedInfo Script - KodiDevKit
Reply
#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), 146Gr48FqHM7TPB9q33HHv6uWpgQqdz1yk (BTC personal)
Estuary: Kodis new default skin - ExtendedInfo Script - KodiDevKit
Reply
#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), 146Gr48FqHM7TPB9q33HHv6uWpgQqdz1yk (BTC personal)
Estuary: Kodis new default skin - ExtendedInfo Script - KodiDevKit
Reply
#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.
Reply
#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), 146Gr48FqHM7TPB9q33HHv6uWpgQqdz1yk (BTC personal)
Estuary: Kodis new default skin - ExtendedInfo Script - KodiDevKit
Reply
#14
OK cool.
Reply
#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
Reply
 
Thread Rating:
  • 1 Vote(s) - 5 Average



Logout Mark Read Team Forum Stats Members Help
script.skin.info.service51