Fix crash on later pages

This commit is contained in:
Michel Roux 2019-12-27 14:53:21 +01:00
parent 0abdfeef57
commit ed5bb667bf

View File

@ -434,7 +434,10 @@ class AnimeUltime(Connector):
sort_type = 'search' sort_type = 'search'
if self.return_type is ConnectorReturn.HISTORY: if self.return_type is ConnectorReturn.HISTORY:
try:
page_date = datetime.now() - timedelta((int(self.page) - 1) * 365 / 12) 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') from_date = page_date.strftime('%m%Y')
sort_type = 'history' sort_type = 'history'