merge #3462: [docs] Update links and fix field typo

This commit is contained in:
Mike Fährmann
2023-01-07 15:22:03 +01:00
2 changed files with 16 additions and 8 deletions

View File

@@ -60,14 +60,21 @@ class StringFormatter():
- "u": calls str.upper
- "c": calls str.capitalize
- "C": calls string.capwords
- "j". calls json.dumps
- "g": calls text.slugify()
- "j": calls json.dumps
- "t": calls str.strip
- "T": calls util.datetime_to_timestamp_string()
- "d": calls text.parse_timestamp
- "U": calls urllib.parse.unescape
- "s": calls str()
- "S": calls util.to_string()
- "T": calls util.to_timestamü()
- "U": calls urllib.parse.unescape
- "r": calls repr()
- "a": calls ascii()
- Example: {f!l} -> "example"; {f!u} -> "EXAMPLE"
# Go to _CONVERSIONS and _SPECIFIERS below to se all of them, read:
# https://github.com/mikf/gallery-dl/blob/master/docs/formatting.md
Extra Format Specifiers:
- "?<before>/<after>/":
Adds <before> and <after> to the actual value if it evaluates to True.