From 97cc90bfd3d3d82c2e941c91f679dd49b9e3443f Mon Sep 17 00:00:00 2001 From: greko <50103632+greko17@users.noreply.github.com> Date: Sat, 18 May 2019 19:57:55 +0200 Subject: [PATCH] Update eurostreaming.py --- channels/eurostreaming.py | 30 +----------------------------- 1 file changed, 1 insertion(+), 29 deletions(-) diff --git a/channels/eurostreaming.py b/channels/eurostreaming.py index 2d29a533..841f9c21 100644 --- a/channels/eurostreaming.py +++ b/channels/eurostreaming.py @@ -96,7 +96,7 @@ def episodios(item): logger.info("blocks log: %s" % ( blocks )) for block in blocks: season_n, episode_n = scrapertoolsV2.find_single_match(block, r'(\d+)(?:×|×)(\d+)') - titolo = scrapertoolsV2.find_single_match(block, r'[&#;]\d+[ ](?:([a-zA-Z0-9;&#\s]+))[ ]?(?:[^<>])') + titolo = scrapertoolsV2.find_single_match(block, r'[&#;]\d+[ ]([a-zA-Z0-9;&#.\s]+)[ ]?[^<>]') logger.info("block log: %s" % ( block )) titolo = re.sub(r'×|×', "x", titolo).replace("’","'") @@ -166,32 +166,4 @@ def findvideos(item): itemlist = support.server(item, item.url) - - """ - Questa parte funziona se non vanno bene le modifiche a support - """ -## support.log() -## itemlist =[] -## data= '' -## logger.info("Url item.url: [%s] " % item.url) -## -## urls = scrapertoolsV2.find_multiple_matches(item.url, r'href="([^"]+)"') -## itemlist = servertools.find_video_items(data=str(urls)) -## -## for videoitem in itemlist: -## videoitem.title = item.title + ' - [COLOR limegreen][[/COLOR]'+ videoitem.title+ ' [COLOR limegreen]][/COLOR]' -## videoitem.fulltitle = item.fulltitle -## videoitem.thumbnail = item.thumbnail -## videoitem.show = item.show -## videoitem.plot = item.plot -## videoitem.channel = item.channel -## videoitem.contentType = item.contentType -## -## # Controlla se i link sono validi -## if __comprueba_enlaces__: -## itemlist = servertools.check_list_links(itemlist, __comprueba_enlaces_num__) -## -## # richiesto per AutoPlay -## autoplay.start(itemlist, item) - return itemlist