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 = '