summaryrefslogtreecommitdiff
path: root/searx/engines/youtube_noapi.py
diff options
context:
space:
mode:
authorAdam Tauber <asciimoo@gmail.com>2016-12-12 10:06:43 +0100
committerGitHub <noreply@github.com>2016-12-12 10:06:43 +0100
commite58949b76fac7aa93341523ff0e2f35e0a03e057 (patch)
tree82f90b1e406ffda0276d2918b1b86c3589e50012 /searx/engines/youtube_noapi.py
parent6b6007fc78f47099d84099c6d6c23e2cd213b82f (diff)
parentb034356825420507c9fb7ee2dc100676a88cf6c7 (diff)
Merge pull request #783 from kvch/time-range-search-year
add year support to engines which support it
Diffstat (limited to 'searx/engines/youtube_noapi.py')
-rw-r--r--searx/engines/youtube_noapi.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/searx/engines/youtube_noapi.py b/searx/engines/youtube_noapi.py
index b33594465..9b7ca64c8 100644
--- a/searx/engines/youtube_noapi.py
+++ b/searx/engines/youtube_noapi.py
@@ -25,7 +25,8 @@ search_url = base_url + '?search_query={query}&page={page}'
time_range_url = '&sp=EgII{time_range}%253D%253D'
time_range_dict = {'day': 'Ag',
'week': 'Aw',
- 'month': 'BA'}
+ 'month': 'BA',
+ 'year': 'BQ'}
embedded_url = '<iframe width="540" height="304" ' +\
'data-src="//www.youtube-nocookie.com/embed/{videoid}" ' +\