WebBrowser/VirusTotal/VirusTotalApi.py

branch
QtWebEngine
changeset 4768
57da9217196b
parent 4753
8d2ea02ed785
child 4913
e16573640cb8
diff -r 0bace7c5ebc9 -r 57da9217196b WebBrowser/VirusTotal/VirusTotalApi.py
--- a/WebBrowser/VirusTotal/VirusTotalApi.py	Tue Feb 23 19:07:31 2016 +0100
+++ b/WebBrowser/VirusTotal/VirusTotalApi.py	Tue Feb 23 20:00:40 2016 +0100
@@ -83,7 +83,7 @@
         """
         Private method to load the settings.
         """
-        if Preferences.getHelp("VirusTotalSecure"):
+        if Preferences.getWebBrowser("VirusTotalSecure"):
             protocol = "https"
         else:
             protocol = "http"
@@ -159,7 +159,7 @@
         request.setHeader(QNetworkRequest.ContentTypeHeader,
                           "application/x-www-form-urlencoded")
         params = QByteArray("apikey={0}&url=".format(
-            Preferences.getHelp("VirusTotalServiceKey")).encode("utf-8"))\
+            Preferences.getWebBrowser("VirusTotalServiceKey")).encode("utf-8"))\
             .append(QUrl.toPercentEncoding(url.toString()))
         
         import WebBrowser.WebBrowserWindow
@@ -203,7 +203,7 @@
         request.setHeader(QNetworkRequest.ContentTypeHeader,
                           "application/x-www-form-urlencoded")
         params = QByteArray("apikey={0}&resource={1}".format(
-            Preferences.getHelp("VirusTotalServiceKey"), scanId)
+            Preferences.getWebBrowser("VirusTotalServiceKey"), scanId)
             .encode("utf-8"))
         
         import WebBrowser.WebBrowserWindow
@@ -236,7 +236,7 @@
         request.setHeader(QNetworkRequest.ContentTypeHeader,
                           "application/x-www-form-urlencoded")
         params = QByteArray("apikey={0}&resource={1}".format(
-            Preferences.getHelp("VirusTotalServiceKey"), scanId)
+            Preferences.getWebBrowser("VirusTotalServiceKey"), scanId)
             .encode("utf-8"))
         
         import WebBrowser.WebBrowserWindow
@@ -268,7 +268,7 @@
         self.__lastIP = ipAddress
         
         queryItems = [
-            ("apikey", Preferences.getHelp("VirusTotalServiceKey")),
+            ("apikey", Preferences.getWebBrowser("VirusTotalServiceKey")),
             ("ip", ipAddress),
         ]
         url = QUrl(self.GetIpAddressReportUrl)
@@ -331,7 +331,7 @@
         self.__lastDomain = domain
         
         queryItems = [
-            ("apikey", Preferences.getHelp("VirusTotalServiceKey")),
+            ("apikey", Preferences.getWebBrowser("VirusTotalServiceKey")),
             ("domain", domain),
         ]
         url = QUrl(self.GetDomainReportUrl)

eric ide

mercurial