Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
searx-engine
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gargantext
searx-engine
Commits
45702b77
Commit
45702b77
authored
Jul 13, 2019
by
Dalf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
embedded iframe (youtube, dailymotion, vimeo): use https
parent
609ac579
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
4 deletions
+4
-4
dailymotion.py
searx/engines/dailymotion.py
+1
-1
vimeo.py
searx/engines/vimeo.py
+1
-1
youtube_api.py
searx/engines/youtube_api.py
+1
-1
youtube_noapi.py
searx/engines/youtube_noapi.py
+1
-1
No files found.
searx/engines/dailymotion.py
View file @
45702b77
...
...
@@ -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'
...
...
searx/engines/vimeo.py
View file @
45702b77
...
...
@@ -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>'
...
...
searx/engines/youtube_api.py
View file @
45702b77
...
...
@@ -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='
...
...
searx/engines/youtube_noapi.py
View file @
45702b77
...
...
@@ -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='
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment