Fix ilgenio (link in re-upload), cb01 caso speciale serie e soppressione errori nei canali in videoteca

This commit is contained in:
mac12m99
2021-05-01 14:55:45 +02:00
parent 4d9eab3204
commit d008d3922d
3 changed files with 14 additions and 10 deletions

View File

@@ -515,15 +515,18 @@ def findvideos(item):
from core import servertools
ch_results.append(executor.submit(servertools.find_video_items, item_json))
except Exception as ex:
except:
import traceback
logger.error("The findvideos function for the channel %s failed" % nom_canal)
template = "An exception of type %s occured. Arguments:\n%r"
message = template % (type(ex).__name__, ex.args)
logger.error(message)
logger.error(traceback.format_exc())
for ris in futures.as_completed(ch_results):
list_servers.extend(ris.result())
try:
list_servers.extend(ris.result())
except:
import traceback
logger.error("The findvideos function for a channel failed")
logger.error(traceback.format_exc())
# Change the title to the servers adding the name of the channel in front and the infoLabels and the images of the item if the server does not have