1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-10-30 14:15:13 +00:00

[outtmpl] Format type U for unicode normalization

This commit is contained in:
pukkandan
2021-09-26 01:39:44 +05:30
parent f440b14f87
commit 524e2e4fda
4 changed files with 27 additions and 16 deletions

View File

@@ -4474,12 +4474,12 @@ OUTTMPL_TYPES = {
STR_FORMAT_RE_TMPL = r'''(?x)
(?<!%)(?P<prefix>(?:%%)*)
%
(?P<has_key>\((?P<key>{0})\))? # mapping key
(?P<has_key>\((?P<key>{0})\))?
(?P<format>
(?:[#0\-+ ]+)? # conversion flags (optional)
(?:\d+)? # minimum field width (optional)
(?:\.\d+)? # precision (optional)
[hlL]? # length modifier (optional)
(?P<conversion>[#0\-+ ]+)?
(?P<min_width>\d+)?
(?P<precision>\.\d+)?
(?P<len_mod>[hlL])? # unused in python
{1} # conversion type
)
'''