From b5d481992cecdb7d336b79924f300343fd3ebbab Mon Sep 17 00:00:00 2001 From: DiMartinoXBMC Date: Tue, 10 Feb 2015 18:05:52 +0300 Subject: [PATCH] piratefix --- Core.py | 6 +++++- addon.xml | 2 +- resources/contenters/ThePirateBaySe.py | 8 ++------ 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Core.py b/Core.py index f865651..36dba2f 100644 --- a/Core.py +++ b/Core.py @@ -883,7 +883,11 @@ class Core: label = info.get('label').encode('utf-8', 'ignore') if self.contenterObject[provider].isInfoLink() and info.get('link'): - link = {'url': '%s::%s' % (provider, info.get('link')), 'thumbnail': img} + if isinstance(info.get('link'), tuple): + url=info.get('link')[0] + else: + url=info.get('link') + link = {'url': '%s::%s' % (provider, url), 'thumbnail': img} elif self.contenterObject[provider].isLabel(): link = {'url': '%s::%s' % (provider, urllib.quote_plus(label)), 'thumbnail': img} diff --git a/addon.xml b/addon.xml index 63bc036..e6331b9 100644 --- a/addon.xml +++ b/addon.xml @@ -1,5 +1,5 @@  - + diff --git a/resources/contenters/ThePirateBaySe.py b/resources/contenters/ThePirateBaySe.py index f0d4cbd..24153ca 100644 --- a/resources/contenters/ThePirateBaySe.py +++ b/resources/contenters/ThePirateBaySe.py @@ -55,7 +55,7 @@ class ThePirateBaySe(Content.Content): return False def isInfoLink(self): - return False + return True def isPages(self): return True @@ -69,7 +69,6 @@ class ThePirateBaySe(Content.Content): def get_contentList(self, category, subcategory=None, apps_property=None): contentList = [] url = self.get_url(category, subcategory, apps_property) - print str(url) response = self.makeRequest(url, headers=self.headers) @@ -87,11 +86,9 @@ class ThePirateBaySe(Content.Content): result = re.compile( r'''