From d371e617701248e26eb46c8b86d657553b6da545 Mon Sep 17 00:00:00 2001 From: Alfa <30527549+alfa-addon@users.noreply.github.com> Date: Wed, 11 Jul 2018 16:27:11 -0500 Subject: [PATCH] cinecalidad: fix --- plugin.video.alfa/channels/cinecalidad.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/plugin.video.alfa/channels/cinecalidad.py b/plugin.video.alfa/channels/cinecalidad.py index 7fa980df..7ac84bbd 100644 --- a/plugin.video.alfa/channels/cinecalidad.py +++ b/plugin.video.alfa/channels/cinecalidad.py @@ -315,9 +315,12 @@ def findvideos(item): server = 'thevideome' url = server_url[server_id] + video_id + '.html' elif server_id == 'BitTorrent': - base_url = 'http://www.cinecalidad.to/protect/contenido.php' - post = 'i=%s&title=%s' % (video_id, item.contentTitle) - protect = httptools.downloadpage(base_url, post=post).data + import urllib + base_url = 'http://www.cinecalidad.to/protect/v.php' + post = {'i':video_id, 'title':item.title} + post = urllib.urlencode(post) + headers = {'Referer':item.url} + protect = httptools.downloadpage(base_url+'?'+post, headers=headers).data url = scrapertools.find_single_match(protect, 'value="(magnet.*?)"') server = 'torrent' else: