Season/Episode naming by date #846
Unanswered
mikeyounge
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi everyone. I'm trying to see if it is possible to name a daily upload to the year as season and the month and day as the episode. For example, today's date for the upload_date variable is YYYYMMDD=20230314. I would like to name the file %(channel)s - S%(YYYY)sE%(MMDD)s - %(title)s.%(ext)s. Any way to accomplish this? I experimented with python a bit and I was able to come up with the year as %(upload_date).4s (returns the first for characters, 2023). I just can't come up with the syntax to strip the first four characters and place a leading zero to result in MMDD=0314. Any help is greatly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions