these are wrong. does anyone know what should be passed if nothing is found
if infolabels['rating'] is None:
infolabels['rating']=float(0) <<< wrong
if infolabels['duration'] is None:
infolabels['duration']=int(0) wrong
k_zeon
Senior Member Joined: Aug 2011 Reputation: 0 |
2011-10-22 13:39
Post: #101
|
| find quote |
slyi
Junior Member Posts: 39 Joined: Sep 2011 Reputation: 0 |
2011-10-22 15:02
Post: #102
For the add directory i use
PHP Code: def add_directory(self, queries, title, infoLabels={}, img='', fanart='', |
| find quote |
Eldorado
Posting Freak Joined: May 2009 Reputation: 11 |
2011-10-22 16:30
Post: #103
slyi Wrote:Yes I be happy to help, do you have a github for icefilms using t0mmo lib yet or is too early, I updated the two files above for some updates which seen to fix most remaining issues apart from a dup "Seven days" issue on "s". Check the icefilms dev thread in this forum, one of the last posts I gave a link to a forked version where I merged the master branch with stable, master is the unfinished branch with many new features Not sure about merging with t0mm0's lib, there's a lot of cleanup that would need to be done in the icefilms code to get to that point |
| find quote |
Eldorado
Posting Freak Joined: May 2009 Reputation: 11 |
2011-10-22 16:31
Post: #104
k_zeon Wrote:hey Eldorado Thanks for the log, first one I've seen where that has happened.. I'll have to do a little debugging to see how that None is falling thru, it should be getting picked up.. |
| find quote |
Eldorado
Posting Freak Joined: May 2009 Reputation: 11 |
2011-10-22 16:32
Post: #105
k_zeon Wrote:these are wrong. does anyone know what should be passed if nothing is found What happens when you pass in those values? Do you see 0's in xbmc? I would hope it would just not display them.. sort of like a i' value > 0' then display type of check |
| find quote |
k_zeon
Senior Member Joined: Aug 2011 Reputation: 0 |
2011-10-22 16:38
Post: #106
Eldorado Wrote:What happens when you pass in those values? Do you see 0's in xbmc? Hey Eldorado No i keep getting script errors after loading so many menu Dirs, i think on Rating or Duration. when i take out the code for them and dont add them to dir it works. Nothing is getting displayed when using infolabels['rating']=float(0) etc but this must be where it errors out Here is my def to load Directories. Code: def add_Metadirectory(self, queries, infolabels,title='', img='', fanart='', resolved=False, total_items=0, item_type='video'):and the calling line in my addon is: addon.add_Metadirectory({'mode' : 'GetMovieSource', 'url' : url }, meta ,total_items=len(match),title=CleanHTML(name) + ' (' + sYear + ')' , img=meta['cover_url']) Just Pushed a New Git for you to test. if i do this listitem.setInfo('video', {'Title': title, 'Genre': infolabels['genre'], 'Plot': infolabels['plot'],'Cast': infolabels['cast'],'Trailer': infolabels['trailer_url']}) then it works and the menu's get load and i can see the thumbnail, i can get plot etc.
(This post was last modified: 2011-10-22 18:30 by k_zeon.)
|
| find quote |
k_zeon
Senior Member Joined: Aug 2011 Reputation: 0 |
2011-10-22 21:36
Post: #107
Hey Eldorado. any luck with why some of the infolabels are failing.
Also how to play the Youtube Trailers as they all do not work at present The animated circle shows then just disappears.
(This post was last modified: 2011-10-22 22:08 by k_zeon.)
|
| find quote |
slyi
Junior Member Posts: 39 Joined: Sep 2011 Reputation: 0 |
2011-10-23 13:20
Post: #108
k_zeon Wrote:Also how to play the Youtube Trailers as they all do not work at present I find this works ok PHP Code: infoLabels['trailer'] = urlresolver.HostedMediaFile(url=meta['trailer_url']).resolve() |
| find quote |
slyi
Junior Member Posts: 39 Joined: Sep 2011 Reputation: 0 |
2011-10-23 13:47
Post: #109
Eldorado Wrote:Check the icefilms dev thread in this forum, one of the last posts I gave a link to a forked version where I merged the master branch with stable, master is the unfinished branch with many new features Ok i can do that, it will take me a few days to complete a patch but have you considered creating a urlresolver branch aswell for icesfilms most the major functionality are working now eg: ice resolver sample on http://dl.dropbox.com/u/6589941/icefilms...lms.py.txt, it could be a future point release 1.1.0. Anarchintosh's original code works well but it does need refactoring around the new script modules. BTW: Im seeing PHP Code: Error attempting to insert into cache table: columns imdb_id, tvdb_id, episode_id, title, season, episode are not unique |
| find quote |
k_zeon
Senior Member Joined: Aug 2011 Reputation: 0 |
2011-10-23 15:24
Post: #110
slyi Wrote:I find this works ok Hi Slyi I use Eldorado's Metahandler module to get the meta data. in this module is meta['trailer_url'] = md.get('trailer', '') if i try: infoLabels['trailer'] = urlresolver.HostedMediaFile(url=md.get('trailer', '')).resolve() << this should work but does not tried adding this to metahandler. did not work. but got circle animation. I tried this in my addon before adding to the Dir. Did not work. script error tried adding to t0mm0's module , but script error. whare should i try to put it. tks
(This post was last modified: 2011-10-23 15:29 by k_zeon.)
|
| find quote |

Search
Help