|
@@ -16,6 +16,8 @@ from lxml import html
|
16
|
16
|
categories = ['videos']
|
17
|
17
|
paging = True
|
18
|
18
|
|
|
19
|
+language = ""
|
|
20
|
+
|
19
|
21
|
|
20
|
22
|
url = 'http://www.subtitleseeker.com/'
|
21
|
23
|
search_url = url+'search/TITLES/{query}&p={pageno}'
|
|
@@ -41,6 +43,10 @@ def response(resp):
|
41
|
43
|
for result in dom.xpath(results_xpath):
|
42
|
44
|
link = result.xpath(".//a")[0]
|
43
|
45
|
href = link.attrib.get('href')
|
|
46
|
+
|
|
47
|
+ if language is not "":
|
|
48
|
+ href = href + language + "/"
|
|
49
|
+
|
44
|
50
|
title = escape(link.xpath(".//text()")[0])
|
45
|
51
|
|
46
|
52
|
content = result.xpath('.//div[contains(@class,"red")]//text()')[0]
|