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
+5 -2
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