From c20ff96deafe4a76a997308c775c186c7cc03bba Mon Sep 17 00:00:00 2001 From: Pierre Nardozi Date: Tue, 18 Aug 2020 18:31:30 +0200 Subject: [PATCH] [amazon] goes back to the subscription page in case we are redirected we can be redirected to the documents page after the login procedure, so we go back to the subscription page --- modules/amazon/browser.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/amazon/browser.py b/modules/amazon/browser.py index 08209c5780..3e2fae7f4a 100644 --- a/modules/amazon/browser.py +++ b/modules/amazon/browser.py @@ -226,6 +226,10 @@ def iter_subscription(self): elif not self.subscriptions.is_here(): self.is_login() + # goes back to the subscription page as you may be redirected to the documents page + if not self.subscriptions.is_here(): + self.location(self.panel.go().get_sub_link()) + yield self.page.get_item() @need_login -- GitLab