fix errore mediasetplay nelle sezioni con molti elementi + fix minori

This commit is contained in:
mac12m99
2021-03-20 21:02:18 +01:00
parent 92dc09f370
commit 9f231db4d1
3 changed files with 10 additions and 4 deletions

View File

@@ -249,7 +249,7 @@ def episodios(item):
logger.debug()
itemlist = []
json = current_session.get('https://feed.entertainment.tv.theplatform.eu/f/PR1GhC/mediaset-prod-all-programs?byCustomValue={subBrandId}{'
+ item.url + '}&range=0-10000').json()['entries']
+ item.url + '}&range=0-1000').json()['entries']
for it in json:
urls = []

View File

@@ -165,7 +165,10 @@ def check_for_update(overwrite=True):
if estado: # If the update was successful ...
estado_verify_playcount_series = True # ... is checked to change the Video Library option
interval = int(serie.active) # Could be the bool type
try:
interval = int(serie.active) # Could be the bool type
except:
interval = 1
if not serie.active:
# if the series is not active discard

View File

@@ -266,6 +266,9 @@ def live(item):
def load_live(channel_name):
channel = __import__('%s.%s' % ('channels', channel_name), None, None, ['%s.%s' % ('channels', channel_name)])
itemlist = channel.live(channel.mainlist(Item())[0])
try:
channel = __import__('%s.%s' % ('channels', channel_name), None, None, ['%s.%s' % ('channels', channel_name)])
itemlist = channel.live(channel.mainlist(Item())[0])
except:
itemlist = []
return channel_name, itemlist