diff --git a/icon_status/error.png b/icon_status/error.png index fb07d6c..f30b0fb 100644 Binary files a/icon_status/error.png and b/icon_status/error.png differ diff --git a/icon_status/notify.png b/icon_status/notify.png index 0dc218f..48cafbd 100644 Binary files a/icon_status/notify.png and b/icon_status/notify.png differ diff --git a/icon_status/original.png b/icon_status/original.png index 18ee26d..2277ac3 100644 Binary files a/icon_status/original.png and b/icon_status/original.png differ diff --git a/icon_status/warning.png b/icon_status/warning.png index 0ab7660..4e6e01d 100755 Binary files a/icon_status/warning.png and b/icon_status/warning.png differ diff --git a/icon_status/withmsg.png b/icon_status/withmsg.png index e5d3979..42fd4bc 100644 Binary files a/icon_status/withmsg.png and b/icon_status/withmsg.png differ diff --git a/src/main.py b/src/main.py index 16b171a..4c2ef5a 100755 --- a/src/main.py +++ b/src/main.py @@ -68,7 +68,7 @@ def __init__(self): # Propriedades gerais self.setWindowTitle(__pagename__) self.setWindowIcon(QIcon(setIcon())) - self.setMinimumSize(800, 600) + self.setMinimumSize(1024, 768) # Definições para a visualização da página do webapp self.view = Browser() @@ -170,7 +170,7 @@ def changeStatusBar(self): def bs(self, htm, parser): res = BeautifulSoup(htm, parser) try: - if not __err__ in res.title and res.findAll('div', {'class': '_26lC3'}): + if not __err__ in res.title and res.findAll('img', {'class': 'gb_wc'}): verifyNotify(self, res) if __err__ in res.title: # Em caso de erro de conexão o título inicial não se altera if self.changeTray != 1: @@ -352,7 +352,8 @@ def externalBrowser(self): if not cap_url: # Garantindo que a variável vai ter o link para abrir cap_url = self.save_url - if cap_url is not None and not 'mail.google.com' in cap_url: + if cap_url is not None and not 'mail.google.com' in cap_url and \ + not 'https://www.google.com.br/intl/pt-BR/about/products' in cap_url: QDesktopServices.openUrl(QUrl(cap_url)) # Abrindo no navegador externo cap_url = None diff --git a/src/notify.py b/src/notify.py index ae15d35..b6ad8c1 100755 --- a/src/notify.py +++ b/src/notify.py @@ -30,8 +30,8 @@ def notifyMessage(self): # Essa função pode variar conforme o webapp. def verifyNotify(self, res): self.soma = 0 - for tag in res.findAll('div', {'class': '_1pJ9J'}): - self.soma += int(tag.getText()) + num = [int(temp) for temp in str(res.findAll('span', {'class': 'nU n1'})[0]).split() if temp.isdigit()] + self.soma = num[0] if self.soma != self.notify and self.soma != 0: self.notify = self.soma # Necessário para mapear alterações no número de notificações