• 1
  • 69
  • 70
  • 71(current)
  • 72
  • 73
  • 151
Release script.extendedinfo
(2015-05-24, 23:19)Lunatixz Wrote:
(2015-05-24, 22:38)phil65 Wrote: hmm would be nice if you could try with repo version.
If error is still there then it´s also possible that the API has some temporary issues.

Same with repo:

Code:
14:18:31 T:10728  NOTICE: version 2.0.10 started
14:18:31 T:10728   DEBUG: script.extendedinfo: {
                                                "control": null,
                                                "dbid": "74",
                                                "default.py": "",
                                                "handle": null,
                                                "id": "212961"
                                            }
14:18:31 T:10728   DEBUG: script.extendedinfo: [
                                                "similartvshowstrakt"
                                            ]
14:18:31 T:15504   DEBUG: ------ Window Deinit (DialogKaiToast.xml) ------
14:18:31 T:10728   DEBUG: script.extendedinfo: GetStringFromURL: could not get data from https://api-v2launch.trakt.tv/show/212961/related?extended=full,images
14:18:32 T:17080   ERROR: CCurlFile::FillBuffer - Failed: HTTP returned error 404
14:18:32 T:17080  NOTICE: CCurlFile::FillBuffer - Reconnect, (re)try 1

maybe the trakt api is down... thanks

Which show should that be? Its the tvdb id of hell on wheels, but the summary api only accepts trakt id, trakt slug or imdb id
Reply
(2015-05-25, 07:29)Lunatixz Wrote: Can you call a custom extendedinfo skin via run script? I would like to make a custom skin which would be launched by runscript through my plugin...

you could try to import extendedinfo and instanciate the Window classes with different xml files. Not sure if that works, never looked into it.
Donate: https://kodi.tv/contribute/donate (foundation), 146Gr48FqHM7TPB9q33HHv6uWpgQqdz1yk (BTC personal)
Estuary: Kodis new default skin - ExtendedInfo Script - KodiDevKit
Reply
(2015-05-25, 10:09)phil65 Wrote:
(2015-05-25, 07:29)Lunatixz Wrote: Can you call a custom extendedinfo skin via run script? I would like to make a custom skin which would be launched by runscript through my plugin...

you could try to import extendedinfo and instanciate the Window classes with different xml files. Not sure if that works, never looked into it.

I gave it a try, it loads the xml independently from extended info... so nothing is filled, just displayed control labels and nothing more... Even after calling a run-script to fill info...

Any chance you can add a *arg to use a given xml via runscript?
Image Lunatixz - Kodi / Beta repository
Image PseudoTV - Forum | Website | Youtube | Help?
Reply
(2015-05-25, 07:29)Lunatixz Wrote: Any chance you can add a *arg to use a given xml via runscript?
I think the dialog should look as decided by skin.

Some new functionality comin up for next version:
This script can also get accessed from video plugins now:
Image
Also added 2 new calls:
info=ratedmovies (return movies you rated on TheMovieDB)
info=starredmovies (return movies you starrred on TheMovieDB)
Donate: https://kodi.tv/contribute/donate (foundation), 146Gr48FqHM7TPB9q33HHv6uWpgQqdz1yk (BTC personal)
Estuary: Kodis new default skin - ExtendedInfo Script - KodiDevKit
Reply
(2015-05-27, 20:01)phil65 Wrote:
(2015-05-25, 07:29)Lunatixz Wrote: Any chance you can add a *arg to use a given xml via runscript?
I think the dialog should look as decided by skin.

Some new functionality comin up for next version:
This script can also get accessed from video plugins now:
Image
Also added 2 new calls:
info=ratedmovies (return movies you rated on TheMovieDB)
info=starredmovies (return movies you starrred on TheMovieDB)
What about runscript calls that just fill properties without launching your windows? That way I can domodel a custom xml using your info?

Looking forward to your updates, thanks again.

BTW I see your op says similar tvshows and movies are finished... are those "Local" content or trakt? can you tell me the correct calls for local info, don't see it mentioned at github
Image Lunatixz - Kodi / Beta repository
Image PseudoTV - Forum | Website | Youtube | Help?
Reply
Latest master, api key error:

{"status_code":7,"status_message":"Invalid API key: You must be granted a valid key."}


PHP Code:
xbmc.executebuiltin("XBMC.RunScript(script.extendedinfo,info=%s,dbid=%s,%s=%s,%s=%s)" % (infogetProperty("PVR.DBID"), titlegetProperty("PVR.Title"), dbtypegetProperty("PVR.ID"))) 

Code:
12:31:30 T:19476   DEBUG: script.extendedinfo: {
                                                "control": null,
                                                "dbid": "0",
                                                "default.py": "",
                                                "handle": null,
                                                "imdbid": "tt0107290",
                                                "name": "Jurassic Park (1993)"
                                            }
12:31:30 T:19476   DEBUG: script.extendedinfo: [
                                                "extendedinfo"
DEBUG: script.extendedinfo: loaded file for http://api.themoviedb.org/3/search/movie?query=Jurassic+Park+%281993%29+&language=en&include_adult=false&api_key=34142515d9d23817496eeb4ff1d223d0. time: 0.007000
                                            ]
Image Lunatixz - Kodi / Beta repository
Image PseudoTV - Forum | Website | Youtube | Help?
Reply
(2015-05-27, 21:37)Lunatixz Wrote: Latest master, api key error:

{"status_code":7,"status_message":"Invalid API key: You must be granted a valid key."}


PHP Code:
xbmc.executebuiltin("XBMC.RunScript(script.extendedinfo,info=%s,dbid=%s,%s=%s,%s=%s)" % (infogetProperty("PVR.DBID"), titlegetProperty("PVR.Title"), dbtypegetProperty("PVR.ID"))) 

Code:
12:31:30 T:19476   DEBUG: script.extendedinfo: {
                                                "control": null,
                                                "dbid": "0",
                                                "default.py": "",
                                                "handle": null,
                                                "imdbid": "tt0107290",
                                                "name": "Jurassic Park (1993)"
                                            }
12:31:30 T:19476   DEBUG: script.extendedinfo: [
                                                "extendedinfo"
DEBUG: script.extendedinfo: loaded file for http://api.themoviedb.org/3/search/movie?query=Jurassic+Park+%281993%29+&language=en&include_adult=false&api_key=34142515d9d23817496eeb4ff1d223d0. time: 0.007000
                                            ]
doesnt really have to be related , but still worth a try:
(2015-05-18, 18:29)phil65 Wrote: API CHANGE:

starting with next version (2.1.0) you will have to use imdb_id instead of imdbid for script call parameters.
EDIT: I should probably include backward compatibility for one or two versions.
Donate: https://kodi.tv/contribute/donate (foundation), 146Gr48FqHM7TPB9q33HHv6uWpgQqdz1yk (BTC personal)
Estuary: Kodis new default skin - ExtendedInfo Script - KodiDevKit
Reply
(2015-05-27, 22:09)phil65 Wrote:
(2015-05-27, 21:37)Lunatixz Wrote: Latest master, api key error:

{"status_code":7,"status_message":"Invalid API key: You must be granted a valid key."}


PHP Code:
xbmc.executebuiltin("XBMC.RunScript(script.extendedinfo,info=%s,dbid=%s,%s=%s,%s=%s)" % (infogetProperty("PVR.DBID"), titlegetProperty("PVR.Title"), dbtypegetProperty("PVR.ID"))) 

Code:
12:31:30 T:19476   DEBUG: script.extendedinfo: {
                                                "control": null,
                                                "dbid": "0",
                                                "default.py": "",
                                                "handle": null,
                                                "imdbid": "tt0107290",
                                                "name": "Jurassic Park (1993)"
                                            }
12:31:30 T:19476   DEBUG: script.extendedinfo: [
                                                "extendedinfo"
DEBUG: script.extendedinfo: loaded file for http://api.themoviedb.org/3/search/movie?query=Jurassic+Park+%281993%29+&language=en&include_adult=false&api_key=34142515d9d23817496eeb4ff1d223d0. time: 0.007000
                                            ]
doesnt really have to be related , but still worth a try:
(2015-05-18, 18:29)phil65 Wrote: API CHANGE:

starting with next version (2.1.0) you will have to use imdb_id instead of imdbid for script call parameters.
EDIT: I should probably include backward compatibility for one or two versions.

What the heck... that moviedb link was returning bad api key, now its working... must be something on their end.

What do u think of a runscript that just fills properties? is that a possibility?
Image Lunatixz - Kodi / Beta repository
Image PseudoTV - Forum | Website | Youtube | Help?
Reply
(2015-05-28, 01:03)Lunatixz Wrote:
(2015-05-27, 22:09)phil65 Wrote:
(2015-05-27, 21:37)Lunatixz Wrote: Latest master, api key error:

{"status_code":7,"status_message":"Invalid API key: You must be granted a valid key."}


PHP Code:
xbmc.executebuiltin("XBMC.RunScript(script.extendedinfo,info=%s,dbid=%s,%s=%s,%s=%s)" % (infogetProperty("PVR.DBID"), titlegetProperty("PVR.Title"), dbtypegetProperty("PVR.ID"))) 

Code:
12:31:30 T:19476   DEBUG: script.extendedinfo: {
                                                "control": null,
                                                "dbid": "0",
                                                "default.py": "",
                                                "handle": null,
                                                "imdbid": "tt0107290",
                                                "name": "Jurassic Park (1993)"
                                            }
12:31:30 T:19476   DEBUG: script.extendedinfo: [
                                                "extendedinfo"
DEBUG: script.extendedinfo: loaded file for http://api.themoviedb.org/3/search/movie?query=Jurassic+Park+%281993%29+&language=en&include_adult=false&api_key=34142515d9d23817496eeb4ff1d223d0. time: 0.007000
                                            ]
doesnt really have to be related , but still worth a try:
(2015-05-18, 18:29)phil65 Wrote: API CHANGE:

starting with next version (2.1.0) you will have to use imdb_id instead of imdbid for script call parameters.
EDIT: I should probably include backward compatibility for one or two versions.

What the heck... that moviedb link was returning bad api key, now its working... must be something on their end.

What do u think of a runscript that just fills properties? is that a possibility?
no, also wouldnt work right because a main part of the dialogs are list containers.
Donate: https://kodi.tv/contribute/donate (foundation), 146Gr48FqHM7TPB9q33HHv6uWpgQqdz1yk (BTC personal)
Estuary: Kodis new default skin - ExtendedInfo Script - KodiDevKit
Reply
(2015-05-25, 10:09)phil65 Wrote:
(2015-05-25, 07:29)Lunatixz Wrote: Can you call a custom extendedinfo skin via run script? I would like to make a custom skin which would be launched by runscript through my plugin...

you could try to import extendedinfo and instanciate the Window classes with different xml files. Not sure if that works, never looked into it.

I tinkered some more with your idea to import exendedinfo... I figured it out... and so far its working as expected. I'm able to use a custom skin that is found in my plugin folder. Here is a snippet for anyone who is interested.


Code:
ADDON_NAME = REAL_SETTINGS.getAddonInfo('name')
ADDON_PATH = (REAL_SETTINGS.getAddonInfo('path').decode('utf-8'))

__addon__        = xbmcaddon.Addon('script.extendedinfo')
__cwd__          = __addon__.getAddonInfo('path').decode("utf-8")
__resource__   = xbmc.translatePath( os.path.join( __cwd__, 'resources', 'lib' ).encode("utf-8") ).decode("utf-8")
sys.path.append(__resource__)
import DialogVideoList
dialog = DialogVideoList.DialogVideoList(u'script-ExtendedInfo Script-VideoList.xml', ADDON_PATH)
dialog.doModal()
Image Lunatixz - Kodi / Beta repository
Image PseudoTV - Forum | Website | Youtube | Help?
Reply
Phil, is the role label available for the actor list (ID=1000), and if not could you possibly add it please?

Thanks.
Reply
(2015-05-31, 17:24)Hitcher Wrote: Phil, is the role label available for the actor list (ID=1000), and if not could you possibly add it please?

Thanks.

try ListItem.Property(character)
Donate: https://kodi.tv/contribute/donate (foundation), 146Gr48FqHM7TPB9q33HHv6uWpgQqdz1yk (BTC personal)
Estuary: Kodis new default skin - ExtendedInfo Script - KodiDevKit
Reply
Thanks Phil, tried different combinations before but not the right one.
Reply
Small request to place picture and text cache files into a subdirectory, instead of the root addon_data folder?
e.x:
/images/
/info/

Thanks
Image Lunatixz - Kodi / Beta repository
Image PseudoTV - Forum | Website | Youtube | Help?
Reply
Phil, I've started integrating your changes such as the custom dialogvideo window and it's pretty amazing how it all fits together. I wasn't sure if Tvtunes was supported so asked on this thread: http://forum.kodi.tv/showthread.php?tid=214287&page=9 where the author said it was up to you if you could/would support it.

Cheers
Reply
  • 1
  • 69
  • 70
  • 71(current)
  • 72
  • 73
  • 151

Logout Mark Read Team Forum Stats Members Help
script.extendedinfo29