4 (based on ytv plugin by ValdikSS)
14 http://ip:port/m3u/list-name
16 plain-tet channel names
20 http://ip:port/list/list-name
24 http://ip:port/play/channel-name
25 http://ip:port/play/list-name/channel-name
26 http://ip:port/play/{list-name}/(get|mp4|webm)/channel-name
31 from modules.PluginInterface import VPProxyPlugin
36 class Debug(VPProxyPlugin):
40 logger = logging.getLogger('mem_debug')
42 def handle(self, connection):
44 connection.send_response(200)
45 connection.send_header('Content-Type', 'text/plain')
46 connection.end_headers()
48 gc.set_debug(gc.DEBUG_LEAK)
50 connection.wfile.write('{} objects collected\n'.format(gc.collect()))
52 connection.wfile.write(h.heap())
54 def getparam(self, key):
55 if key in self.params:
56 return self.params[key][0]