eric6/WebBrowser/OpenSearch/OpenSearchManager.py

changeset 7269
0c63ea7f94bd
parent 7229
53054eb5b15a
child 7360
9190402e4505
diff -r a28338eaf694 -r 0c63ea7f94bd eric6/WebBrowser/OpenSearch/OpenSearchManager.py
--- a/eric6/WebBrowser/OpenSearch/OpenSearchManager.py	Wed Sep 25 18:48:22 2019 +0200
+++ b/eric6/WebBrowser/OpenSearch/OpenSearchManager.py	Wed Sep 25 18:52:40 2019 +0200
@@ -10,8 +10,9 @@
 
 import os
 
-from PyQt5.QtCore import pyqtSignal, QObject, QUrl, QFile, QDir, QIODevice, \
-    QUrlQuery
+from PyQt5.QtCore import (
+    pyqtSignal, QObject, QUrl, QFile, QDir, QIODevice, QUrlQuery
+)
 from PyQt5.QtWidgets import QLineEdit, QInputDialog
 from PyQt5.QtNetwork import QNetworkRequest, QNetworkReply
 
@@ -409,8 +410,10 @@
         for keyword, engineName in keywords:
             self.__keywords[keyword] = self.engine(engineName)
         
-        if self.__current not in self.__engines and \
-           len(self.__engines) > 0:
+        if (
+            self.__current not in self.__engines and
+            len(self.__engines) > 0
+        ):
             self.__current = list(self.__engines.keys())[0]
         
         self.__loading = False
@@ -424,13 +427,30 @@
         from .DefaultSearchEngines import DefaultSearchEngines_rc
         # __IGNORE_WARNING__
         
-        defaultEngineFiles = ["Amazoncom.xml", "Bing.xml",
-                              "DeEn_Beolingus.xml", "DuckDuckGo.xml",
-                              "Facebook.xml", "Google.xml",
-                              "Google_Im_Feeling_Lucky.xml", "LEO_DeuEng.xml",
-                              "LinuxMagazin.xml", "Reddit.xml", "Wikia.xml",
-                              "Wikia_en.xml", "Wikipedia.xml",
-                              "Wiktionary.xml", "Yahoo.xml", "YouTube.xml", ]
+        defaultEngineFiles = [
+            "Amazoncom.xml",
+            "Bing.xml",
+            "DeEn_Beolingus.xml",
+            "DuckDuckGo.xml",
+            "Facebook.xml",
+            "Google.xml",
+            "Google_Im_Feeling_Lucky.xml",
+            "LEO_DeuEng.xml",
+            "LinuxMagazin.xml",
+            "MetaGer_MetaGer2.xml",
+            "PyPI.xml",
+            "Qwant.xml",
+            "Reddit.xml",
+            "StartPage.xml",
+            "StartPage_en.xml",
+            "Wikia.xml",
+            "Wikia_en.xml",
+            "Wikipedia.xml",
+            "Wiktionary.xml",
+            "Yahoo.xml",
+            "YouTube.xml",
+            "searxme.xml",
+        ]
         # Keep this list in sync with the contents of the resource file.
 
         reader = OpenSearchReader()

eric ide

mercurial