forked from rc/aircox
fix sound path query bugs
This commit is contained in:
@ -98,8 +98,8 @@ class Program(Page):
|
||||
Return a Program from the given path. We assume the path has been
|
||||
given in a previous time by this model (Program.path getter).
|
||||
"""
|
||||
if path.startswith(settings.AIRCOX_PROGRAMS_DIR):
|
||||
path = path.replace(settings.AIRCOX_PROGRAMS_DIR + '/', '')
|
||||
if path.startswith(settings.AIRCOX_PROGRAMS_DIR_ABS):
|
||||
path = path.replace(settings.AIRCOX_PROGRAMS_DIR_ABS, '')
|
||||
while path[0] == '/':
|
||||
path = path[1:]
|
||||
path = path[:path.index('/')]
|
||||
|
Reference in New Issue
Block a user