From b2b396bf17b1dfb527aa300d857a0caddf8ff3f6 Mon Sep 17 00:00:00 2001 From: Arsecroft Date: Sun, 9 Dec 2012 20:56:14 -0500 Subject: [PATCH] Fixed PtP provider login as per link included http://passthepopcorn.me/forums.php?action=viewthread&threadid=15602&post=68#post535328 --- couchpotato/core/providers/torrent/passthepopcorn/__init__.py | 4 ++++ couchpotato/core/providers/torrent/passthepopcorn/main.py | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/couchpotato/core/providers/torrent/passthepopcorn/__init__.py b/couchpotato/core/providers/torrent/passthepopcorn/__init__.py index 507c1042..3291c9cd 100644 --- a/couchpotato/core/providers/torrent/passthepopcorn/__init__.py +++ b/couchpotato/core/providers/torrent/passthepopcorn/__init__.py @@ -31,6 +31,10 @@ config = [{ 'name': 'password', 'default': '', 'type': 'password', + }, + { + 'name': 'passkey', + 'default': '', } ], } diff --git a/couchpotato/core/providers/torrent/passthepopcorn/main.py b/couchpotato/core/providers/torrent/passthepopcorn/main.py index f9416f74..80af1ed6 100644 --- a/couchpotato/core/providers/torrent/passthepopcorn/main.py +++ b/couchpotato/core/providers/torrent/passthepopcorn/main.py @@ -21,7 +21,7 @@ class PassThePopcorn(TorrentProvider): 'domain': 'https://tls.passthepopcorn.me', 'detail': 'https://tls.passthepopcorn.me/torrents.php?torrentid=%s', 'torrent': 'https://tls.passthepopcorn.me/torrents.php', - 'login': 'https://tls.passthepopcorn.me/login.php', + 'login': 'https://tls.passthepopcorn.me/ajax.php?action=login', 'search': 'https://tls.passthepopcorn.me/search/%s/0/7/%d' } @@ -249,6 +249,7 @@ class PassThePopcorn(TorrentProvider): return tryUrlencode({ 'username': self.conf('username'), 'password': self.conf('password'), + 'passkey': self.conf('passkey'), 'keeplogged': '1', 'login': 'Login' })