Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6848895c authored by Israel Yago Pereira's avatar Israel Yago Pereira Committed by Arnau Vàzquez
Browse files

Retry when request fail; Updated default list of search engines

parent 43382aea
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -229,7 +229,7 @@ def initialize(settings_engines=None, settings_outgoing=None):
        # from https://github.com/psf/requests/blob/8c211a96cdbe9fe320d63d9e1ae15c5c07e179f8/requests/models.py#L55
        'max_redirects': settings_outgoing.get('max_redirects', 30),
        #
        'retries': settings_outgoing.get('retries', 0),
        'retries': settings_outgoing.get('retries', 3),
        'retry_on_http_error': None,
    }

+2 −4
Original line number Diff line number Diff line
@@ -241,7 +241,6 @@ engines:
  - name : bing
    engine : bing
    shortcut : bi
    disabled : True

  - name : bing images
    engine : bing_images
@@ -555,7 +554,6 @@ engines:
  - name : google
    engine : google
    shortcut : go
    disabled : True
    use_mobile_ui: false
    # additional_tests:
    #   android: *test_android
@@ -992,7 +990,6 @@ engines:
    engine : qwant
    shortcut : qw
    categories : general
    disabled : True
    additional_tests:
      rosebud: *test_rosebud

@@ -1498,13 +1495,13 @@ engines:
    shortcut: nvr
    engine: xpath
    paging : True
    disabled : True
    search_url : https://search.naver.com/search.naver?where=webkr&sm=osp_hty&ie=UTF-8&query={query}&start={pageno}
    url_xpath : //a[@class="link_tit"]/@href
    title_xpath : //a[@class="link_tit"]
    content_xpath : //a[@class="total_dsc"]/div
    first_page_num : 1
    page_size : 10
    disabled : True
    about:
      website: https://www.naver.com/
      wikidata_id: Q485639
@@ -1618,6 +1615,7 @@ engines:
    shortcut: brave
    engine: xpath
    paging: false
    disabled: True
    search_url: https://search.brave.com/search?q={query}
    url_xpath: //div[@class="snippet fdb"]/a/@href
    title_xpath: //span[@class="snippet-title"]