summaryrefslogtreecommitdiff
path: root/searx/engines/subtitleseeker.py
diff options
context:
space:
mode:
authorCqoicebordel <Cqoicebordel@users.noreply.github.com>2014-12-23 01:45:39 +0100
committerCqoicebordel <Cqoicebordel@users.noreply.github.com>2014-12-23 01:45:39 +0100
commit2ea55b1c6451e77381bd88dd82f635d48ff1b6fe (patch)
treedeb481ca197bccbb69bb07cb33cae4b4faea3c04 /searx/engines/subtitleseeker.py
parent829948b85df0510e331372bcd60cb31db9c96a5c (diff)
downloadsearxng-2ea55b1c6451e77381bd88dd82f635d48ff1b6fe.tar.gz
searxng-2ea55b1c6451e77381bd88dd82f635d48ff1b6fe.zip
Add language support
Allow the user to select a language. It must be written in english, and capitalized, ie : English, French, German, Hungarian... (reverted from commit 829948b85df0510e331372bcd60cb31db9c96a5c)
Diffstat (limited to 'searx/engines/subtitleseeker.py')
-rw-r--r--searx/engines/subtitleseeker.py6
1 files changed, 0 insertions, 6 deletions
diff --git a/searx/engines/subtitleseeker.py b/searx/engines/subtitleseeker.py
index c72f81899..346298300 100644
--- a/searx/engines/subtitleseeker.py
+++ b/searx/engines/subtitleseeker.py
@@ -16,8 +16,6 @@ from lxml import html
categories = ['videos']
paging = True
-language = ""
-
# search-url
url = 'http://www.subtitleseeker.com/'
search_url = url+'search/TITLES/{query}&p={pageno}'
@@ -43,10 +41,6 @@ def response(resp):
for result in dom.xpath(results_xpath):
link = result.xpath(".//a")[0]
href = link.attrib.get('href')
-
- if language is not "":
- href = href + language + "/"
-
title = escape(link.xpath(".//text()")[0])
content = result.xpath('.//div[contains(@class,"red")]//text()')[0]