hi, this is a reply i made to
this thread, and i thought i could bring it over here too, where it is more appropriate.
hi again! thank you very much for the prompt response.
Quote:i'm currently working on displaying images so we can see all the screenshots of upcoming games.
very nice! :d that will be great. audio support would be nice too
Quote:normally the re.dotall should work, but i had also problems with it, so i tried the replace('\n', '') approach.
what do mean by "lock up"? does the script just stop responding, but ftp still works?
i was just trying to hunt down this kind of bug.
i will check this out on the weekend and post here if i find out anything.
by "lock up", i mean the system really just stops responding to anything, and even the ftp server doesn't respond anymore. it's not like when your script has invalid code, it's really everything freezing. strange thing is, it never happened to me before using that expression. only if i include that line of code does it happen. oh, and sadly the re.dotall doesn't work either in those cases i mentioned...
let me know if you can find a solution. i'm only just learning python with this plugin so i'm really not familiar with it...
![Confused Confused](https://forum.kodi.tv/images/smilies/confused.png)
hifty:
Quote:i use () to tag parts of the regexp. the mov[n] statement means the n-th tagged expression.
in the regexp '<a\s+href="([^/w].*?)">(.*?)</a>'
mov[0] is the first part ([^/w].*?) and
mov[1] is the second part (.*?).
great, that is what i thought, thanks
Quote:if you have any other questions feel free to post them in flexi browser dev thread.
i'll post this in that thread too.
thanks again for your support!
edit: by the way, do you use any way to debug your code, so you can know where the problem is instead of having to guess what it is everytime?
edit2: if you want added internationalization you can add the lines
Quote: decoded = string.replace(decoded, 'ã', 'a')
decoded = string.replace(decoded, 'ç', 'c')
to your decodehtml function in the flexibrowser.py file, since xbox doesn't support ã or ç. :p