From 7bb418d8c7787d1ed6fcd421de8a49fc2738a36e Mon Sep 17 00:00:00 2001 From: Roman Bazalevsky Date: Thu, 22 Oct 2015 13:32:00 +0300 Subject: [PATCH] =?utf8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB=D0=B5?= =?utf8?q?=D0=BD=D0=B0=20=D0=BE=D1=88=D0=B8=D0=B1=D0=BA=D0=B0=20=D0=B2=20?= =?utf8?q?=D0=B3=D0=B5=D0=BD=D0=B5=D1=80=D0=B0=D1=86=D0=B8=D0=B8=20=D1=81?= =?utf8?q?=D0=BF=D0=B8=D1=81=D0=BE=D0=BA=20=D0=B2=20=D1=81=D0=BB=D1=83?= =?utf8?q?=D1=87=D0=B0=D0=B5=20=D0=B7=D0=B0=D0=BF=D0=B8=D1=81=D0=B5=D0=B9?= =?utf8?q?=20=D1=81=20=D0=BF=D1=83=D1=81=D1=82=D1=8B=D0=BC=D0=B8=20=D0=B8?= =?utf8?q?=D0=BC=D0=B5=D0=BD=D0=B0=D0=BC=D0=B8.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- plugins/m3u_plugin.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/plugins/m3u_plugin.py b/plugins/m3u_plugin.py index 00a6193..90f529f 100644 --- a/plugins/m3u_plugin.py +++ b/plugins/m3u_plugin.py @@ -152,10 +152,11 @@ class M3u(VPProxyPlugin): playlistgen = PlaylistGenerator() for record in playlist: - 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) exported = playlistgen.exportm3u(hostport,prefix) -- 2.34.1