Posts: 363
Joined: Jun 2004
Reputation:
0
message deleted.
ohh.i read your side post now.--never mind
Posts: 5,008
Joined: Sep 2003
Reputation:
30
pike
Team Kodi Admin
Posts: 5,008
oh c'mon... don't give up when you're so close :p
Posts: 149
Joined: Dec 2003
Reputation:
0
Mouton
Senior Member
Posts: 149
i might try again later when the xbmc python implementation has been changed; it freeze the whole xbox without giving reasons, the debug window (console) doesn't show the complete stdout, xmbc.player().play() behaves hereticaly, etc.
the python script i have works without problem on my mac, but it doesn't work on xbmc.
anyone who want to use my xbmcxmlqt.py 'library' is free to do so. i personally won't work anymore on this. wasted enough time as it is.
Posts: 169
Joined: Apr 2004
Reputation:
0
hi,
i will cross fingers you will have the chance to complete your script... :kickass:
Posts: 928
Joined: Feb 2004
Reputation:
0
Asteron
"Skilled" Python Coder
Posts: 928
the "xbmc" module has two functions
xbmc.log(string) --outputs to xbmc.log at log level 6
xbmc.output(string) --outputs to xbmc.log at log level 1
the log level is set in xboxmediacenter.xml...
-ast
Posts: 149
Joined: Dec 2003
Reputation:
0
Mouton
Senior Member
Posts: 149
i'm already using output for all my print()... but it doesn't help that much when xbmc just hangs.... appart from inserting an output() between each line of code, i can't really know what line is the problem... and even then, it doesn't tell me what the problem is...
Posts: 5,008
Joined: Sep 2003
Reputation:
30
pike
Team Kodi Admin
Posts: 5,008
no other python developer willing to lend a hand or two to mouton :o
Posts: 149
Joined: Dec 2003
Reputation:
0
Mouton
Senior Member
Posts: 149
i did use the 'insert-a-debug-line-between-each-line-of-code' technique and was finally able to make this work!
memoryerror was the problem apparently. i don't know how much memory python scripts can use on xbmc, but mine was apparently using too much. i was able to lower that by unlink()ing my dom documents when i'm done with them, and by limiting the number of threads running at the same time.
now that i'm able to download the actual data (which takes around 3-4 minutes to complete), i'll try to save it to a file and allow the user to trigger an update whenever he feels like it.
i though it would be useful to be able to mark movies as 'i-wanna-see'. dunno yet if python on xbmc has a way to easily select an item in a list, but at worst, i'll make a button 'mark last played trailer'. that way, i'll be able to watch trailers, mark the movies i wanna see, and refer to that list in the future.
Posts: 5,008
Joined: Sep 2003
Reputation:
30
pike
Team Kodi Admin
Posts: 5,008
2005-03-30, 21:26
never thought the day would come, but this thread now belongs in development subforum
thx mouton.