From d29edda3a9096a6d7611881d711e923b431e0866 Mon Sep 17 00:00:00 2001 From: danielr460 Date: Fri, 23 Feb 2018 15:34:03 -0500 Subject: [PATCH] =?UTF-8?q?Eliminando=20c=C3=B3digo=20innecesario?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugin.video.alfa/channels/newpct.py | 2 -- plugin.video.alfa/channels/newpct1.py | 5 ----- 2 files changed, 7 deletions(-) diff --git a/plugin.video.alfa/channels/newpct.py b/plugin.video.alfa/channels/newpct.py index 14ea9969..07e33c07 100755 --- a/plugin.video.alfa/channels/newpct.py +++ b/plugin.video.alfa/channels/newpct.py @@ -93,8 +93,6 @@ def findvideos(item): data = httptools.downloadpage(item.url).data itemlist = servertools.find_video_items(data = data) url = scrapertools.find_single_match( data, 'location.href = "([^"]+)"') - data = httptools.downloadpage(url, follow_redirects=False).headers['location'] - data = httptools.downloadpage(url).data new_item.append(Item(url = url, title = "Torrent", server = "torrent", action = "play")) itemlist.extend(new_item) for it in itemlist: diff --git a/plugin.video.alfa/channels/newpct1.py b/plugin.video.alfa/channels/newpct1.py index d328e143..0caf19cd 100644 --- a/plugin.video.alfa/channels/newpct1.py +++ b/plugin.video.alfa/channels/newpct1.py @@ -49,15 +49,12 @@ def listado(item): data = re.sub(r"\n|\r|\t|\s{2}| ", "", data) patron_data='' data_listado = scrapertools.find_single_match(data, patron_data) - logger.info("sadas"+data_listado) patron_listado='