From c7514ff2ffda24c803b5a009af2faacd78b6c2e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?X=C3=A9fir=20Destiny?= Date: Sun, 15 Dec 2019 20:00:17 +0100 Subject: [PATCH] Fix association --- connectors.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/connectors.py b/connectors.py index 9cb1821..1a1fc4c 100644 --- a/connectors.py +++ b/connectors.py @@ -402,7 +402,9 @@ class YggTorrent(Connector): 'seeds': check_seeds, 'leechs': tds[8].string, 'downloads': check_downloads, - 'class': self.color if AnimeLink.query.filter_by(link=quote(url['href'])).first() else '' + 'class': self.color if AnimeLink.query.filter_by( + link=quote(url['href'], '/+:') + ).first() else '' }) self.on_error = False