diff options
| author | Alexandre Flament <alex@al-f.net> | 2022-02-18 20:55:40 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-02-18 20:55:40 +0100 |
| commit | bf2a2ed48faf511a609d3b084b02066d69549015 (patch) | |
| tree | 5f916297681efb4b0b213e2ce8a01b0c0e3a3541 /searx/engines/vimeo.py | |
| parent | c81b46150ec12b7d936fb218f447e1651826ff2a (diff) | |
| parent | 761885682d45b8a27c92eaec8ba769b03c22c9b1 (diff) | |
Merge pull request #882 from return42/fix-873
[fix] replace embedded HTML by data_src
Diffstat (limited to 'searx/engines/vimeo.py')
| -rw-r--r-- | searx/engines/vimeo.py | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/searx/engines/vimeo.py b/searx/engines/vimeo.py index 52d201eac..2449345e6 100644 --- a/searx/engines/vimeo.py +++ b/searx/engines/vimeo.py @@ -25,12 +25,6 @@ paging = True base_url = 'https://vimeo.com/' search_url = base_url + '/search/page:{pageno}?{query}' -embedded_url = ( - '<iframe data-src="https://player.vimeo.com/video/{videoid}" ' - + 'width="540" height="304" frameborder="0" ' - + 'webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>' -) - # do search-request def request(query, params): @@ -54,7 +48,6 @@ def response(resp): title = result['name'] thumbnail = result['pictures']['sizes'][-1]['link'] publishedDate = parser.parse(result['created_time']) - embedded = embedded_url.format(videoid=videoid) # append result results.append( @@ -64,7 +57,7 @@ def response(resp): 'content': '', 'template': 'videos.html', 'publishedDate': publishedDate, - 'embedded': embedded, + 'iframe_src': "https://player.vimeo.com/video/" + videoid, 'thumbnail': thumbnail, } ) |