@@ -13,6 +13,7 @@ from cgi import escape
1313from urllib import quote
1414from lxml import html
1515from operator import itemgetter
16+from dateutil import parser
1617
1718# engine dependent config
1819categories = ['videos', 'music', 'files']
@@ -52,7 +53,7 @@ def response(resp):
5253 link = result.xpath('.//a[@class="cellMainLink"]')[0]
5354 href = urljoin(url, link.attrib['href'])
5455 title = ' '.join(link.xpath('.//text()'))
55− #content = escape(' '.join(result.xpath(content_xpath)))
56+ content = escape(html.tostring(result.xpath('.//span[@class="font11px lightgrey block"]')[0], method="text"))
5657 seed = result.xpath('.//td[contains(@class, "green")]/text()')[0]
5758 leech = result.xpath('.//td[contains(@class, "red")]/text()')[0]
5859
@@ -73,7 +74,7 @@ def response(resp):
7374 # append result
7475 results.append({'url': href,
7576 'title': title,
76− 'content': '',
77+ 'content': content,
7778 'seed': seed,
7879 'leech': leech,
7980 'magnetlink': magnetlink,