Browse Source

embedded iframe (youtube, dailymotion, vimeo): use https

Dalf 5 years ago
parent
commit
45702b77ca

+ 1 - 1
searx/engines/dailymotion.py

@@ -26,7 +26,7 @@ language_support = True
 # see http://www.dailymotion.com/doc/api/obj-video.html
 search_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
 embedded_url = '<iframe frameborder="0" width="540" height="304" ' +\
-    'data-src="//www.dailymotion.com/embed/video/{videoid}" allowfullscreen></iframe>'
+    'data-src="https://www.dailymotion.com/embed/video/{videoid}" allowfullscreen></iframe>'
 
 supported_languages_url = 'https://api.dailymotion.com/languages'
 

+ 1 - 1
searx/engines/vimeo.py

@@ -24,7 +24,7 @@ paging = True
 base_url = 'https://vimeo.com/'
 search_url = base_url + '/search/page:{pageno}?{query}'
 
-embedded_url = '<iframe data-src="//player.vimeo.com/video/{videoid}" ' +\
+embedded_url = '<iframe data-src="https://player.vimeo.com/video/{videoid}" ' +\
     'width="540" height="304" frameborder="0" ' +\
     'webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>'
 

+ 1 - 1
searx/engines/youtube_api.py

@@ -23,7 +23,7 @@ base_url = 'https://www.googleapis.com/youtube/v3/search'
 search_url = base_url + '?part=snippet&{query}&maxResults=20&key={api_key}'
 
 embedded_url = '<iframe width="540" height="304" ' +\
-    'data-src="//www.youtube-nocookie.com/embed/{videoid}" ' +\
+    'data-src="https://www.youtube-nocookie.com/embed/{videoid}" ' +\
     'frameborder="0" allowfullscreen></iframe>'
 
 base_youtube_url = 'https://www.youtube.com/watch?v='

+ 1 - 1
searx/engines/youtube_noapi.py

@@ -30,7 +30,7 @@ time_range_dict = {'day': 'Ag',
                    'year': 'BQ'}
 
 embedded_url = '<iframe width="540" height="304" ' +\
-    'data-src="//www.youtube-nocookie.com/embed/{videoid}" ' +\
+    'data-src="https://www.youtube-nocookie.com/embed/{videoid}" ' +\
     'frameborder="0" allowfullscreen></iframe>'
 
 base_youtube_url = 'https://www.youtube.com/watch?v='