class M3u(VPProxyPlugin):
- handlers = ('m3u', 'm3ut', 'm3uw', "list", "play", "index")
+ handlers = ('m3u', 'm3ut', 'm3uw', 'list', 'play', 'index')
logger = logging.getLogger('plugin_m3u')
playlist = None
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)