Fix streamingcommunity e ordinamento decrescente per programmi tv mediaset
This commit is contained in:
+2
-2
@@ -39,7 +39,6 @@
|
|||||||
"serietvonline": "https://serietvonline.art",
|
"serietvonline": "https://serietvonline.art",
|
||||||
"serietvsubita": "http://serietvsubita.xyz",
|
"serietvsubita": "http://serietvsubita.xyz",
|
||||||
"serietvu": "https://www.serietvu.live",
|
"serietvu": "https://www.serietvu.live",
|
||||||
"streamingcommunity": "https://streamingcommunity-nuovo.link",
|
|
||||||
"streamtime": "https://t.me/s/StreamTime",
|
"streamtime": "https://t.me/s/StreamTime",
|
||||||
"tantifilm": "https://www.tantifilm.stream",
|
"tantifilm": "https://www.tantifilm.stream",
|
||||||
"tapmovie": "https://it.tapmovie.net",
|
"tapmovie": "https://it.tapmovie.net",
|
||||||
@@ -49,6 +48,7 @@
|
|||||||
"findhost": {
|
"findhost": {
|
||||||
"altadefinizioneclick": "https://altadefinizione-nuovo.click",
|
"altadefinizioneclick": "https://altadefinizione-nuovo.click",
|
||||||
"animealtadefinizione": "https://www.animealtadefinizione.it",
|
"animealtadefinizione": "https://www.animealtadefinizione.it",
|
||||||
"filmpertutti": "https://filmpertuttiii.nuovo.live"
|
"filmpertutti": "https://filmpertuttiii.nuovo.live",
|
||||||
|
"streamingcommunity": "https://streamingcommunity-nuovo.link"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -195,15 +195,18 @@ def episodios(item):
|
|||||||
except: # per i test, xbmc.getLocalizedString non è supportato
|
except: # per i test, xbmc.getLocalizedString non è supportato
|
||||||
for month in range(21, 33): months.append('dummy')
|
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 = []
|
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:
|
for it in res:
|
||||||
thumb = ''
|
thumb = ''
|
||||||
titleDate = ''
|
titleDate = ''
|
||||||
if 'mediasetprogram$publishInfo_lastPublished' in it:
|
if 'mediasetprogram$publishInfo_lastPublished' in it:
|
||||||
date = datetime.date.fromtimestamp(it['mediasetprogram$publishInfo_lastPublished'] / 1000)
|
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)
|
title = '[B]{}[/B]{}'.format(it['title'], titleDate)
|
||||||
for k, v in it['thumbnails'].items():
|
for k, v in it['thumbnails'].items():
|
||||||
if 'image_keyframe' in k and not thumb:
|
if 'image_keyframe' in k and not thumb:
|
||||||
|
|||||||
@@ -11,7 +11,12 @@ if sys.version_info[0] >= 3:
|
|||||||
else:
|
else:
|
||||||
from concurrent_py2 import futures
|
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()
|
session = requests.Session()
|
||||||
headers = {}
|
headers = {}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user