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