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
|
@ -24,7 +24,7 @@ paging = True
|
|||
# search-url
|
||||
url = 'https://api.mixcloud.com/'
|
||||
search_url = url + 'search/?{query}&type=cloudcast&limit=10&offset={offset}'
|
||||
data_src = "https://www.mixcloud.com/widget/iframe/?feed={url}"
|
||||
iframe_src = "https://www.mixcloud.com/widget/iframe/?feed={url}"
|
||||
|
||||
# do search-request
|
||||
def request(query, params):
|
||||
|
@ -53,7 +53,7 @@ def response(resp):
|
|||
{
|
||||
'url': url,
|
||||
'title': title,
|
||||
'data_src': data_src.format(url=url),
|
||||
'iframe_src': iframe_src.format(url=url),
|
||||
'publishedDate': publishedDate,
|
||||
'content': content,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue