From 6d5d4f6046ccea176ecbd8f7ec14fcacbc4d96dc Mon Sep 17 00:00:00 2001 From: Alhaziel01 Date: Mon, 4 Jan 2021 10:16:48 +0100 Subject: [PATCH] aggiunte risoluzioni a streaming community --- channels/streamingcommunity.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/channels/streamingcommunity.py b/channels/streamingcommunity.py index 02f5fd1f..54b4d8b1 100644 --- a/channels/streamingcommunity.py +++ b/channels/streamingcommunity.py @@ -5,6 +5,7 @@ import json, requests from core import support +from platformcode import logger host = support.config.get_channel_url() session = requests.Session() @@ -185,5 +186,6 @@ def findvideos(item): support.info() itemlist=[] url = support.match(support.match(item).data.replace('"','"').replace('\\',''), patron=r'video_url"\s*:\s*"([^"]+)"').match - itemlist=[item.clone(title=support.config.get_localized_string(30137), server='directo', url=url, action='play')] + for res in ['480p', '720p', '1080p']: + itemlist += [item.clone(title=support.config.get_localized_string(30137), server='directo', url='{}/{}'.format(url, res), quality=res, action='play')] return support.server(item, itemlist=itemlist) \ No newline at end of file