Show tried to often error for TD
This commit is contained in:
1 parent
6dcb3f3bf2
commit
11b9bc39ab
1 file changed
+5
@@ -1,3 +1,4 @@
|
|||||||
|
import re
|
||||||
from couchpotato.core.helpers.variable import tryInt
|
from couchpotato.core.helpers.variable import tryInt
|
||||||
from couchpotato.core.logger import CPLog
|
from couchpotato.core.logger import CPLog
|
||||||
from couchpotato.core.media._base.providers.torrent.base import TorrentProvider
|
from couchpotato.core.media._base.providers.torrent.base import TorrentProvider
|
||||||
@@ -55,6 +56,10 @@ class Base(TorrentProvider):
|
|||||||
}
|
}
|
||||||
|
|
||||||
def loginSuccess(self, output):
|
def loginSuccess(self, output):
|
||||||
|
often = re.search('You tried too often, please wait .*</div>', output)
|
||||||
|
if often:
|
||||||
|
raise Exception(often.group(0)[:-6].strip())
|
||||||
|
|
||||||
return 'Password not correct' not in output
|
return 'Password not correct' not in output
|
||||||
|
|
||||||
def loginCheckSuccess(self, output):
|
def loginCheckSuccess(self, output):
|
||||||
|
|||||||
Reference in new issue
Block a user