diff options
author | Markus Heiser <markus.heiser@darmarit.de> | 2022-02-13 16:12:46 +0100 |
---|---|---|
committer | Markus Heiser <markus.heiser@darmarit.de> | 2022-02-18 19:00:49 +0100 |
commit | 7352c6bc79dacd501d3059e4e3995e9acf4ce456 (patch) | |
tree | 42b89f82a598914e18df0d69acde1a45adabc7b4 /searx/engines/youtube_noapi.py | |
parent | f5e8cfade200fb7b7b2aace255d90c72dcc5bc37 (diff) | |
download | searxng-7352c6bc79dacd501d3059e4e3995e9acf4ce456.tar.gz searxng-7352c6bc79dacd501d3059e4e3995e9acf4ce456.zip |
[mod] templates: rename field for <iframe> URL to iframe_src
Rename result field data_src to iframe_src
Suggested-by: @dalf https://github.com/searxng/searxng/pull/882#issuecomment-1037997402
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'searx/engines/youtube_noapi.py')
-rw-r--r-- | searx/engines/youtube_noapi.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/searx/engines/youtube_noapi.py b/searx/engines/youtube_noapi.py index dff8e0a52..406314684 100644 --- a/searx/engines/youtube_noapi.py +++ b/searx/engines/youtube_noapi.py @@ -85,7 +85,7 @@ def parse_next_page_response(response_text): 'author': section['ownerText']['runs'][0]['text'], 'length': section['lengthText']['simpleText'], 'template': 'videos.html', - 'data_src': 'https://www.youtube-nocookie.com/embed/' + section['videoId'], + 'iframe_src': 'https://www.youtube-nocookie.com/embed/' + section['videoId'], 'thumbnail': section['thumbnail']['thumbnails'][-1]['url'], } ) @@ -156,7 +156,7 @@ def parse_first_page_response(response_text): 'author': author, 'length': length, 'template': 'videos.html', - 'data_src': 'https://www.youtube-nocookie.com/embed/' + videoid, + 'iframe_src': 'https://www.youtube-nocookie.com/embed/' + videoid, 'thumbnail': thumbnail, } ) |