From 25a9fce214d07b28f97dd0ee4ea5cc714d359569 Mon Sep 17 00:00:00 2001 From: Roman Bazalevsky Date: Wed, 29 Jul 2015 20:59:33 +0300 Subject: [PATCH] "/" handling in channel names --- plugins/m3u_plugin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/m3u_plugin.py b/plugins/m3u_plugin.py index 539616b..2070206 100644 --- a/plugins/m3u_plugin.py +++ b/plugins/m3u_plugin.py @@ -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: -- 2.34.1