fix errore mediasetplay nelle sezioni con molti elementi + fix minori
This commit is contained in:
@@ -249,7 +249,7 @@ def episodios(item):
|
|||||||
logger.debug()
|
logger.debug()
|
||||||
itemlist = []
|
itemlist = []
|
||||||
json = current_session.get('https://feed.entertainment.tv.theplatform.eu/f/PR1GhC/mediaset-prod-all-programs?byCustomValue={subBrandId}{'
|
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:
|
for it in json:
|
||||||
urls = []
|
urls = []
|
||||||
|
|||||||
+4
-1
@@ -165,7 +165,10 @@ def check_for_update(overwrite=True):
|
|||||||
if estado: # If the update was successful ...
|
if estado: # If the update was successful ...
|
||||||
estado_verify_playcount_series = True # ... is checked to change the Video Library option
|
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 not serie.active:
|
||||||
# if the series is not active discard
|
# if the series is not active discard
|
||||||
|
|||||||
@@ -266,6 +266,9 @@ def live(item):
|
|||||||
|
|
||||||
|
|
||||||
def load_live(channel_name):
|
def load_live(channel_name):
|
||||||
channel = __import__('%s.%s' % ('channels', channel_name), None, None, ['%s.%s' % ('channels', channel_name)])
|
try:
|
||||||
itemlist = channel.live(channel.mainlist(Item())[0])
|
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
|
return channel_name, itemlist
|
||||||
|
|||||||
Reference in New Issue
Block a user