From d61d495d5ed18fee27435afe8dc013616bf33d97 Mon Sep 17 00:00:00 2001 From: john Date: Fri, 14 Sep 2018 14:53:36 -0700 Subject: [PATCH] date bug fix --- youtube_dl/extractor/niconico.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dl/extractor/niconico.py b/youtube_dl/extractor/niconico.py index 0ad6479b1..97f8f5737 100644 --- a/youtube_dl/extractor/niconico.py +++ b/youtube_dl/extractor/niconico.py @@ -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 {