Jump to content

Genre browsing and non-ASCII characters fails


Recommended Posts

Posted

Xnappo,

 

Great work. For me it's fixed. If I can report another issue probrably related to encoding if I try to select movies by genre I have problems with movies that have na genre with Unicode.

 

For example if I click the genre "aventura", the list with movies with this genre is populated.

 

If the genre is "ação" wich is action in portuguese the list returns empty. No movie at all.

 

Thanks alot.

 

Marcelo.

Posted (edited)

Hi @@Marcelo - can you post a log with log level set to '1' when this occurs?

 

Thanks,

xnappo

Edited by xnappo
  • Like 1
Posted (edited)

Please try opening:

 

resources/lib/List.py

 

and change line 928 from:

u = 'http://' + server + '/mediabrowser/Users/' + userid + '/Items?&SortBy=SortName&Fields=' + detailsString + '&Recursive=true&SortOrder=Ascending&IncludeItemTypes=' + content + '&Genres=' + item.get("Name") + '&format=json&ImageTypeLimit=1'

to:

u = 'http://' + server + '/mediabrowser/Users/' + userid + '/Items?&SortBy=SortName&Fields=' + detailsString + '&Recursive=true&SortOrder=Ascending&IncludeItemTypes=' + content + '&Genres=' + urllib.quote(item.get("Name")) + '&format=json&ImageTypeLimit=1'

change is from item.get("Name") to urllib.quote(item.get("Name"))

 

xnappo

Edited by xnappo
Posted (edited)

I did the change but I received an error back.

 

Here is the log.

kodi.log

Edited by Marcelo
Posted

Hmm - ok.

 

@@Luke - just so I don't go on a wild goose chase, what does the server want for non-ascii Genre names in the URL?

 

xnappo

Posted

@@Marcelo - this is fixed in the Git now (95% sure anyway) - please test.

 

xnappo

Posted

Xnappo,

 

Be 100% sure.

 

Just tested it and it's working perfectly.

 

Thanks alot for your work.

 

Regards,

 

Marcelo.

Guest
This topic is now closed to further replies.
×
×
  • Create New...