eztv and kickass content plot
parent
3cf3a3eaed
commit
6ff737109b
|
@ -70,9 +70,9 @@ class EZTV(Content.Content):
|
||||||
#print str(result)
|
#print str(result)
|
||||||
num = 51
|
num = 51
|
||||||
result = re.compile(
|
result = re.compile(
|
||||||
r'''class="epinfo">(.+?)</a>.+?<a href="(magnet.+?)"''',
|
r'''class="epinfo">(.+?)</a>.+?<a href="(magnet.+?)".+?<td align="center" class="forum_thread_post">(.+?) </td>''',
|
||||||
re.DOTALL).findall(response)
|
re.DOTALL).findall(response)
|
||||||
for title, link in result:
|
for title, link, date in result:
|
||||||
#main
|
#main
|
||||||
info = {}
|
info = {}
|
||||||
num = num - 1
|
num = num - 1
|
||||||
|
@ -83,6 +83,7 @@ class EZTV(Content.Content):
|
||||||
|
|
||||||
info['label'] = info['title'] = title
|
info['label'] = info['title'] = title
|
||||||
info['link'] = link
|
info['link'] = link
|
||||||
|
info['plot'] = info['title']+'\r\nAge: %s' % (date)
|
||||||
|
|
||||||
contentList.append((
|
contentList.append((
|
||||||
int(int(self.sourceWeight) * (int(num))),
|
int(int(self.sourceWeight) * (int(num))),
|
||||||
|
|
|
@ -86,9 +86,9 @@ class KickAssSo(Content.Content):
|
||||||
num = 51
|
num = 51
|
||||||
good_forums=['TV','Anime','Movies']
|
good_forums=['TV','Anime','Movies']
|
||||||
result = re.compile(
|
result = re.compile(
|
||||||
r'''<a title="Download torrent file" href="(.+?)\?.+?" class=".+?"><i.+?<a.+?<a.+?<a href="(.+?html)" class=".+?">(.+?)</a>.+? in <span.+?"><strong>.+?">(.+?)</a>''',
|
r'''<a 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+ .+?)</td>.+?<td class="green center">(\d+?)</td>.+?<td class="red lasttd center">(\d+?)</td>''',
|
||||||
re.DOTALL).findall(response)
|
re.DOTALL).findall(response)
|
||||||
for link,infolink,title,forum in result:
|
for link,infolink,title,forum,size,date,seeds,leechers in result:
|
||||||
#main
|
#main
|
||||||
if forum in good_forums:
|
if forum in good_forums:
|
||||||
info = {}
|
info = {}
|
||||||
|
@ -101,6 +101,9 @@ class KickAssSo(Content.Content):
|
||||||
info['label'] = info['title'] = self.unescape(title)
|
info['label'] = info['title'] = self.unescape(title)
|
||||||
info['link'] = link
|
info['link'] = link
|
||||||
info['infolink']=self.baseurl+infolink
|
info['infolink']=self.baseurl+infolink
|
||||||
|
size = self.unescape(self.stripHtml(size))
|
||||||
|
date=self.unescape(self.stripHtml(date))
|
||||||
|
info['plot'] = info['title']+'\r\n[I](%s) [S/L: %s/%s] [/I]\r\nAge: %s' % (size, seeds, leechers, date)
|
||||||
|
|
||||||
contentList.append((
|
contentList.append((
|
||||||
int(int(self.sourceWeight) * (int(num))),
|
int(int(self.sourceWeight) * (int(num))),
|
||||||
|
|
Loading…
Reference in New Issue