Add clip slug to formatting options

This commit is contained in:
Ivan Habunek 2022-02-05 09:36:50 +01:00
parent 7eb50a0fa1
commit fb73fe07c5
No known key found for this signature in database
GPG Key ID: CDBD63C43A30BB95
2 changed files with 2 additions and 1 deletions

View File

@ -172,7 +172,7 @@ The supported placeholders are:
| `{format}` | File extension, see `--format` | mkv |
| `{game}` | Game name | Dark Souls III |
| `{game_slug}` | Slugified game name | dark_souls_iii |
| `{slug}` | Clip slug (clips only) | AbrasivePlacidCatDxAbomb |
A couple of examples:

View File

@ -112,6 +112,7 @@ def _clip_target_filename(clip, args):
"game": game,
"game_slug": utils.slugify(game),
"id": clip["id"],
"slug": clip["slug"],
"time": time,
"title": utils.titlify(clip["title"]),
"title_slug": utils.slugify(clip["title"]),