[Release] Parsedom and other functions - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32) +--- Forum: Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=26) +--- Thread: [Release] Parsedom and other functions (/showthread.php?tid=116498) |
RE: [Release] Parsedom and other functions - cancan101 - 2012-12-29 I am all of a sudden getting the following: Code: 01:01:45 T:2960104304 NOTICE: -->Python Interpreter Initialized<-- It looks like this issue was introduced here: http://xbmc.git.sourceforge.net/git/gitweb.cgi?p=xbmc/scripts;a=commitdiff;h=7283827f6b422071d2f9c96bf90f12114033d123 RE: [Release] Parsedom and other functions - dschaeggi - 2012-12-29 Hi all! The same error has occurred to me, out of the blue, this morning. When I looked at CommonFunctions.py I found out, that function getXBMCVersion is not able to handle the string "11.0 Git:Unknown". As I am used to write scripts in Perl and therefore prefer regular expression to do such things, I replaced Code: if version.find("-") -1: Code: version = re.findall(r"\d+\.\d", version).pop() Fortunately it works again now. Have a nice day with youtube! :-) Dschaeggi RE: [Release] Parsedom and other functions - cancan101 - 2012-12-29 I am pretty sure this line is buggy: Code: if version.find("-") -1: My guess is the predicate is missing an == . All it does is drop the last character of the version string when no - is found. RE: [Release] Parsedom and other functions - bit555 - 2013-01-01 NM RE: [Release] Parsedom and other functions - Kr0nZ - 2013-01-01 hi, I found a bug... Parsedom wasn't returning all elements for me when trying to get <li>'s with other <li>'s as children. I found the cause and fixed it At the end of the parsedom function there is this line: Code: else: I fixed it by adding an if clause, so the above now becomes: Code: else: RE: [Release] Parsedom and other functions - Kr0nZ - 2013-01-02 (2012-12-29, 22:15)cancan101 Wrote: I am pretty sure this line is buggy: I also just came across this bug, I think its because its checking for a dash in the version string but not checking for a space I added Code: if version.find(" ") -1: RE: [Release] Parsedom and other functions - rmk1139 - 2013-01-02 It looks like the issue I'm having is a common one. I am having the problem with XBMCbuntu. The problem arises because the call to: Code: version = xbmc.getInfoLabel( "System.BuildVersion" ) returns: Code: 11.0 git:Unkown I fixed the problem by changing the getXBMCVersion function to the following. Code: def getXBMCVersion(): RE: [Release] Parsedom and other functions - fightnight - 2013-11-07 This is missing on frodo repo.. Any chance to upload? RE: [Release] Parsedom and other functions - Kib - 2013-11-08 the fact that it is missing seems to be an issue with the addons generator on the mirroring server, we are looking into it. RE: [Release] Parsedom and other functions - Kib - 2013-11-08 Martijn regenerated the 33 addons which went missing. Should be OK now. Thanks for the heads up. RE: [Release] Parsedom and other functions - realtebo - 2014-01-20 Hi ! I'm the author of plugin.video.jworg, already on xbmc official repo from some monthes. I'd like to implement one new feature base on this addon. Is it stable for html ? Is it's develop going on ? Or.. is the author available here, on the forum? Sorry for this questions, but I didn't know this addon before a recent search, and I'd like to be carefull about the future of my addon. My addon is already dependant on common plugin cache, and I'll add new dependency only if this is stable. Thanks of all, and of course thanks to the author of this addon ! RE: [Release] Parsedom and other functions - realtebo - 2014-01-21 Quote: ImportError: No module named CommonFunctions Ehm ... I cannot find it in the official plugin installer in xbmc. How can I include it if it's not in official repo ? RE: [Release] Parsedom and other functions - bossanova808 - 2014-01-21 parsedom has known bugs (e.g. with non ascii chars) and I haven't seen the author for quite some time....I had to re-write one of the functions locally to work around it and plan to eventually abandon it for something better supported. RE: [Release] Parsedom and other functions - takoi - 2014-01-24 (2014-01-21, 00:44)bossanova808 Wrote: parsedom has known bugs (e.g. with non ascii chars) and I haven't seen the author for quite some time....I had to re-write one of the functions locally to work around it and plan to eventually abandon it for something better supported. send PR? https://github.com/HenrikDK/xbmc-common-plugin-functions RE: [Release] Parsedom and other functions - bossanova808 - 2014-01-28 Yeah might as well I guess. May well get ignored but it's a simple fix so here's hoping... |