Kodi Community Forum

Full Version: script.extendedinfo
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
(2014-12-07, 16:14)Hitcher Wrote: [ -> ]
(2014-12-05, 01:48)phil65 Wrote: [ -> ]
(2014-12-04, 23:16)Hitcher Wrote: [ -> ]How are you doing this without multiple actor API hits then?

Sorry for all the questions I'm just trying to get an idea of how it works before I commit to coding. Wink

MovieDB API returns actor name, actor id, actor role etc as separate labels. xbmc / kodi merges those when shown inside dialogvideoinfo. I think I didnt´ turn off my script debug logging yet, so you probably can see the whole JSON answer in xbmc debug log.

And even withoug the movieDB API, it´s not too hard to split labels in python. Wink

EDIT: bit more explicit: MovieDB API returns actor name, actor id, actor role etc as separate labels for every actor on any movie info call, but not the biography and also not the filmography. those need separate API calls.
and just for info: Both movie info dialog and actor info dialog basically only need one JSON call to get all the info (because of the great MovieDB API, it´s by far the best out there.)
Movie Info Dialog only does a second one if the movie is part of a set.
Is there a way to run this in the background?

I'm trying to use it so I can just set properties for actors and roles from the list (id=50) for use in dialogvideoinfo. Unless it's possible using python to separate the labels provided in the dialogvideoinfo cast list into actor and role which would also mean it could be used for tv shows as well?

Thanks.

Not sure what you mean exactly? What do you want to run in the background?
I do not deal with anything in DialogvideoInfo.xml at all, i completely pulll all info from TheMovieDB.
Nevermind, though of an easier way but it's not working.

Is this the correct way to load directly in dialogvideoinfo for actor names and roles?

Code:
<content>plugin://script.extendedinfo?info=extendedinfo&amp;&amp;dbid=$INFO[ListItem.DBID]</content>

EDIT: contained a typo before.
(2014-12-07, 21:11)Hitcher Wrote: [ -> ]Nevermind, though of an easier way but it's not working.

Is this the correct way to load directly in dialogvideoinfo for actor names and roles?

Code:
<content>plugin://script.extendedinfo?info=extendedinfo&amp;&amp;dbid=$INFO[ListItem.DBID]</content>

EDIT: contained a typo before.

no, that script dialog can only act as a replacement for DialogVideonInfo.xml with a pretty dirty hack,
you have to put
Code:
<onload condition="Container.Content(movies)">RunScript(script.extendedinfo,info=extendedinfo,dbid=$INFO[ListItem.DBID])</onload>
    <onload condition="Container.Content(movies)">Dialog.Close(movieinformation)</onload>

into the header of dialogvideoinfo.xml.

info=extendedinfo cannot be used with <content>.

This is definitely a no-go for official-repo skins i guess.
OK, and I've just realised this will only work for movies anyway so back to the drawing board.

Thanks.
(2014-12-07, 21:46)Hitcher Wrote: [ -> ]OK, and I've just realised this will only work for movies anyway so back to the drawing board.

Thanks.

TV Shows is almost done already, too Wink
Cool, I'll keep working on my idea then. Wink
(2014-12-06, 16:45)phil65 Wrote: [ -> ]
(2014-12-06, 13:27)woodside Wrote: [ -> ]Had you had a chance to look at not being able to play any youtube videos from any of the widgets or from any PlayMedia commands?

PHP Code:
PlayMedia($INFO[Container(6015).ListItem.Property(Path)],1

PHP Code:
03:11:01 T:3892  NOTICECreating InputStream
03
:11:01 T:3892   ERRORCDVDPlayer::OpenInputStream error opening []
03:11:01 T:3892  NOTICECDVDPlayer::OnExit()
03:11:01 T:7692   ERRORPlayMedia could not play mediaplugin://script.extendedinfo/?action=youtubevideo&id=xvKF3WQYADk
03:11:01 T:7692  NOTICECDVDPlayer::CloseFile() 

Also still have the problem with AudioDB changing their API and removing strSubGenre. see my previous post thanks. Wink

AudioDB should be fixed now. Will have a look at the onclicks, I only checked youtube vids for the infodialogs.

Friendly bump... Wink
(2014-12-10, 04:24)woodside Wrote: [ -> ]
(2014-12-06, 16:45)phil65 Wrote: [ -> ]
(2014-12-06, 13:27)woodside Wrote: [ -> ]Had you had a chance to look at not being able to play any youtube videos from any of the widgets or from any PlayMedia commands?

PHP Code:
PlayMedia($INFO[Container(6015).ListItem.Property(Path)],1

PHP Code:
03:11:01 T:3892  NOTICECreating InputStream
03
:11:01 T:3892   ERRORCDVDPlayer::OpenInputStream error opening []
03:11:01 T:3892  NOTICECDVDPlayer::OnExit()
03:11:01 T:7692   ERRORPlayMedia could not play mediaplugin://script.extendedinfo/?action=youtubevideo&id=xvKF3WQYADk
03:11:01 T:7692  NOTICECDVDPlayer::CloseFile() 

Also still have the problem with AudioDB changing their API and removing strSubGenre. see my previous post thanks. Wink

AudioDB should be fixed now. Will have a look at the onclicks, I only checked youtube vids for the infodialogs.

Friendly bump... Wink

oops, sorry, missed that one. pushed a fix.
(2014-12-10, 05:25)phil65 Wrote: [ -> ]
(2014-12-10, 04:24)woodside Wrote: [ -> ]
(2014-12-06, 16:45)phil65 Wrote: [ -> ]AudioDB should be fixed now. Will have a look at the onclicks, I only checked youtube vids for the infodialogs.

Friendly bump... Wink

oops, sorry, missed that one. pushed a fix.

Tried to play a Youtube video from the "Youtube Top Music Videos" widget and still getting this error.

PHP Code:
21:50:06 T:4612  NOTICEDVDPlayerOpening:
21:50:06 T:4612 WARNINGCDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
21
:50:06 T:8188  NOTICEThread DVDPlayer startauto deletefalse
21
:50:06 T:8188  NOTICECreating InputStream
21
:50:06 T:8188   ERRORCDVDPlayer::OpenInputStream error opening []
21:50:06 T:8188  NOTICECDVDPlayer::OnExit()
21:50:06 T:4612   ERRORPlayMedia could not play mediaplugin://script.extendedinfo/?action=youtubevideo&&id=e-ORhEE9VVg
21:50:06 T:4612  NOTICECDVDPlayer::CloseFile()
21:50:06 T:4612  NOTICEDVDPlayerwaiting for threads to exit
21:50:06 T:4612  NOTICEDVDPlayerfinished waiting
21
:50:06 T:4612  NOTICECDVDPlayer::CloseFile()
21:50:06 T:4612  NOTICEDVDPlayerwaiting for threads to exit
21:50:06 T:4612  NOTICEDVDPlayerfinished waiting 
RunScript(script.extendedinfo,action=youtubevideo,id=$INFO[ListItem.Property(youtube_id)])
(2014-12-10, 18:41)phil65 Wrote: [ -> ]RunScript(script.extendedinfo,action=youtubevideo,id=$INFO[ListItem.Property(youtube_id)])

It's an onclick from your own widget. where would I find the onclick to change it?

Image
(2014-12-11, 12:42)woodside Wrote: [ -> ]
(2014-12-10, 18:41)phil65 Wrote: [ -> ]RunScript(script.extendedinfo,action=youtubevideo,id=$INFO[ListItem.Property(youtube_id)])

It's an onclick from your own widget. where would I find the onclick to change it?

Image

oh, thaught you were using properties method. Plugin:// should be fixed now, too.
Is it possible to get the date when the last episode of a tvshow was aired using this script?
(2014-12-11, 17:09)phil65 Wrote: [ -> ]
(2014-12-11, 12:42)woodside Wrote: [ -> ]
(2014-12-10, 18:41)phil65 Wrote: [ -> ]RunScript(script.extendedinfo,action=youtubevideo,id=$INFO[ListItem.Property(youtube_id)])

It's an onclick from your own widget. where would I find the onclick to change it?

oh, thaught you were using properties method. Plugin:// should be fixed now, too.
I got the videos to play but can't seem to get them to play in a smaller window with my addon.
Is it possible using your method of playing youtubes without the youtube addon to somehow play the video in a preview widow?

I'm running youtubes in a smaller window from an addon I'm developing. To play videos in the smaller window instead of fullscreen..
I'm using the commands below with windowed=true. thanks.

PHP Code:
PlayPath xbmc.getInfoLabel('$INFO[Container(6017).ListItem.Property(Path)]'

PHP Code:
xbmc.Player().play(PlayPath,listitem None,windowed True,startpos = -1
you have to add the parameters to def PlayTrailer(youtube_id) in Utils.py (l. 57)