summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZhineng Li <im@zhineng.li>2026-04-30 22:17:27 +0800
committerZhineng Li <im@zhineng.li>2026-04-30 22:19:04 +0800
commit1e0389798beed2abf25417664e37172fc7a2a976 (patch)
tree5669e626e29d313077fb6e624fd05d1f8f8b24de
parente37cf810b7a76ef0632db665d6dbf2646487ea5f (diff)
downloadchina-unicom-iptv-gd-1e0389798beed2abf25417664e37172fc7a2a976.tar.gz
china-unicom-iptv-gd-1e0389798beed2abf25417664e37172fc7a2a976.zip
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.
-rwxr-xr-xiptv.sh3
1 files changed, 2 insertions, 1 deletions
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