X-Git-Url: https://git.rvb.name/vpproxy.git/blobdiff_plain/a6fc8c22788da2788370d533549620cd89b1b982..68a65fd06255411599601a0b9857be6ef2e8eba2:/plugins/modules/PlaylistGenerator.py diff --git a/plugins/modules/PlaylistGenerator.py b/plugins/modules/PlaylistGenerator.py index e5402b2..c46197f 100644 --- a/plugins/modules/PlaylistGenerator.py +++ b/plugins/modules/PlaylistGenerator.py @@ -38,7 +38,7 @@ class PlaylistGenerator(object): 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 ''' @@ -54,7 +54,7 @@ class PlaylistGenerator(object): 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