diff --git a/weboob/backends/aum/browser.py b/weboob/backends/aum/browser.py index 7a415d4c..96be7313 100644 --- a/weboob/backends/aum/browser.py +++ b/weboob/backends/aum/browser.py @@ -67,7 +67,9 @@ class AuMBrowser(BaseBrowser): 'http://www.adopteunmec.com/home.php': HomePage, 'http://www.adopteunmec.com/shop2c.php': ShopPage, 'http://www.adopteunmec.com/mails.php': ContactListPage, + 'http://www.adopteunmec.com/mail.php': ContactListPage, 'http://www.adopteunmec.com/mails.php\?type=1': BasketsPage, + 'http://www.adopteunmec.com/mail.php\?type=1': BasketsPage, 'http://www.adopteunmec.com/thread.php\?id=([0-9]+)(&see=all)?': ContactThreadPage, 'http://www.adopteunmec.com/edit.php\?type=1': EditPhotoPage, 'http://s\d+.adopteunmec.com/upload\d.php\?.*': EditPhotoCbPage, @@ -205,18 +207,18 @@ class AuMBrowser(BaseBrowser): @pageaccess def get_baskets(self): - self.location('/mails.php?type=1') + self.location('/mail.php?type=1') return self.page.get_profiles_ids_list() @pageaccess def flush_visits(self): """ Does nothing, only flush new visits to increase my score """ - self.openurl('/mails.php?type=3') + self.openurl('/mail.php?type=3') @pageaccess def get_threads_list(self): if not self.is_on_page(ContactListPage): - self.location('/mails.php') + self.location('/mail.php') return self.page.get_contact_list() diff --git a/weboob/backends/aum/pages/base.py b/weboob/backends/aum/pages/base.py index 50cb199a..7333ed6e 100644 --- a/weboob/backends/aum/pages/base.py +++ b/weboob/backends/aum/pages/base.py @@ -36,7 +36,7 @@ class PageBase(BasePage): raise AdopteBanned('Your account is blocked. You have to unblock by yourself but we can\'t help you.') def open_contact_list_page(self): - self.browser.follow_link(url_regex=r"/mails.php$") + self.browser.follow_link(url_regex=r"/mail.php$") def open_thread_page(self, id, all_messages=False): if all_messages: