item.get('group', ''), item.get('tvg', ''), item.get('logo', ''),
item.get('name'), item.get('url'))
- def exportm3u(self, hostport, add_ts=False, empty_header=False, archive=False):
+ def exportm3u(self, hostport, prefix="get", add_ts=False, empty_header=False, archive=False):
'''
Exports m3u playlist
'''
item['tvg'] = item.get('tvg', '') if item.get('tvg') else \
item.get('name').replace(' ', '_')
# For .acelive and .torrent
- item['url'] = 'http://' + hostport + '/get/'+item['url']
+ item['url'] = 'http://' + hostport + '/' + prefix + '/' + item['url']
itemlist += PlaylistGenerator._generatem3uline(item)
return itemlist