diff options
author | Dalf <alex@al-f.net> | 2019-07-13 07:57:10 +0200 |
---|---|---|
committer | Dalf <alex@al-f.net> | 2019-07-13 15:49:59 +0200 |
commit | 45702b77ca4759043f3b87f24983039f21ba2c32 (patch) | |
tree | 14c27be89360b938264033658070589bc5539a30 /searx | |
parent | 609ac5795ab16ab8a80a89feb54a9e23d4dec725 (diff) | |
download | searxng-45702b77ca4759043f3b87f24983039f21ba2c32.tar.gz searxng-45702b77ca4759043f3b87f24983039f21ba2c32.zip |
embedded iframe (youtube, dailymotion, vimeo): use https
Diffstat (limited to 'searx')
-rw-r--r-- | searx/engines/dailymotion.py | 2 | ||||
-rw-r--r-- | searx/engines/vimeo.py | 2 | ||||
-rw-r--r-- | searx/engines/youtube_api.py | 2 | ||||
-rw-r--r-- | searx/engines/youtube_noapi.py | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/searx/engines/dailymotion.py b/searx/engines/dailymotion.py index 06a9c41f3..069aceaa3 100644 --- a/searx/engines/dailymotion.py +++ b/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' diff --git a/searx/engines/vimeo.py b/searx/engines/vimeo.py index 1408be8df..a92271019 100644 --- a/searx/engines/vimeo.py +++ b/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>' diff --git a/searx/engines/youtube_api.py b/searx/engines/youtube_api.py index 6de18aa2c..bc4c0d58e 100644 --- a/searx/engines/youtube_api.py +++ b/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=' diff --git a/searx/engines/youtube_noapi.py b/searx/engines/youtube_noapi.py index 3bf25932b..53a10bf35 100644 --- a/searx/engines/youtube_noapi.py +++ b/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=' |