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

Other format options for time in file naming #424

Closed
viktorrauch opened this issue May 9, 2022 · 5 comments
Closed

Other format options for time in file naming #424

viktorrauch opened this issue May 9, 2022 · 5 comments

Comments

@viktorrauch
Copy link

Would be great to have other format options for upload time in the file names like "2022-05-09" or "2022 05 09".

At the moment it seems that only "20220509" is possible. Sadly Plex for example can't handle this.

@axcore
Copy link
Owner

axcore commented May 9, 2022

You're right, it would be great. yt-dlp handles file naming, so you can suggest it at their issues page.

@viktorrauch
Copy link
Author

I just did. Thank you for the hint.

@axcore
Copy link
Owner

axcore commented May 9, 2022

If it gets implemented, ping me and I'll update the Tartube code to include the new options.

@viktorrauch
Copy link
Author

They showed me the solution in the documentation:

Date/time Formatting: Date/time fields can be formatted according to strftime formatting by specifying it separated from the field name using a >. Eg: %(duration>%H-%M-%S)s, %(upload_date>%Y-%m-%d)s, %(epoch-3600>%H-%M-%S)s

it's already possible. :)

@axcore
Copy link
Owner

axcore commented May 13, 2022

I added custom formats for dates/times in v2.4.050.

The new code is only uploaded to Github/pypi. If you're using MS Windows, you can update your installation as described here.

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

No branches or pull requests

2 participants