From 4f6b31d14ac2c1e29c97cc5eb2e08fd8067f6759 Mon Sep 17 00:00:00 2001 From: Ruud Date: Tue, 16 Apr 2013 21:15:38 +0200 Subject: [PATCH] Add login check to torrentleech. closes #1635 --- couchpotato/core/providers/torrent/torrentleech/main.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/couchpotato/core/providers/torrent/torrentleech/main.py b/couchpotato/core/providers/torrent/torrentleech/main.py index 6de18fbd..4247c530 100644 --- a/couchpotato/core/providers/torrent/torrentleech/main.py +++ b/couchpotato/core/providers/torrent/torrentleech/main.py @@ -74,3 +74,6 @@ class TorrentLeech(TorrentProvider): 'remember_me': 'on', 'login': 'submit', }) + + def loginSuccess(self, output): + return '/user/account/logout' in output.lower() or 'welcome back' in output.lower()