From ed5bb667bf642fc3992eda4d50b48d7faf215386 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?X=C3=A9fir=20Destiny?= Date: Fri, 27 Dec 2019 14:53:21 +0100 Subject: [PATCH] Fix crash on later pages --- connectors.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/connectors.py b/connectors.py index fc8b5fd..d536d51 100644 --- a/connectors.py +++ b/connectors.py @@ -434,7 +434,10 @@ class AnimeUltime(Connector): sort_type = 'search' if self.return_type is ConnectorReturn.HISTORY: - page_date = datetime.now() - timedelta((int(self.page) - 1) * 365 / 12) + try: + page_date = datetime.now() - timedelta((int(self.page) - 1) * 365 / 12) + except OverflowError: + page_date = datetime.fromtimestamp(0) from_date = page_date.strftime('%m%Y') sort_type = 'history'