/
githubmirror
/
photoprism
Обзор
Документация
Войти
/
githubmirror
/
photoprism
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
pkg/clean/format.go
15 строк
450 B
Michael Mayer
Config: Add option to exclude video formats from FFmpeg #5617
26 май 2026, 18:36
26 май 2026, 18:36
d2e8c7a
Код
Авторство
О чём код?
package clean import ( "strings" ) // FormatSep defines the string separating multiple format identifiers in a list. const FormatSep = "," // Format lowercases and strips the surrounding whitespace and punctuation // from format identifiers so that inputs like `"mp4"`, ` .avi `, or `magicyuv,` // normalize to canonical short names suitable for map lookups. func Format(s string) string { return strings.ToLower(strings.Trim(s, " .,;:\"'`")) }