media list, cc, deluge fixes

This commit is contained in:
DiMartinoXBMC committed 2015-07-15 19:14:22 +03:00
1 parent 0d5263aaff
commit e480cb4919
20 files changed
+146 -74

No files matched your search

+4 -1
View File
@@ -98,7 +98,10 @@ class CXZ(Content.Content):
sourceWeight = 2
def isLabel(self):
def isTracker(self):
return False
def isSearcher(self):
return False
def isInfoLink(self):
+4 -1
View File
@@ -40,9 +40,12 @@ class EZTV(Content.Content):
'''
sourceWeight = 1
def isLabel(self):
def isTracker(self):
return True
def isSearcher(self):
return False
def isScrappable(self):
return False
+4 -1
View File
@@ -51,7 +51,10 @@ class FastTorrent(Content.Content):
'''
sourceWeight = 1
def isLabel(self):
def isTracker(self):
return False
def isSearcher(self):
return False
def isScrappable(self):
+4 -1
View File
@@ -81,7 +81,10 @@ class IMDB(Content.Content):
'''
sourceWeight = 2
def isLabel(self):
def isTracker(self):
return False
def isSearcher(self):
return False
def isPages(self):
+4 -1
View File
@@ -50,9 +50,12 @@ class KickAssSo(Content.Content):
'''
sourceWeight = 1
def isLabel(self):
def isTracker(self):
return True
def isSearcher(self):
return False
def isScrappable(self):
return False
+4 -1
View File
@@ -87,7 +87,10 @@ class KinoPoisk(Content.Content):
'''
sourceWeight = 2
def isLabel(self):
def isTracker(self):
return False
def isSearcher(self):
return False
def isPages(self):
+4 -1
View File
@@ -45,7 +45,10 @@ class RiperAM(Content.Content):
'''
sourceWeight = 1
def isLabel(self):
def isTracker(self):
return True
def isSearcher(self):
return True
def isScrappable(self):
+1 -1
View File
@@ -118,7 +118,7 @@ class SWESUB(Content.Content):
# info
info['label'] = info['title'] = self.unescape(title)
info['link'] = '%s::%s' % ('Nyaa', self.baseurl + '/downloads' + link + '/')
info['link'] = self.baseurl + '/downloads' + link + '/'
info['infolink'] = self.baseurl + link + '.html'
info['plot'] = article.find('div', {'class': 'item-content'}).text
+17 -3
View File
@@ -38,7 +38,7 @@ class ThePirateBaySe(Content.Content):
{'name': 'by Date', 'url_after': '/0/3/0'}]}),
}
baseurl = "https://thepiratebay.se"
baseurl = "thepiratebay.gd"
headers = [('User-Agent',
'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.124' + \
' YaBrowser/14.10.2062.12061 Safari/537.36'),
@@ -50,9 +50,12 @@ class ThePirateBaySe(Content.Content):
'''
sourceWeight = 1
def isLabel(self):
def isTracker(self):
return True
def isSearcher(self):
return False
def isScrappable(self):
return False
@@ -72,7 +75,7 @@ class ThePirateBaySe(Content.Content):
contentList = []
url = self.get_url(category, subcategory, apps_property)
response = self.makeRequest(url, headers=self.headers)
response = self.open2(url)
if None != response and 0 < len(response):
# print response
@@ -81,6 +84,17 @@ class ThePirateBaySe(Content.Content):
# print str(contentList)
return contentList
def open2(self, url=''):
import httplib
conn = httplib.HTTPConnection(self.baseurl)
conn.request("GET", url.replace(self.baseurl,''))
r1 = conn.getresponse()
status = str(r1.status) + " " + r1.reason
content = r1.read()
#print str(status)
#print str(content)
return content
def mode(self, response):
contentList = []
# print str(result)