Content format strings - tylergibbs2/Tsundoku GitHub Wiki
In various places in the app, there are input boxes that allow you to enter content format strings. These content format strings are special, in that some keywords that are wrapped in curly braces ({}
) will be replaced with other content later on.
The purpose of this wiki page is to list all of the locations that these content format strings are present, and also which special keywords you are able to use in those locations.
Example content format string:
{name}, episode {episode}, has been marked as {state}
File Name Format
Keyword | Replaced With | Example Result |
---|---|---|
n |
The title of the show | Attack on Titan |
name |
The title of the show | Attack on Titan |
title |
The title of the show | Attack on Titan |
s |
The season of the show | 1 |
season |
The season of the show | 1 |
e |
The episode of the entry | 9 |
episode |
The episode of the entry | 9 |
s00 |
The season of the show, padded to 2 numbers | 01 |
e00 |
The episode of the entry, padded to 2 numbers | 09 |
s00e00 |
Shorthand combination of the padded season and episode number | s01e09 |
S00E00 |
Shorthand combination of the padded season and episode number | S01E09 |
sxe |
Shorthand combination of the episode and season number | 1x9 |
version |
The version of the entry | v1 |
ext |
The file extension of the entry | .mkv |
Folder Placement
Keyword | Replaced With | Example Result |
---|---|---|
n |
The title of the show | Attack on Titan |
name |
The title of the show | Attack on Titan |
title |
The title of the show | Attack on Titan |
s |
The season of the show | 1 |
season |
The season of the show | 1 |
e |
The episode of the entry | 9 |
episode |
The episode of the entry | 9 |
s00 |
The season of the show, padded to 2 numbers | 01 |
e00 |
The episode of the entry, padded to 2 numbers | 09 |
s00e00 |
Shorthand combination of the padded season and episode number | s01e09 |
S00E00 |
Shorthand combination of the padded season and episode number | S01E09 |
sxe |
Shorthand combination of the episode and season number | 1x9 |
version |
The version of the entry | v1 |
Webhook Content Format
Keyword | Replaced With | Example Result |
---|---|---|
name |
The title of the show | Attack on Titan |
episode |
The episode of the entry | 9 |
state |
The new state of the entry | completed |
manual |
If the entry was created manually | True |
version |
The version of the entry | v1 |