diff options
| author | Adam Tauber <asciimoo@gmail.com> | 2015-01-01 14:10:59 +0100 |
|---|---|---|
| committer | Adam Tauber <asciimoo@gmail.com> | 2015-01-01 14:10:59 +0100 |
| commit | 469e08881ee17d8a180d0c0741c1552a29108f0e (patch) | |
| tree | 59db47065d54fdde5576babc19155f128359386f /searx/engines/subtitleseeker.py | |
| parent | c7cbd38fcc60601dd3b41df8a3a234c079f5dc0b (diff) | |
| parent | 5d977056f7aa216eae09a22c3baaff73546f6ff1 (diff) | |
Merge pull request #165 from Cqoicebordel/Moar-engines
Moar engines
Diffstat (limited to 'searx/engines/subtitleseeker.py')
| -rw-r--r-- | searx/engines/subtitleseeker.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/searx/engines/subtitleseeker.py b/searx/engines/subtitleseeker.py index 2f1636f59..c413dcf26 100644 --- a/searx/engines/subtitleseeker.py +++ b/searx/engines/subtitleseeker.py @@ -60,10 +60,14 @@ def response(resp): content = result.xpath('.//div[contains(@class,"red")]//text()')[0] content = content + " - " - content = content + html.tostring(result.xpath('.//div[contains(@class,"grey-web")]')[0], method='text') + text = result.xpath('.//div[contains(@class,"grey-web")]')[0] + content = content + html.tostring(text, method='text') if result.xpath(".//span") != []: - content = content + " - (" + result.xpath(".//span//text()")[0].strip() + ")" + content = content +\ + " - (" +\ + result.xpath(".//span//text()")[0].strip() +\ + ")" # append result results.append({'url': href, |