From 62d8935e01e8da6337dc0ed2965396cd9b367079 Mon Sep 17 00:00:00 2001 From: pau sch Date: Thu, 14 Jul 2022 14:47:26 +0200 Subject: [PATCH] fixed linting issues and updated brand env --- searx/engines/derpibooru.py | 6 +++--- utils/brand.env | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/searx/engines/derpibooru.py b/searx/engines/derpibooru.py index 9049cd189..8768cf353 100644 --- a/searx/engines/derpibooru.py +++ b/searx/engines/derpibooru.py @@ -4,7 +4,7 @@ Derpibooru (Images) """ -from urllib.parse import urlencode, urlparse, urlunparse, parse_qsl +from urllib.parse import urlencode from json import loads # about @@ -43,8 +43,8 @@ def response(resp): { 'template': 'images.html', 'url': 'https://derpibooru.org/images/' + result.get('id'), - 'thumbnail_src': result.get(['representations']['thumb']), - 'img_src': result.get(['representations']['full']), + 'thumbnail_src': result.get(result['representations']['thumb']), + 'img_src': result.get(result['representations']['full']), 'title': result.get('name') or 'unknown', 'content': result.get('description') or '', } diff --git a/utils/brand.env b/utils/brand.env index 31afce53c..184d1da5e 100644 --- a/utils/brand.env +++ b/utils/brand.env @@ -1,5 +1,5 @@ export SEARXNG_URL='' export SEARXNG_PORT='8888' export SEARXNG_BIND_ADDRESS='127.0.0.1' -export GIT_URL='https://github.com/searxng/searxng' +export GIT_URL='https://github.com/Fauli1221/PonySearch' export GIT_BRANCH='master'