From 17bced601f3f8c5f881fa3474482311c421336b9 Mon Sep 17 00:00:00 2001 From: Alhaziel01 Date: Mon, 4 Jan 2021 18:56:47 +0100 Subject: [PATCH] Streamming Community Risoluzioni solo se esistenti --- channels/streamingcommunity.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/channels/streamingcommunity.py b/channels/streamingcommunity.py index 54b4d8b1..d21700c6 100644 --- a/channels/streamingcommunity.py +++ b/channels/streamingcommunity.py @@ -187,5 +187,8 @@ def findvideos(item): itemlist=[] url = support.match(support.match(item).data.replace('"','"').replace('\\',''), patron=r'video_url"\s*:\s*"([^"]+)"').match 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')] + newurl = '{}/{}'.format(url, res) + support.dbg() + if session.get(newurl, headers=headers).status_code == 200: + itemlist += [item.clone(title=support.config.get_localized_string(30137), server='directo', url=newurl, quality=res, action='play')] return support.server(item, itemlist=itemlist) \ No newline at end of file