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

Output Filename Template: Request for upload-datetime #1706

Open
himadri0327 opened this issue Nov 2, 2013 · 5 comments
Open

Output Filename Template: Request for upload-datetime #1706

himadri0327 opened this issue Nov 2, 2013 · 5 comments
Labels

Comments

@himadri0327
Copy link

@himadri0327 himadri0327 commented Nov 2, 2013

The current %(upload_date)s gives YYYYMMDD. Could you please consider adding another that includes time like YYYYMMDD-hhmmss ? Maybe a date-time combination option %(upload_datetime)s or a separate %(upload_time)s ?

@keybounce
Copy link

@keybounce keybounce commented Apr 20, 2017

Bump.

I was just about to suggest this when I found it as a suggestion. I too would like an "HHMMSS" field that could be added to the existing YYYYMMDD fields.

@l0b0
Copy link

@l0b0 l0b0 commented Dec 9, 2017

Looks like because the way youtube-dl is architected (each site having custom code to extract the date string, and then unifying the formatting but returning the result as a string rather than a datetime) this might involve a lot of change (but none of it very complex AFAICT):

  1. Instead of using unified_strdate return a datetime object in _real_extract and equivalent.
  2. Detect when info_dict contains a datetime and format it when necessary. That way even the datetime formatting could be a configuration directive or parameter.

Does this seem sane?

@djmixman
Copy link

@djmixman djmixman commented Aug 4, 2018

Almost 5 years now... Still can't include an HHMM in the filename :'(

@tecxy
Copy link

@tecxy tecxy commented Sep 29, 2018

I would be happy to get the format "YYYY-MM-DDTHH:MM:SS " in the filename too.

@shillshocked
Copy link

@shillshocked shillshocked commented Dec 30, 2019

Upvoted!

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
6 participants
You can’t perform that action at this time.