X-Git-Url: https://git.rvb.name/vpproxy.git/blobdiff_plain/3a3df745c628e61204c0444f912f74a55d1d38d1..21abfc4eb5f6f49ef263d0c1961fb1dff19f337c:/plugins/m3u_plugin.py diff --git a/plugins/m3u_plugin.py b/plugins/m3u_plugin.py index 539616b..fc4d3e3 100644 --- a/plugins/m3u_plugin.py +++ b/plugins/m3u_plugin.py @@ -52,7 +52,7 @@ class M3u(VPProxyPlugin): if self.splitted_path[1]=='m3u': prefix='get' elif self.splitted_path[1]=='m3uw': - prefix='webm' + prefix='ogg' elif self.splitted_path[1]=='m3ut': prefix='mp4' elif self.splitted_path[1] in ("list","play","index"): @@ -115,7 +115,7 @@ class M3u(VPProxyPlugin): connection.dieWithError() url=None for record in playlist: - if record.title.decode('utf-8')==channel: + if record.title.decode('utf-8').replace('/','')==channel: url=record.path.decode('utf-8') print url if url: @@ -147,7 +147,7 @@ class M3u(VPProxyPlugin): exported = "" for record in playlist: - exported = exported + "" + record.title.decode('utf-8') + "\n" + exported = exported + "" + record.title.decode('utf-8').replace('/','') + "\n" else: