21-10-2016, 00:25
В playlistgenerator най-долу има:
Код:
# For channel id's
if archive:
item['url'] = re.sub('^([0-9]+)$', lambda match: 'http://' + hostport + '/archive/play?id=' + match.group(0),
item['url'], flags=re.MULTILINE)
else:
item['url'] = re.sub('^([0-9]+)$', lambda match: 'http://' + hostport + '/channels/play?id=' + match.group(0),
item['url'], flags=re.MULTILINE)
itemlist += PlaylistGenerator._generatem3uline(item)