diff --git a/channels.json b/channels.json index e48f8d4f..7bc7cc62 100644 --- a/channels.json +++ b/channels.json @@ -39,7 +39,6 @@ "serietvonline": "https://serietvonline.art", "serietvsubita": "http://serietvsubita.xyz", "serietvu": "https://www.serietvu.live", - "streamingcommunity": "https://streamingcommunity-nuovo.link", "streamtime": "https://t.me/s/StreamTime", "tantifilm": "https://www.tantifilm.stream", "tapmovie": "https://it.tapmovie.net", @@ -49,6 +48,7 @@ "findhost": { "altadefinizioneclick": "https://altadefinizione-nuovo.click", "animealtadefinizione": "https://www.animealtadefinizione.it", - "filmpertutti": "https://filmpertuttiii.nuovo.live" + "filmpertutti": "https://filmpertuttiii.nuovo.live", + "streamingcommunity": "https://streamingcommunity-nuovo.link" } } \ No newline at end of file diff --git a/channels/mediasetplay.py b/channels/mediasetplay.py index 04c742ca..52079b99 100644 --- a/channels/mediasetplay.py +++ b/channels/mediasetplay.py @@ -195,15 +195,18 @@ def episodios(item): except: # per i test, xbmc.getLocalizedString non รจ supportato for month in range(21, 33): months.append('dummy') + # i programmi tv vanno ordinati per data decrescente, gli episodi delle serie per data crescente + order = 'desc' if '/programmi-tv/' in item.url else 'asc' + itemlist = [] - res = requests.get('https://feed.entertainment.tv.theplatform.eu/f/PR1GhC/mediaset-prod-all-programs-v2?byCustomValue={subBrandId}{' + item.subbrand +'}&sort=:publishInfo_lastPublished|asc,tvSeasonEpisodeNumber').json()['entries'] + res = requests.get('https://feed.entertainment.tv.theplatform.eu/f/PR1GhC/mediaset-prod-all-programs-v2?byCustomValue={subBrandId}{' + item.subbrand +'}&sort=:publishInfo_lastPublished|' + order + ',tvSeasonEpisodeNumber').json()['entries'] for it in res: thumb = '' titleDate = '' if 'mediasetprogram$publishInfo_lastPublished' in it: date = datetime.date.fromtimestamp(it['mediasetprogram$publishInfo_lastPublished'] / 1000) - titleDate =' [{} {}]'.format(date.day, months[date.month]) + titleDate =' [{} {}]'.format(date.day, months[date.month-1]) title = '[B]{}[/B]{}'.format(it['title'], titleDate) for k, v in it['thumbnails'].items(): if 'image_keyframe' in k and not thumb: diff --git a/channels/streamingcommunity.py b/channels/streamingcommunity.py index e784d324..566a46aa 100644 --- a/channels/streamingcommunity.py +++ b/channels/streamingcommunity.py @@ -11,7 +11,12 @@ if sys.version_info[0] >= 3: else: from concurrent_py2 import futures -host = support.config.get_channel_url() + +def findhost(url): + return 'https://' + support.match(url, patron='var domain\s*=\s*"([^"]+)').match + + +host = support.config.get_channel_url(findhost) session = requests.Session() headers = {}