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')
connection.send_response(302)
connection.send_header('Location', redirect)
connection.end_headers()
connection.send_response(302)
connection.send_header('Location', redirect)
connection.end_headers()
- channel=dict()
- channel['name']=record.title.decode('utf-8')
- channel['url']=record.path.decode('utf-8')
- playlistgen.addItem(channel)
+ if record.title:
+ channel=dict()
+ channel['name']=record.title.decode('utf-8')
+ channel['url']=record.path.decode('utf-8')
+ playlistgen.addItem(channel)