From bc2f4700bae30591d98542a89f6b0715fa4d483c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?X=C3=A9fir=20Destiny?= Date: Sun, 15 Dec 2019 19:48:34 +0100 Subject: [PATCH] Fix align (i hope) --- connectors.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/connectors.py b/connectors.py index 7ace34d..e63364f 100644 --- a/connectors.py +++ b/connectors.py @@ -6,6 +6,7 @@ from enum import Enum from functools import wraps from subprocess import run from sys import platform +from urllib.parse import quote import requests from bs4 import BeautifulSoup @@ -332,8 +333,8 @@ class Pantsu(Connector): 'seeds': check_seeds, 'leechs': tds[5].string, 'downloads': check_downloads, - 'class': self.color if AnimeLink.query.filter_by(link=href).first() else 'is-%s' % - tr['class'][0] + 'class': self.color if AnimeLink.query.filter_by(link=quote(href)).first() else 'is-%s' % + tr['class'][0] }) self.on_error = False