kickass fix

pull/1/head
DiMartinoXBMC 2015-09-26 19:38:48 +03:00
parent ff8725fb34
commit 36bc1c013a
1 changed files with 2 additions and 2 deletions

View File

@ -54,7 +54,7 @@ class KickAssSo(Content.Content):
return True return True
def isSearcher(self): def isSearcher(self):
return False return True
def isScrappable(self): def isScrappable(self):
return False return False
@ -90,7 +90,7 @@ class KickAssSo(Content.Content):
num = 51 num = 51
good_forums = ['TV', 'Anime', 'Movies'] good_forums = ['TV', 'Anime', 'Movies']
regex = '''<tr class=".+?" id=.+?</tr>''' regex = '''<tr class=".+?" id=.+?</tr>'''
regex_tr = r'''title="Download torrent file" href="(.+?\.torrent).+?" class=".+?"><i.+?<a.+?<a.+?<a href="(.+?html)" class=".+?">(.+?)</a>.+? in <span.+?"><strong>.+?">(.+?)</a>.+?<td class="nobr center">(.+?)</td>.+?<td class="center".+?>(\d+&nbsp;.+?)</td>.+?<td class="green center">(\d+?)</td>.+?<td class="red lasttd center">(\d+?)</td>''' regex_tr = r'''title="Download torrent file" href="(.+?)" class=".+?"><i.+?<a.+?<a.+?<a href="(.+?html)" class=".+?">(.+?)</a>.+? in <span.+?"><strong>.+?">(.+?)</a>.+?<td class="nobr center">(.+?)</td>.+?<td class="center".+?>(\d+&nbsp;.+?)</td>.+?<td class="green center">(\d+?)</td>.+?<td class="red lasttd center">(\d+?)</td>'''
for tr in re.compile(regex, re.DOTALL).findall(response): for tr in re.compile(regex, re.DOTALL).findall(response):
result=re.compile(regex_tr, re.DOTALL).findall(tr) result=re.compile(regex_tr, re.DOTALL).findall(tr)
#print str(result) #print str(result)