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.
upload_date not working properly after the new update #5519
Comments
|
Post the full output you get when running with |
|
video 8 is correctly not in range from 9-12 shouldn't be in range.. same as the above because it was uploaded today (24/04/2015) video 13 is correctly in range and already existing in the folder ( youtube-dl -ciw -v -o '%(id)s_N3ws1t_%(upload_date)s_N3ws1t_%(title)s.%(ext)s' --date '20150423' --write-thumbnail --playlist-end 30 ytuser:newsittv ) |
|
I'm experiencing exactly the same behavior with last 3 versions of youtube-dl (current git, 2015.04.17 and 2015.04.09), so nothing has been broken by recent releases. Such behavior happens due to the file timestamp being set from Last-modified HTTP header returned by webserver and not from the |
|
With the previous version I haven't had any problems.. be aware that by previous version I don't mean only of youtube-dl but youtube itself as well.. maybe something has changed there and that's why you are getting the same results with the previous versions (I'm using it to create a feed which I monitor every day, so I know for a fact it was working properly as of 16/04/2015. From 17 it stopped downloading videos then I updated to the newer version and I encountered the upload_date problem) Of course I can give you the full output.. but I don't know how to catch all of it ( too long for the ubuntu shell) here is the start of it |
|
Just to put it differently the timestamp returned by youtube is the actual date and time the upload happened and the ' upload_date ' and/or the ' --date ' attribute of youtube-dl is not working properly for every video |
The parameter %(upload_date)s is not working properly ( It was before the recent update)
If I run:
youtube-dl -ciw -v -o '%(id)s_N3ws1t_%(upload_date)s_N3ws1t_%(title)s.%(ext)s' --date '20150424' --write-thumbnail --playlist-end 30 ytuser:newsittv
I get only the videos uploaded after 12:00 (GMT +2 Athens)
For videos uploaded earlier but on the same day, I have to run:
youtube-dl -ciw -v -o '%(id)s_N3ws1t_%(upload_date)s_N3ws1t_%(title)s.%(ext)s' --date '20150423' --write-thumbnail --playlist-end 30 ytuser:newsittv
I attach a photo of what 'ls -ltr' is showing on the local folder. The attributes of ls are the same with the ones on youtube but " %(upload_date)s " is not