From 45702b77ca4759043f3b87f24983039f21ba2c32 Mon Sep 17 00:00:00 2001 From: Dalf Date: Sat, 13 Jul 2019 07:57:10 +0200 Subject: [PATCH] embedded iframe (youtube, dailymotion, vimeo): use https --- searx/engines/dailymotion.py | 2 +- searx/engines/vimeo.py | 2 +- searx/engines/youtube_api.py | 2 +- 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 = '' + 'data-src="https://www.dailymotion.com/embed/video/{videoid}" allowfullscreen>' 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 = '' 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 = '' 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 = '' base_youtube_url = 'https://www.youtube.com/watch?v='