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.
Some files get a "NA" string for the %(upload_date)s variable sometimes. This results in the -w or --no-overwrites flag not working. #2911
Comments
|
Ignoring some part of the templates could become arbitrarily complicated. The Apart from that, can you post the output you get with the |
|
I understand. I checked the behaviour without the I didn't know about the command-line option Also, the 'NA' thing happens sporadically. I can't really say when. If I see it happening though, I'll post the information you requested right here. |
|
I'm also getting NA for the original date using |
|
@5moufl |
|
I updated my previous post. I thought It was happening for every youtube user. |
|
It's happening again, today. It's only happening on YouTube; other websites, like SoundCloud, are not affected. I posted the output here. |
|
Thank you! |
|
Fixed in youtube-dl 2014.05.16.1. Type |
|
The provided fix worked for the Ray William Johnsson channel, but not for The Black Philip Show. I posted the output here. |
|
The webpage uses another format for the upload date, it will be correctly extracted in the next version. |
|
@jaimeMF's changes have made it into youtube-dl 2014.05.17. Type |
|
.16.1 says "youtube-dl is up-to-date (2014.05.16.1)" After patching to .17 "NA" is now a date. Well done. |
|
I just updated to 2014.05.19. It works now. Thank you for providing a fix. |
|
I was hitting my head against wall before reading this post. Since I use youtube-dl through TOR network, I though it should have something to do with my internet connection. Now it is fixed. Thank you for the fixes. |
I'm using
youtube-dlas a client to get the latest episodes from YouTube channels. I'm using the-wflag so that files don't have to be redownloaded every time. I'm using the-oflag with"%(upload_date)s_%(title)s.%(ext)s"as its argument. Sometimes,youtube-dlis unable to get the date from a video. The upload_date string will be replaced by 'NA' and becauseNA_Hottest_New_Jam.mp4differs from20140218_Hottest_New_Jam.mp4, the file will be re-downloaded and I'll get a duplicate file in my video download directory. This is not what I want.Possible bugfix: ignore the upload_date string when comparing filenames if the upload_date string can't be fetched.