on master help sign in
embedded iframe (youtube, dailymotion, vimeo): use https
commit45702b77ca4759043f3b87f24983039f21ba2c32 authorDalf <alex@al-f.net> dateSat 13 Jul 2019, 07:57 (7 years ago) parent609ac57
4 files changed+4−4
searx/engines/dailymotion.py+1−1 searx/engines/vimeo.py+1−1 searx/engines/youtube_api.py+1−1 searx/engines/youtube_noapi.py+1−1
searx/engines/dailymotion.py+1−1
@@ -26,7 +26,7 @@ language_support = True
2626# see http://www.dailymotion.com/doc/api/obj-video.html
2727search_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
2828embedded_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>'
3030
3131supported_languages_url = 'https://api.dailymotion.com/languages'
3232
searx/engines/vimeo.py+1−1
@@ -24,7 +24,7 @@ paging = True
2424base_url = 'https://vimeo.com/'
2525search_url = base_url + '/search/page:{pageno}?{query}'
2626
27−embedded_url = '<iframe data-src="//player.vimeo.com/video/{videoid}" ' +\
27+embedded_url = '<iframe data-src="https://player.vimeo.com/video/{videoid}" ' +\
2828 'width="540" height="304" frameborder="0" ' +\
2929 'webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>'
3030
searx/engines/youtube_api.py+1−1
@@ -23,7 +23,7 @@ base_url = 'https://www.googleapis.com/youtube/v3/search'
2323search_url = base_url + '?part=snippet&{query}&maxResults=20&key={api_key}'
2424
2525embedded_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}" ' +\
2727 'frameborder="0" allowfullscreen></iframe>'
2828
2929base_youtube_url = 'https://www.youtube.com/watch?v='
searx/engines/youtube_noapi.py+1−1
@@ -30,7 +30,7 @@ time_range_dict = {'day': 'Ag',
3030 'year': 'BQ'}
3131
3232embedded_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}" ' +\
3434 'frameborder="0" allowfullscreen></iframe>'
3535
3636base_youtube_url = 'https://www.youtube.com/watch?v='