elif self.splitted_path[1]=='m3ut':
prefix='mp4'
elif self.splitted_path[1] in ("list","play","index"):
elif self.splitted_path[1]=='m3ut':
prefix='mp4'
elif self.splitted_path[1] in ("list","play","index"):
elif self.splitted_path[1]=="play":
channel=self.splitted_path[len(self.splitted_path)-1]
channel=urllib.unquote(channel).decode('utf-8')
elif self.splitted_path[1]=="play":
channel=self.splitted_path[len(self.splitted_path)-1]
channel=urllib.unquote(channel).decode('utf-8')
for record in playlist:
if record.title.decode('utf-8').replace('/','')==channel:
url=record.path.decode('utf-8')
for record in playlist:
if record.title.decode('utf-8').replace('/','')==channel:
url=record.path.decode('utf-8')
connection.send_response(302)
connection.send_header('Location', redirect)
connection.end_headers()
connection.send_response(302)
connection.send_header('Location', redirect)
connection.end_headers()
playlistgen.addItem(channel)
exported = playlistgen.exportm3u(hostport,prefix)
playlistgen.addItem(channel)
exported = playlistgen.exportm3u(hostport,prefix)