Quantcast
Channel: Plex Channel Plugins — Plex Forums
Viewing all articles
Browse latest Browse all 5522

Issue with slash symbol in @route declaration

$
0
0

I have an issue with dynamic @route declaration:

@handler('test')
def MainMenu():
    oc = ObjectContainer()
    group = Prefs['group'] # for example aaa/bbb
    oc.add(DirectoryObject(key = Callback(ListItems, group = unicode(group)), title = group))
    return oc

@route('test/listitems/{group}', page = int)
def ListItems(group, page = 1):
    items = Dict[group]
    for item in items:
        ....

I get an error stating that url test/listitems/aaa/bbb is not found, how can I escape it to something like test/listitems/aaa&#47bbb or similar? aaa/bbb value is being red from preferences, provided by user.


Viewing all articles
Browse latest Browse all 5522

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>