From 1e0389798beed2abf25417664e37172fc7a2a976 Mon Sep 17 00:00:00 2001 From: Zhineng Li Date: Thu, 30 Apr 2026 22:17:27 +0800 Subject: uppercase channel name before categorization Some picture-quality markers in channel names are inconsistent, such as abc-4k and def-4K. Converting names to uppercase first gives us more reliable matching result. --- iptv.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/iptv.sh b/iptv.sh index 400bed3..c768ebc 100755 --- a/iptv.sh +++ b/iptv.sh @@ -70,9 +70,10 @@ ensure_openssl_is_installed () { } categorize_by_channel_name () { + local name="${1^^}" result="720P" - case "$1" in + case "$name" in *4K*) result="4K" ;; *"超清"*|*"高清"*) result="1080P" ;; esac -- cgit v1.2.3