hirsivaja / plugin.video.areena

YLE Areena plugin for Kodi, using the official API.
GNU General Public License v2.0
29 stars 11 forks source link

Fix series search with non-ascii characters #16

Closed tmelin closed 8 years ago

tmelin commented 8 years ago

Decode search query as utf-8 before using lower() to fix searching of series with scands and other non-ascii chars in their name.

Signed-off-by: Tomas Melin tomas.melin@iki.fi

hirsivaja commented 8 years ago

I could not reproduce the error with 'ä' or 'ö' in Windows. In what environment did you get the error? What was the exact error?

tmelin commented 8 years ago

It's on Linux, Python 2.7.6

Error like this: ... areena/main.py", line 574, in search if query.lower() in title.lower(): UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 1: ordinal not in range(128) -->End of Python script error report<--