1
0
mirror of https://codeberg.org/polarisfm/youtube-dl synced 2024-11-30 04:08:01 +01:00

date bug fix

This commit is contained in:
john 2018-09-14 14:53:36 -07:00
parent 63cc9b4110
commit d61d495d5e

View File

@ -494,7 +494,7 @@ class NicovideoIE(SearchInfoExtractor):
# is a guarantee that the number of pages in the search results will not exceed 50. For any given search for a day, we extract everything available, and move on, until
# finding as many entries as were requested.
currDate -= datetime.timedelta(days=1)
if(len(entries) >= n or currDate < datetime.datetime(2007, 1, 1)):
if(len(entries) >= n or currDate < datetime.date(2007, 1, 1)):
break
return {