mirror of
https://github.com/searxng/searxng.git
synced 2025-07-24 13:49:26 +02:00
[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>
This commit is contained in:
parent
f5e8cfade2
commit
7352c6bc79
17 changed files with 31 additions and 31 deletions
|
@ -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,
|
||||
}
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue