From 0738a82372fa64877f52e3b1b60cf7a188b977c1 Mon Sep 17 00:00:00 2001
From: Intel1 <25161862+Intel11@users.noreply.github.com>
Date: Sat, 23 Dec 2017 09:29:39 -0500
Subject: [PATCH] divxatope: fix
---
plugin.video.alfa/channels/divxatope.py | 14 ++++++++------
1 file changed, 8 insertions(+), 6 deletions(-)
diff --git a/plugin.video.alfa/channels/divxatope.py b/plugin.video.alfa/channels/divxatope.py
index 276dd858..d1aae940 100644
--- a/plugin.video.alfa/channels/divxatope.py
+++ b/plugin.video.alfa/channels/divxatope.py
@@ -260,14 +260,16 @@ def findvideos(item):
item.plot = scrapertools.find_single_match(data, '
(.*?)
')
item.plot = scrapertools.htmlclean(item.plot).strip()
item.contentPlot = item.plot
-
- link = scrapertools.find_single_match(data, 'location\.href.*?=.*?"http:\/\/(?:tumejorserie|tumejorjuego).*?link=(.*?)"')
- if link != "":
- link = "http://www.divxatope1.com/" + link
- logger.info("torrent=" + link)
+ al_url_fa = scrapertools.find_single_match(data, 'location\.href.*?=.*?"http:\/\/(?:tumejorserie|tumejorjuego).*?link=(.*?)"')
+ if al_url_fa == "":
+ al_url_fa = scrapertools.find_single_match(data,
+ 'location\.href.*?=.*?"http:\/\/divxatope1.com/(.*?)"')
+ if al_url_fa != "":
+ al_url_fa = "http://www.divxatope1.com/" + al_url_fa
+ logger.info("torrent=" + al_url_fa)
itemlist.append(
Item(channel=item.channel, action="play", server="torrent", title="VĂdeo en torrent", fulltitle=item.title,
- url=link, thumbnail=servertools.guess_server_thumbnail("torrent"), plot=item.plot, folder=False,
+ url=al_url_fa, thumbnail=servertools.guess_server_thumbnail("torrent"), plot=item.plot, folder=False,
parentContent=item))
patron = '([^<]+)<\/div[^<]+
([^<]+)'