1
0
mirror of https://github.com/l1ving/youtube-dl synced 2026-05-28 02:51:18 +08:00

date bug fix

This commit is contained in:
john
2018-09-14 14:53:36 -07:00
Unverified
parent 63cc9b4110
commit d61d495d5e
+1 -1
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 {