Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

upload_date not working properly after the new update #5519

Closed
y0ttahertz opened this issue Apr 24, 2015 · 5 comments
Closed

upload_date not working properly after the new update #5519

y0ttahertz opened this issue Apr 24, 2015 · 5 comments

Comments

@y0ttahertz
Copy link

@y0ttahertz y0ttahertz commented Apr 24, 2015

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

bug

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Apr 24, 2015

Post the full output you get when running with --verbose option.

@y0ttahertz
Copy link
Author

@y0ttahertz y0ttahertz commented Apr 24, 2015

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

bug_ver

( 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 )

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Apr 24, 2015

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 upload_date field (modifying file timestamp can be disabled with --no-mtime).
Since you are not willing to provide full output containing at least the actual version of youtube-dl you are using I can't check your particular version.

@dstftw dstftw closed this Apr 24, 2015
@y0ttahertz
Copy link
Author

@y0ttahertz y0ttahertz commented Apr 24, 2015

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

bug2

@y0ttahertz
Copy link
Author

@y0ttahertz y0ttahertz commented Apr 24, 2015

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.