fix errore mediasetplay nelle sezioni con molti elementi + fix minori
This commit is contained in:
@@ -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 = []
|
||||
|
||||
@@ -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
|
||||
|
||||
try:
|
||||
interval = int(serie.active) # Could be the bool type
|
||||
except:
|
||||
interval = 1
|
||||
|
||||
if not serie.active:
|
||||
# if the series is not active discard
|
||||
|
||||
@@ -266,6 +266,9 @@ def live(item):
|
||||
|
||||
|
||||
def load_live(channel_name):
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user