projects
/
vpproxy.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
WebM listing added
[vpproxy.git]
/
plugins
/
modules
/
PlaylistGenerator.py
diff --git
a/plugins/modules/PlaylistGenerator.py
b/plugins/modules/PlaylistGenerator.py
index e5402b25fcec55b2cdc2dc02424358d8b1aabd48..c46197f35d6a20711efa6d359dc0718e920a269d 100644
(file)
--- 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'))
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
'''
'''
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['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
itemlist += PlaylistGenerator._generatem3uline(item)
return itemlist