From 11b9bc39abac6e47f6565814954d060e0291bf2b Mon Sep 17 00:00:00 2001 From: Ruud Date: Tue, 10 Feb 2015 15:40:55 +0100 Subject: [PATCH] Show tried to often error for TD --- couchpotato/core/media/_base/providers/torrent/torrentday.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/couchpotato/core/media/_base/providers/torrent/torrentday.py b/couchpotato/core/media/_base/providers/torrent/torrentday.py index 57224ffe..73014339 100644 --- a/couchpotato/core/media/_base/providers/torrent/torrentday.py +++ b/couchpotato/core/media/_base/providers/torrent/torrentday.py @@ -1,3 +1,4 @@ +import re from couchpotato.core.helpers.variable import tryInt from couchpotato.core.logger import CPLog from couchpotato.core.media._base.providers.torrent.base import TorrentProvider @@ -55,6 +56,10 @@ class Base(TorrentProvider): } def loginSuccess(self, output): + often = re.search('You tried too often, please wait .*', output) + if often: + raise Exception(often.group(0)[:-6].strip()) + return 'Password not correct' not in output def loginCheckSuccess(self, output):