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