xxtbg / anarchintosh-projects

Automatically exported from code.google.com/p/anarchintosh-projects
0 stars 0 forks source link

Icefilms TV shows fails to list shows in the letter K #204

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Open Ice films -> TV shows
2. Scroll down and select the letter K
3. fails to open. plugin crashes

What is the expected output? What do you see instead?
Expected output is a list of TV shows in the letter K.
i get returned to the Icefilms mainmenu instead.

What version of the product are you using? On what operating system?
latest, 1.5.2?

Please provide any additional information below.
This is due to a new show called Kourtney and Khloé
the icefilms plugin cannot deal with the letter é so it crashes.

i have fixed this in my own version of the plugin by editing the file cleaners 
and adding this bit to the code:

decode('latin-1').encode('ascii','xmlcharrefreplace')

please see attached.
i would really appreciate it if you verify the changes i did and push them 
upstream so that everyone can benefit.
line 2879 default.py
     name = htmlcleaner.clean(name.decode('latin-1').encode('ascii','xmlcharrefreplace'))

line 13 cleaners.py
    name = name.decode('latin-1').encode('ascii','xmlcharrefreplace')

thank you!

Original issue reported on code.google.com by anark...@gmail.com on 11 Dec 2014 at 7:29

Attachments:

GoogleCodeExporter commented 9 years ago
still breaks, fixed it in latest release by modifiing the htmlcleaners.clean 
function to be as follows:

def clean(html,strip=False):
    cleaned = unescape(html.decode('latin-1').encode('ascii','xmlcharrefreplace'))
    if strip == True:
        return cleanUnicode(cleaned)
    else:
        return cleaned

Original comment by nour.n...@gmail.com on 6 Jan 2015 at 7:30