Jump to content

Genre browsing and non-ASCII characters fails


Marcelo

Recommended Posts

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.

Link to comment
Share on other sites

xnappo

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

 

Thanks,

xnappo

Edited by xnappo
  • Like 1
Link to comment
Share on other sites

xnappo

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
Link to comment
Share on other sites

xnappo

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

Link to comment
Share on other sites

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