diff options
| author | Adam Tauber <asciimoo@gmail.com> | 2014-09-07 19:12:05 +0200 |
|---|---|---|
| committer | Adam Tauber <asciimoo@gmail.com> | 2014-09-07 19:12:05 +0200 |
| commit | 1e99cf2a0e541a3d2df0104d64fadf955bbccc20 (patch) | |
| tree | a7cb02ab1e19e0f7304b884d88cf838d5a184d1c /searx/engines/yahoo.py | |
| parent | c23db1b2bfb2c9233816fc378927c49b67eeffaf (diff) | |
| parent | a4ffeddce1bc56b0faa548e0485ccd6374c4e9d1 (diff) | |
Merge pull request #93 from dalf/master
yahoo, bing_new and dailymotion fixes
Diffstat (limited to 'searx/engines/yahoo.py')
| -rw-r--r-- | searx/engines/yahoo.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/searx/engines/yahoo.py b/searx/engines/yahoo.py index 3d048186d..5e34a2b07 100644 --- a/searx/engines/yahoo.py +++ b/searx/engines/yahoo.py @@ -40,9 +40,11 @@ def parse_url(url_string): if endpos > -1: endpositions.append(endpos) - end = min(endpositions) - - return unquote(url_string[start:end]) + if start==0 or len(endpositions) == 0: + return url_string + else: + end = min(endpositions) + return unquote(url_string[start:end]) # do search-request |