[formatter] add 'i' and 'f' conversions (#6582)

https://github.com/mikf/gallery-dl/issues/6582#issuecomment-2792166608
This commit is contained in:
Mike Fährmann
2025-04-11 09:14:10 +02:00
parent 4916b4fd1f
commit 9ce6de6ca0
3 changed files with 22 additions and 3 deletions

View File

@@ -495,6 +495,8 @@ _CONVERSIONS = {
"s": str,
"r": repr,
"a": ascii,
"i": int,
"f": float,
}
_FORMAT_SPECIFIERS = {
"?": _parse_optional,