From 9caf20b7385b6aeb25283b2818470548abe768ae Mon Sep 17 00:00:00 2001 From: Intel1 <25161862+Intel11@users.noreply.github.com> Date: Fri, 23 Mar 2018 08:15:42 -0500 Subject: [PATCH] Actualizados canales torrents --- plugin.video.alfa/channels/beeg.py | 18 +- plugin.video.alfa/channels/descargas2020.py | 499 ++++++++++++++---- plugin.video.alfa/channels/mejortorrent.py | 50 +- plugin.video.alfa/channels/torrentlocura.py | 552 ++++++++++---------- plugin.video.alfa/channels/torrentrapid.py | 545 ++++++++++++++++--- 5 files changed, 1156 insertions(+), 508 deletions(-) diff --git a/plugin.video.alfa/channels/beeg.py b/plugin.video.alfa/channels/beeg.py index 345c1b58..09fdafe1 100755 --- a/plugin.video.alfa/channels/beeg.py +++ b/plugin.video.alfa/channels/beeg.py @@ -10,15 +10,15 @@ from platformcode import logger url_api = "" beeg_salt = "" - +Host = "https://beeg.com" def get_api_url(): global url_api global beeg_salt - data = scrapertools.downloadpage("http://beeg.com") - version = re.compile(' + + patron = 'openTorrent.*?title=".*?class="btn-torrent">.*?function openTorrent.*?href = "(.*?)";' + + # escraped torrent + url = scrapertools.find_single_match(data, patron) + logger.debug("urltorrent: " + url + " Title: " + title + " Caratula: " + caratula) + if url != "": + itemlist.append( + Item(channel=item.channel, action="play", server="torrent", title="[torrent] - " + title, fulltitle=title, + url=url, thumbnail=caratula, plot=item.plot, folder=False)) + + # escraped ver vídeos, descargar vídeos un link, múltiples liks + + data = data.replace("http://tumejorserie.com/descargar/url_encript.php?link=", "(") + data = data.replace( + 'javascript:;" onClick="popup("http://www.descargas2020.com/d20/library/include/ajax/get_modallinks.php?links=', "") + + logger.debug("matar %s" % data) + + # Antiguo sistema de scrapeo de servidores usado por Newpct1. Como no funciona con descargas2020, se sustituye por este más común + #patron_descargar = '