on master help sign in
embedded iframe (youtube, dailymotion, vimeo): use https
45702b7Dalf
searx/engines/dailymotion.py+1−1
@@ -26,7 +26,7 @@ language_support = True
26# see http://www.dailymotion.com/doc/api/obj-video.html
26# see http://www.dailymotion.com/doc/api/obj-video.html
27search_url = 'https://api.dailymotion.com/videos?fields=created_time,title,description,duration,url,thumbnail_360_url,id&sort=relevance&limit=5&page={pageno}&{query}' # noqa
27search_url = 'https://api.dailymotion.com/videos?fields=created_time,title,description,duration,url,thumbnail_360_url,id&sort=relevance&limit=5&page={pageno}&{query}' # noqa
28embedded_url = '<iframe frameborder="0" width="540" height="304" ' +\
28embedded_url = '<iframe frameborder="0" width="540" height="304" ' +\
29− 'data-src="//www.dailymotion.com/embed/video/{videoid}" allowfullscreen></iframe>'
29+ 'data-src="https://www.dailymotion.com/embed/video/{videoid}" allowfullscreen></iframe>'
30
30
31supported_languages_url = 'https://api.dailymotion.com/languages'
31supported_languages_url = 'https://api.dailymotion.com/languages'
32
32
searx/engines/vimeo.py+1−1
@@ -24,7 +24,7 @@ paging = True
24base_url = 'https://vimeo.com/'
24base_url = 'https://vimeo.com/'
25search_url = base_url + '/search/page:{pageno}?{query}'
25search_url = base_url + '/search/page:{pageno}?{query}'
26
26
27−embedded_url = '<iframe data-src="//player.vimeo.com/video/{videoid}" ' +\
27+embedded_url = '<iframe data-src="https://player.vimeo.com/video/{videoid}" ' +\
28 'width="540" height="304" frameborder="0" ' +\
28 'width="540" height="304" frameborder="0" ' +\
29 'webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>'
29 'webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>'
30
30
searx/engines/youtube_api.py+1−1
@@ -23,7 +23,7 @@ base_url = 'https://www.googleapis.com/youtube/v3/search'
23search_url = base_url + '?part=snippet&{query}&maxResults=20&key={api_key}'
23search_url = base_url + '?part=snippet&{query}&maxResults=20&key={api_key}'
24
24
25embedded_url = '<iframe width="540" height="304" ' +\
25embedded_url = '<iframe width="540" height="304" ' +\
26− 'data-src="//www.youtube-nocookie.com/embed/{videoid}" ' +\
26+ 'data-src="https://www.youtube-nocookie.com/embed/{videoid}" ' +\
27 'frameborder="0" allowfullscreen></iframe>'
27 'frameborder="0" allowfullscreen></iframe>'
28
28
29base_youtube_url = 'https://www.youtube.com/watch?v='
29base_youtube_url = 'https://www.youtube.com/watch?v='
searx/engines/youtube_noapi.py+1−1
@@ -30,7 +30,7 @@ time_range_dict = {'day': 'Ag',
30 'year': 'BQ'}
30 'year': 'BQ'}
31
31
32embedded_url = '<iframe width="540" height="304" ' +\
32embedded_url = '<iframe width="540" height="304" ' +\
33− 'data-src="//www.youtube-nocookie.com/embed/{videoid}" ' +\
33+ 'data-src="https://www.youtube-nocookie.com/embed/{videoid}" ' +\
34 'frameborder="0" allowfullscreen></iframe>'
34 'frameborder="0" allowfullscreen></iframe>'
35
35
36base_youtube_url = 'https://www.youtube.com/watch?v='
36base_youtube_url = 'https://www.youtube.com/watch?v='