mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-11-14 13:05:09 +00:00
feat(titles): add air_date for date-based episode naming
Optional Episode.air_date names daily/sports content by date instead of SxxExx (no template change). Presentation-only; `{year}` dropped only when it duplicates the date's year. Round-trips via export/import.
This commit is contained in:
@@ -57,6 +57,18 @@ Add `?` suffix to make a variable conditional (omitted when empty): `{year?}`, `
|
||||
| `episode` | Episode number (e.g. `1`) |
|
||||
| `season_episode` | Combined season/episode (e.g. `S01E01`) |
|
||||
| `episode_name` | Episode title |
|
||||
| `date` | Air date in ISO form (e.g. `2024-06-30`), only for daily/sports content |
|
||||
|
||||
!!! note "Daily / sports content"
|
||||
When a service supplies an air date (daily talk shows, news, sports events),
|
||||
`{season_episode}` automatically renders the date using your template's separator
|
||||
(e.g. `2024.06.30` for a dotted template, `2024 06 30` for a spaced one). The
|
||||
standalone `{year}` is dropped from the filename — the air date is the sole date —
|
||||
so every episode of a show names consistently. Folders still keep the year (e.g.
|
||||
`Show Name (2010)/2024/`). No template change is needed.
|
||||
|
||||
Use the `{date}` variable instead if you want a fixed `YYYY-MM-DD` form regardless
|
||||
of separator. Folders for dated episodes group by air year (e.g. `Show Name/2024/`).
|
||||
|
||||
### Video / audio variables
|
||||
|
||||
|
||||
Reference in New Issue
Block a user