Skip to content

Commit

Permalink
Version 2.0.3
Browse files Browse the repository at this point in the history
* Slash and unicode symbols in group title fix (#92)
  • Loading branch information
Cigaras committed Mar 7, 2017
1 parent 2a656be commit 73e8c1f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Contents/Code/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,14 +92,16 @@ def MainMenu():
return ListItems(unicode(L('All')))

####################################################################################################
@route(PREFIX + '/listitems/{group}', page = int)
@route(PREFIX + '/listitems', page = int)
def ListItems(group, page = 1):

if not Dict['streams']:
LoadPlaylist()
if not Dict['streams']:
return ObjectContainer(header = "Error", message = "Provided playlist files are invalid, missing or empty, check the log file for more information")

group = unicode(group) # Plex loses unicode formating when passing string between @route procedures if string is not a part of a @route

streams = Dict['streams']
items_list = streams.get(group, dict()).values()

Expand Down

0 comments on commit 73e8c1f

Please sign in to comment.