• 1
  • 82
  • 83
  • 84(current)
  • 85
  • 86
  • 151
Release script.extendedinfo
(2015-07-06, 18:47)Razze Wrote:
(2015-07-06, 16:37)Lunatixz Wrote: Can someone post a working runscript for "similartvshowstrakt" or "similarmoviestrakt"? Thanks

I've tried every possible combination and never get a response from trakt
Starting to wonder if "https://api-v2launch.trakt.tv/show/%s/related?extended=full,images" ever returns a response...

Example:
Code:
07:31:49 T:432  NOTICE: version 3.0.0 started
07:31:49 T:432   DEBUG: script.extendedinfo: {
                                                "control": null,
                                                "dbid": "101",
                                                "default.py": "",
                                                "handle": null,
                                                "tvdb_id": "203861"
                                            }
07:31:49 T:432   DEBUG: script.extendedinfo: [
                                                "similartvshowstrakt"
                                            ]
07:31:49 T:432   DEBUG: script.extendedinfo: get_http: could not get data from https://api-v2launch.trakt.tv/show/139941/related?extended=full,images
07:31:49 T:12524   DEBUG: script.extendedinfo: Exception: Could not get new JSON data from https://api-v2launch.trakt.tv/show/139941/related?extended=full,images. Tryin to fallback to cache
07:31:49 T:12524   DEBUG: script.extendedinfo: None
07:31:49 T:12524   DEBUG: script.extendedinfo: create_light_tvshowlist: -0.00399994850159
07:31:49 T:12524   DEBUG: script.extendedinfo: compare time: 0.0
07:31:49 T:12524  NOTICE: finished

It's passing a tvdb id which is not possible. The endpoint needs a trakt id, trakt slug or a imdb id. Everything else will fail. In order to resolve an tvdb id, you will need to do an id lookup.http://docs.trakt.apiary.io/#reference/search/id-lookup/get-id-lookup-results not sure if this is implemented in extended info

ahhh thanks... So extendedinfo does not resolve tvdbid? only imdbid? does imdbid resolution apply to tvshows? or only movie ids?
Image Lunatixz - Kodi / Beta repository
Image PseudoTV - Forum | Website | Youtube | Help?
Reply
(2015-07-06, 18:55)Lunatixz Wrote:
(2015-07-06, 18:47)Razze Wrote:
(2015-07-06, 16:37)Lunatixz Wrote: Can someone post a working runscript for "similartvshowstrakt" or "similarmoviestrakt"? Thanks

I've tried every possible combination and never get a response from trakt
Starting to wonder if "https://api-v2launch.trakt.tv/show/%s/related?extended=full,images" ever returns a response...

Example:
Code:
07:31:49 T:432  NOTICE: version 3.0.0 started
07:31:49 T:432   DEBUG: script.extendedinfo: {
                                                "control": null,
                                                "dbid": "101",
                                                "default.py": "",
                                                "handle": null,
                                                "tvdb_id": "203861"
                                            }
07:31:49 T:432   DEBUG: script.extendedinfo: [
                                                "similartvshowstrakt"
                                            ]
07:31:49 T:432   DEBUG: script.extendedinfo: get_http: could not get data from https://api-v2launch.trakt.tv/show/139941/related?extended=full,images
07:31:49 T:12524   DEBUG: script.extendedinfo: Exception: Could not get new JSON data from https://api-v2launch.trakt.tv/show/139941/related?extended=full,images. Tryin to fallback to cache
07:31:49 T:12524   DEBUG: script.extendedinfo: None
07:31:49 T:12524   DEBUG: script.extendedinfo: create_light_tvshowlist: -0.00399994850159
07:31:49 T:12524   DEBUG: script.extendedinfo: compare time: 0.0
07:31:49 T:12524  NOTICE: finished

It's passing a tvdb id which is not possible. The endpoint needs a trakt id, trakt slug or a imdb id. Everything else will fail. In order to resolve an tvdb id, you will need to do an id lookup.http://docs.trakt.apiary.io/#reference/search/id-lookup/get-id-lookup-results not sure if this is implemented in extended info

ahhh thanks... So extendedinfo does not resolve tvdbid? only imdbid? does imdbid resolution apply to tvshows? or only movie ids?

Haven't checked the code, but from your debug log I would guess that it's not resolving.

It it actually quiet complicated, as you can't be sure which scraper the user is using and (please correct me if I'm wrong) the id field can possibly be the id of site X, we can't know.
There are some things, we can use to try to guess which id we have right now https://github.com/Razzeee/script.trakt/...es.py#L486
Then we can do a lookup, if we need to. Lookup can apply to both categories (shows/movies), as the user might use a non standard scraper...
Reply
(2015-07-06, 18:47)Razze Wrote: It's passing a tvdb id which is not possible. The endpoint needs a trakt id, trakt slug or a imdb id. Everything else will fail. In order to resolve an tvdb id, you will need to do an id lookup.http://docs.trakt.apiary.io/#reference/search/id-lookup/get-id-lookup-results not sure if this is implemented in extended info

nope, I only implemented the corresponding call from TheMovieDB for converting to tmdb ids. Didnt pay too much attention to trakt yet.
EDIT: The actual code is indeed wrong in this case. Perhaps it´s because the "old" Trakt API allowed passing a imdb id? Not sure, wouild have to investigate.
Donate: https://kodi.tv/contribute/donate (foundation), 146Gr48FqHM7TPB9q33HHv6uWpgQqdz1yk (BTC personal)
Estuary: Kodis new default skin - ExtendedInfo Script - KodiDevKit
Reply
(2015-07-06, 19:15)phil65 Wrote:
(2015-07-06, 18:47)Razze Wrote: It's passing a tvdb id which is not possible. The endpoint needs a trakt id, trakt slug or a imdb id. Everything else will fail. In order to resolve an tvdb id, you will need to do an id lookup.http://docs.trakt.apiary.io/#reference/search/id-lookup/get-id-lookup-results not sure if this is implemented in extended info

nope, I only implemented the corresponding call from TheMovieDB for converting to tmdb ids. Didnt pay too much attention to trakt yet.
EDIT: The actual code is indeed wrong in this case. Perhaps it´s because the "old" Trakt API allowed passing a imdb id? Not sure, wouild have to investigate.

IMDB? You ment to write tvdb? Otherwise you've lost me as it should work with an IMDB id.
Reply
I feel confused now, too Smile Will check that part when I find some free minutes. As said, I didnt look into trakt for quite some time.
Donate: https://kodi.tv/contribute/donate (foundation), 146Gr48FqHM7TPB9q33HHv6uWpgQqdz1yk (BTC personal)
Estuary: Kodis new default skin - ExtendedInfo Script - KodiDevKit
Reply
Search not working on latest changes to extendedinfo on Helix.
http://pastebin.com/AYVn0xbW


"b2ada51 some more t9 tweaks"
^^ Last commit where search works afaik
Arctic Fuse - Alpha now available. Support me on Ko-fi.
Reply
(2015-07-07, 06:58)jurialmunkey Wrote: Search not working on latest changes to extendedinfo on Helix.
http://pastebin.com/AYVn0xbW


"b2ada51 some more t9 tweaks"
^^ Last commit where search works afaik

Which search did you trigger exactly? The search in MovieDB browser?
EDIT: also, try latest commit, please.
Donate: https://kodi.tv/contribute/donate (foundation), 146Gr48FqHM7TPB9q33HHv6uWpgQqdz1yk (BTC personal)
Estuary: Kodis new default skin - ExtendedInfo Script - KodiDevKit
Reply
Phil think this row is missing for clearart in local_db.ry ,with this changes I can show Clearart in dialogs.

(row No.158in local_db.ry)
Code:
'Clearart': movie["art"].get('clearart', ""),

(row No.201in local_db.ry)
Code:
'Clearart': tvshow['art'].get("clearart", ""),

for pvr how to create code ?!??
Code:
def handle_epg_db(dbid):
    stream_info = media_streamdetails(epg['file'].encode('utf-8').lower(), epg['streamdetails'])
    Epg10_db = {'Icon': epg["art"].get('icon', ""),
                'Poster': epg["art"].get('iconpath', ""),
                'PlotOutline': epg['art'].get("plotoutline", ""),
                'Title': epg.get('label', ""),
                'Plot': epg.get('plot', ""),
                'Director': epg.get('director', ""),
                'Year': str(epg.get('year', "")),
                'Writer': str(epg.get('writer', "")),
                'Cast': str(epg.get('cast', "")),
                'OriginalTitle': epg.get('originaltitle', ""),
                'Start': epg.get('starttime', ""),
                'End': epg.get('endtime', ""),
                'EpisodeName': epg.get('episodename', ""),
                'imdb_id': epg.get('imdbnumber', "")}
XBoxMediaCenter (Kodi Matrix ) 19.3 , AndroidBox -Matrix Skin AeonMQ6
Reply
(2015-07-07, 18:34)Angelinas Wrote: for pvr how to create code ?!??
Code:
def handle_epg_db(dbid):
    stream_info = media_streamdetails(epg['file'].encode('utf-8').lower(), epg['streamdetails'])
    Epg10_db = {'Icon': epg["art"].get('icon', ""),
                'Poster': epg["art"].get('iconpath', ""),
                'PlotOutline': epg['art'].get("plotoutline", ""),
                'Title': epg.get('label', ""),
                'Plot': epg.get('plot', ""),
                'Director': epg.get('director', ""),
                'Year': str(epg.get('year', "")),
                'Writer': str(epg.get('writer', "")),
                'Cast': str(epg.get('cast', "")),
                'OriginalTitle': epg.get('originaltitle', ""),
                'Start': epg.get('starttime', ""),
                'End': epg.get('endtime', ""),
                'EpisodeName': epg.get('episodename', ""),
                'imdb_id': epg.get('imdbnumber', "")}

Not sure if I will deal with PVR separately. Is there some way to recognize if an EPG item is a movie or a tvshow?
Donate: https://kodi.tv/contribute/donate (foundation), 146Gr48FqHM7TPB9q33HHv6uWpgQqdz1yk (BTC personal)
Estuary: Kodis new default skin - ExtendedInfo Script - KodiDevKit
Reply
Yes if epg id have episode number,or episodename,but I didnt ask for that.(and doesent metter at all)
I try to use properties from PVR epg10.db to include in your dialog info.

Your script will take all info with
<onclick>RunScript(script.extendedinfo,info=extendedinfo,name=$INFO[ListItem.Title])</onclick>
or
<onclick>RunScript(script.extendedinfo,info=extendedinfo,name=$INFO[ListItem.IMDBNumber])</onclick>
Just need to populate epg tags who are other genre(news,documentary,Sport,.....)

You create local_db.ry to take info from movies.db and include in Your dialog
$INFO[Window.Property(movie.discart)]
like this create new property in your script taken from epg10.db
$INFO[Window.Property(epg.plot)]......

And rest is skining )
XBoxMediaCenter (Kodi Matrix ) 19.3 , AndroidBox -Matrix Skin AeonMQ6
Reply
I would have to write a new InfoDialog class for that. Perhaps somewhen in the future. I first want to get out 3.0 in time for Isengard now.
Donate: https://kodi.tv/contribute/donate (foundation), 146Gr48FqHM7TPB9q33HHv6uWpgQqdz1yk (BTC personal)
Estuary: Kodis new default skin - ExtendedInfo Script - KodiDevKit
Reply
(2015-07-07, 13:42)phil65 Wrote:
(2015-07-07, 06:58)jurialmunkey Wrote: Search not working on latest changes to extendedinfo on Helix.
http://pastebin.com/AYVn0xbW

"b2ada51 some more t9 tweaks"
^^ Last commit where search works afaik

Which search did you trigger exactly? The search in MovieDB browser?
EDIT: also, try latest commit, please.

Yeah search in both MovieDB browser and Youtube browser.
Appears to be working fine with latest commit.
Arctic Fuse - Alpha now available. Support me on Ko-fi.
Reply
(2015-07-09, 12:50)jurialmunkey Wrote:
(2015-07-07, 13:42)phil65 Wrote:
(2015-07-07, 06:58)jurialmunkey Wrote: Search not working on latest changes to extendedinfo on Helix.
http://pastebin.com/AYVn0xbW

"b2ada51 some more t9 tweaks"
^^ Last commit where search works afaik

Which search did you trigger exactly? The search in MovieDB browser?
EDIT: also, try latest commit, please.

Yeah search in both MovieDB browser and Youtube browser.
Appears to be working fine with latest commit.

Ok, great. I am done with 3.0 then. Any last bug reports need to get reported today.
Final changelog (very incomplete):
Quote:- API CHANGE: "imdbid" param for script call is now "imdb_id"
- new add-on extension point: Video plugin
- added 24 movie / TV show listings from different content providers to plugin
- added T9 Live Search for TMDB browser (also works via remote)
- added Google AutoCompletions for TMDB browser search
- added script call for Google AutoCompletions
- added script calls for TMDB starred/rated movies and TV shows
- added genre label for tvshows
- added context menu entry for posters / backdrops (allows using them as local artwork)
- added local-check for Trakt and RT movie lists
- added button id 10 to play trailer for movie info dialog
- added genre, country and plot InfoLabels for TMDB movies
- added local check for tvshows
- added browsing tvshow credits (via selectdialog)
- added infodialogs.active property for home
- added certification for tvshows
- added date label to episodes
- added ability to download youtube / trailer videos via context menu
- added option to override onback behaviour by skinners
- added additional second list layout for TMDB Browser
- added option to force native dialog layouts
- added ability to remove single filters in browser dialog
- fixed onclick for Trakt calendar items
- fixed limit param for some script calls
- fixed biography dialog for actors
- fixed RT json parsing in case premiered is not available
- fixed MovieDB TV show favourites processing
- fixed similarlocal call
- fixed maps.browser call
- fixed onclick for Trakt calendar items
- fixed character InfoLabel for tvshow roles
- filter out duplicates for crew roles (and merge job strings)
- put cache files into subdirectories
- improved dialog open/close behaviour
- higher image resolution for episode stills
- reworked settings
- open tvshow in library when available (depends on skin setting)
- merge duplicates for some actor / crew lists
- some visual tweaks for infodialogs
- localization
- Code cleanup
Donate: https://kodi.tv/contribute/donate (foundation), 146Gr48FqHM7TPB9q33HHv6uWpgQqdz1yk (BTC personal)
Estuary: Kodis new default skin - ExtendedInfo Script - KodiDevKit
Reply
Can someone please help me figure out how to get results from extendedinfo to another script?
I'm just trying to export a list of similar movies, Is this even possible or only can be use inside the skin?

I've tried doing this:
x = xbmc.executebuiltin("XBMC.Runscript(script.extendedinfo,info=similarmovies,dbid=376)")
print x

but it's just return 'None'.
Reply
That's some changelog Phil and thanks for all the work you do.
SKIN: Aeon Madnox
RIP Schimi2k, we miss you.
When I grow up I want to be a skilled skinner
Thank me by ⬇ adding to my + reputation
Reply
  • 1
  • 82
  • 83
  • 84(current)
  • 85
  • 86
  • 151

Logout Mark Read Team Forum Stats Members Help
script.extendedinfo29