Release - script.extendedinfo

  Thread Rating:
  • 26 Vote(s) - 4.27 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
phil65 Offline
Team-Kodi Developer
Posts: 6,687
Joined: Mar 2009
Reputation: 147
Location: Cologne, Germany
Post: #16
btw if you decide to put the NearEvents properties into focusable containers then i´d recommend to use
"ActivateWindow(videos,plugin://plugin.video.youtube/?path=/root/search&feed=search&search=$INFO[Window(Home).Property(NearEvents.1.Artists)],return)" etc
as onclick event to start a youtube search for the artist.
(or perhaps script.globalsearch can be called with arguments, not sure about that)

Donate: https://kodi.tv/contribute/donate (foundation), 146Gr48FqHM7TPB9q33HHv6uWpgQqdz1yk (BTC personal)
Estuary: Kodis new default skin - ExtendedInfo Script - KodiDevKit
(This post was last modified: 2013-03-27 21:13 by phil65.)
find quote
MarcosQui Offline
Skilled Skinner
Posts: 1,612
Joined: Nov 2009
Reputation: 114
Post: #17
phil, for sets, If you can include the old tags:

Years
TotalMovies
WatchedMovies
UnWatchedMovies
Countries

%i.Path
%i.ExtraFanart
%i.Year
PlayMedia(...)

It really would be great.

------------------------------------------------------

Want to know more about the skin? Liked my work and want contribute?
Visit my website
XBMC Brazilian Community Forum
By making a donation, please do not post in the forum, send me an email or PM, thank you.
find quote
phil65 Offline
Team-Kodi Developer
Posts: 6,687
Joined: Mar 2009
Reputation: 147
Location: Cologne, Germany
Post: #18
Set.Movies.Count and %i.Path, %i.Year ,%i.Art(discart) and %i.DBID are also included now.
(you can start a movie with "RunScript(service.skin.widgets,movieid=$INFO[...])" then, assuming you have service.skin.widget added as a dependency)

next one.

start the script with

RunScript(script.extendedinfo,info=xkcd)

and you´ll get

Window(home).Property(...
XKCD.%i.Title
XKCD.%i.Image
XKCD.%i.Description

this gives you some awesome random XKCD webcomics^^

[Image: f20vYX9.jpg]

Donate: https://kodi.tv/contribute/donate (foundation), 146Gr48FqHM7TPB9q33HHv6uWpgQqdz1yk (BTC personal)
Estuary: Kodis new default skin - ExtendedInfo Script - KodiDevKit
(This post was last modified: 2013-03-28 05:58 by phil65.)
find quote
fmronan Offline
Fan
Posts: 600
Joined: Dec 2010
Reputation: 4
Post: #19
is it possible to add something like script-MovieSets-DialogInfo.xml?
find quote
mikebzh44 Offline
Posting Freak
Posts: 2,151
Joined: Nov 2011
Reputation: 59
Location: Nantes - France
Post: #20
Maybe a refresh / clean issue with properties.

If you browse a movieset composed of 3 movies (Batman with Christian BALE for example), the 3 correct discarts are displayed but if you go back and browse another movieset composed of 2 movies (Cars, animated with Flash Mc Queen for example), then discart #1 and #2 are from Cars movies but discart #3 is from Batman movieset.

Sorry for my english, but, you know, I'm French so ...

Main HTPC : Core i3 2120T running OpenELEC with Aeon Nox 5 and my mod
Secondary HTPC : Freebox Mini 4K running Android TV with Aeon Nox 5 and my mod
find quote
MarcosQui Offline
Skilled Skinner
Posts: 1,612
Joined: Nov 2009
Reputation: 114
Post: #21
(2013-03-28 10:58)fmronan Wrote:  is it possible to add something like script-MovieSets-DialogInfo.xml?

+1 Nod

and more 1 request, please:

%i.Plot

------------------------------------------------------

Want to know more about the skin? Liked my work and want contribute?
Visit my website
XBMC Brazilian Community Forum
By making a donation, please do not post in the forum, send me an email or PM, thank you.
find quote
phil65 Offline
Team-Kodi Developer
Posts: 6,687
Joined: Mar 2009
Reputation: 147
Location: Cologne, Germany
Post: #22
not possible without dirty workarounds including keymap changes. i won´t do that.
will add Plot / PlotOutline.

Donate: https://kodi.tv/contribute/donate (foundation), 146Gr48FqHM7TPB9q33HHv6uWpgQqdz1yk (BTC personal)
Estuary: Kodis new default skin - ExtendedInfo Script - KodiDevKit
find quote
MarcosQui Offline
Skilled Skinner
Posts: 1,612
Joined: Nov 2009
Reputation: 114
Post: #23
(2013-03-28 05:58)phil65 Wrote:  ...
(you can start a movie with "RunScript(service.skin.widgets,movieid=$INFO[...])" then, assuming you have service.skin.widget added as a dependency)

Well, not works here.

Code:
08:06:01 T:3640   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.ValueError'>
Error Contents: invalid literal for int() with base 10: 'Y:\\Mediateca\\Filmes\\Ice Age'
Traceback (most recent call last):
File "C:\Users\Marcos\AppData\Roaming\XBMC\addons\service.skin.widgets\default.py", line 738, in <module>
Main()
File "C:\Users\Marcos\AppData\Roaming\XBMC\addons\service.skin.widgets\default.py", line 52, in __init__
xbmc.executeJSONRPC('{ "jsonrpc": "2.0", "method": "Player.Open", "params": { "item": { "movieid": %d }, "options":{ "resume": %s } }, "id": 1 }' % (int(self.MOVIEID), self.RESUME))
ValueError: invalid literal for int() with base 10: 'Y:\\Mediateca\\Filmes\\Ice Age'
-->End of Python script error report<--

------------------------------------------------------

Want to know more about the skin? Liked my work and want contribute?
Visit my website
XBMC Brazilian Community Forum
By making a donation, please do not post in the forum, send me an email or PM, thank you.
find quote
phil65 Offline
Team-Kodi Developer
Posts: 6,687
Joined: Mar 2009
Reputation: 147
Location: Cologne, Germany
Post: #24
complete log, please. no snippets.

Donate: https://kodi.tv/contribute/donate (foundation), 146Gr48FqHM7TPB9q33HHv6uWpgQqdz1yk (BTC personal)
Estuary: Kodis new default skin - ExtendedInfo Script - KodiDevKit
find quote
MarcosQui Offline
Skilled Skinner
Posts: 1,612
Joined: Nov 2009
Reputation: 114
Post: #25
http://pastebin.com/bxVTfiqb

------------------------------------------------------

Want to know more about the skin? Liked my work and want contribute?
Visit my website
XBMC Brazilian Community Forum
By making a donation, please do not post in the forum, send me an email or PM, thank you.
find quote
mikebzh44 Offline
Posting Freak
Posts: 2,151
Joined: Nov 2011
Reputation: 59
Location: Nantes - France
Post: #26
(2013-03-28 12:59)mikebzh44 Wrote:  Maybe a refresh / clean issue with properties.

If you browse a movieset composed of 3 movies (Batman with Christian BALE for example), the 3 correct discarts are displayed but if you go back and browse another movieset composed of 2 movies (Cars, animated with Flash Mc Queen for example), then discart #1 and #2 are from Cars movies but discart #3 is from Batman movieset.
Just add this line under line #419

Code:
self.window.clearProperty('Set.Movie.%d.Art(discart)' % i)

No need of cleaning for other properties (DBID, Title, Path, Year) ?

Sorry for my english, but, you know, I'm French so ...

Main HTPC : Core i3 2120T running OpenELEC with Aeon Nox 5 and my mod
Secondary HTPC : Freebox Mini 4K running Android TV with Aeon Nox 5 and my mod
(This post was last modified: 2013-03-28 15:14 by mikebzh44.)
find quote
fmronan Offline
Fan
Posts: 600
Joined: Dec 2010
Reputation: 4
Post: #27
Quote:No need of cleaning for other properties (DBID, Title, Path, Year) ?
yes for Title, because actualy that's not possible to use
IsEmpty(Window(home).Property(Set.Movie.3.Title))
find quote
phil65 Offline
Team-Kodi Developer
Posts: 6,687
Joined: Mar 2009
Reputation: 147
Location: Cologne, Germany
Post: #28
(2013-03-28 15:12)mikebzh44 Wrote:  
(2013-03-28 12:59)mikebzh44 Wrote:  Maybe a refresh / clean issue with properties.

If you browse a movieset composed of 3 movies (Batman with Christian BALE for example), the 3 correct discarts are displayed but if you go back and browse another movieset composed of 2 movies (Cars, animated with Flash Mc Queen for example), then discart #1 and #2 are from Cars movies but discart #3 is from Batman movieset.
Just add this line under line #419

Code:
self.window.clearProperty('Set.Movie.%d.Art(discart)' % i)

No need of cleaning for other properties (DBID, Title, Path, Year) ?

will come. you probably know that this is not the only project I´m workin on Wink

(2013-03-28 15:01)MarcosQui Wrote:  http://pastebin.com/bxVTfiqb

debug log, not the "normal" log.

Donate: https://kodi.tv/contribute/donate (foundation), 146Gr48FqHM7TPB9q33HHv6uWpgQqdz1yk (BTC personal)
Estuary: Kodis new default skin - ExtendedInfo Script - KodiDevKit
(This post was last modified: 2013-03-28 17:09 by phil65.)
find quote
mikebzh44 Offline
Posting Freak
Posts: 2,151
Joined: Nov 2011
Reputation: 59
Location: Nantes - France
Post: #29
Yes, I know that your are a VERY VERY buzy guy Wink

Sorry for my english, but, you know, I'm French so ...

Main HTPC : Core i3 2120T running OpenELEC with Aeon Nox 5 and my mod
Secondary HTPC : Freebox Mini 4K running Android TV with Aeon Nox 5 and my mod
find quote
mikebzh44 Offline
Posting Freak
Posts: 2,151
Joined: Nov 2011
Reputation: 59
Location: Nantes - France
Post: #30
Phil, I think it would be cool to calculated average width and height of a movie set so you can display a blue case for HD movieset or black case for SD movieset for some viewtype Big Grin

I have made a little mod of your script :

http://xbmclogs.com/show.php?id=7610

Look at # MikeBZH44 lines and beneath.

Work only for real movie with streamdetails. But what about offline media movies (http://wiki.xbmc.org/index.php?title=Media_stubs) ?

Sorry for my english, but, you know, I'm French so ...

Main HTPC : Core i3 2120T running OpenELEC with Aeon Nox 5 and my mod
Secondary HTPC : Freebox Mini 4K running Android TV with Aeon Nox 5 and my mod
find quote
Post Reply