![]() |
|
Hulu Plugin Development Thread - Developers only! - Printable Version +- XBMC Community Forum (http://forum.xbmc.org) +-- Forum: Development (/forumdisplay.php?fid=32) +--- Forum: Python Add-on Development (/forumdisplay.php?fid=26) +--- Thread: Hulu Plugin Development Thread - Developers only! (/showthread.php?tid=45888) |
- kreach - 2010-05-26 00:06 To further clarify, I'm getting a nonsensical error "TypeError: an integer is required " in _tv.addEpisodeList( ) at the line "for item in eps". If you try to print item, it loops once and then the same error occurs, but this time the stack trace points to beautiful soup's _str_ function. However, if you wrap the for loop in a try/except block, even though the error is raised, everything loads fine. - gypherogha - 2010-05-26 00:36 Not the best way to fix a problem, but if it works who's going to complain? - jarod71 - 2010-05-31 06:10 hope you can fine tune this plugin for xbox, it works great except for movies and tv shows. any of the recently added, most viewed shows work fine... - highlandsun - 2010-05-31 08:40 kreach Wrote:I have some patches to get the plugin working without installing PyCrypto. I'm having trouble understanding how git works, so I'll post them here. I've pulled the aes patch into my repo. I've also removed the use of the struct module, so that bit can go away. I recommend installing CryptoPy in the XBMC system/python/Lib directory instead of just in the Hulu plugin, it will probably come in handy for other plugins. (E.g. for this one http://forum.xbmc.org/showthread.php?tid=74089 ) - kreach - 2010-06-03 01:15 Posted some more fixes on the repo. - highlandsun - 2010-06-03 03:34 kreach Wrote:Posted some more fixes on the repo. Thanks, merged. Please set your username/email address on your repo for future commits... PS: What's the likelihood of migrating the Xbox builds to using python 2.6? - kreach - 2010-06-03 18:27 Sorry, still trying to figure out how to use git. This thread talks about the problems with using python 2.6. I'm not a developer so I can't comment on the ease of porting it to xbox. - peepsalot - 2010-06-06 23:39 I found an error when attempting to view a Season list for a show which has some episodes listed as "Special"s. These episodes apparently do not have an episode number. Here is the error: 15:45:05 M: 27246592 ERROR: Error Type: exceptions.IndexError 15:45:05 M: 27246592 ERROR: Error Contents: list index out of range 15:45:05 M: 27246592 ERROR: Traceback (most recent call last): File "Q:\plugins\video\Hulu\default.py", line 57, in ? modes ( ) File "Q:\plugins\video\Hulu\default.py", line 39, in modes tv.Main() File "Q:\plugins\video\Hulu\resources\lib\_tv.py", line 29, in __init__ self.addEpisodeList() File "Q:\plugins\video\Hulu\resources\lib\_tv.py", line 204, in addEpisodeList episode=cols[0].contents[0] IndexError: list index out of range A quick fix which worked for me was to just give any such episodes a number of 0. I replaced line 204 of _tv.py with the following lines: Code: if cols[0].contents:- highlandsun - 2010-06-07 00:11 When reporting bugs/problems (to *any* software project) you must always provide information on how you triggered it, so that the developers can reproduce it. What show were you looking at that had these "Special"s ? - peepsalot - 2010-06-07 00:14 highlandsun Wrote:When reporting bugs/problems (to *any* software project) you must always provide information on how you triggered it, so that the developers can reproduce it. What show were you looking at that had these "Special"s ? "The Rotten Tomatoes Show", Season 2 |