ulteriore fix StreamingCommunity

This commit is contained in:
Alhaziel01
2021-12-18 12:24:24 +01:00
parent 2bfad01bd5
commit 4a1735fbb4
+4 -1
View File
@@ -237,8 +237,9 @@ def play(item):
url = 'https://scws.xyz/master/{}?token={}&expires={}&n=1'.format(scws_id, token, expires)
subs = []
urls = []
info = support.match(url, patron='(?:NAME="([^"]+)".*?URI="([^"]+)|RESOLUTION=\d+x(\d+).*?(http[^"\s]+))').matches
info = support.match(url, patron='(?:NAME="([^"]+)".*?URI="([^"]+)|RESOLUTION=\d+x(\d+).*?(http[^"\s]+))').matches
if info:
for lang, sub, res, url in info:
if sub:
s = config.get_temp_file(lang +'.srt')
@@ -248,3 +249,5 @@ def play(item):
urls.append(['hls [{}]'.format(res), url])
return [item.clone(title = channeltools.get_channel_parameters(item.channel)['title'], server='directo', video_urls=urls, subtitle=subs, manifest='hls')]
else:
return [item.clone(title = channeltools.get_channel_parameters(item.channel)['title'], server='directo', url=url, manifest='hls')]