Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
[Noco] invalid date format (year=999 / day is out of range for month) #5826
Comments
|
Could you add the |
|
Sure. It resulted in 7 .dump files. One of them has 3 interesting JSON elements: Indeed, 0999 is before UNIX epoch. Here the dumps: |
|
Sorry for the delay. Currently I simply ignore invalid date. If you have a method to get the correct date of this video, feel free to open a new issue. @dstftw From the git log the original Noco extractor is written by you. Could you have a look? |
Happens on some, older, videos: youtube-dl fails to download and outputs:
ValueError: year=999 is before 1900; the datetime strftime() methods require year >= 1900Error is slightly different with Python3:
ValueError: day is out of range for monthMetadata on Noco may be incomplete or faulty, requires youtube-dl a workaround (ignoring date information from the JSON if invalid ?). May not be easy to reproduce and debug since Noco requires subscription, and browsing the oldest videos from NolifeTV (like "Hidden Palace" 01, 02, 03..).
Full output, Python2 on Ubuntu:
Full output, Python3 on Arch: