diff options
| author | Zhineng Li <im@zhineng.li> | 2026-04-30 22:17:27 +0800 |
|---|---|---|
| committer | Zhineng Li <im@zhineng.li> | 2026-04-30 22:19:04 +0800 |
| commit | 1e0389798beed2abf25417664e37172fc7a2a976 (patch) | |
| tree | 5669e626e29d313077fb6e624fd05d1f8f8b24de | |
| parent | e37cf810b7a76ef0632db665d6dbf2646487ea5f (diff) | |
| download | china-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-x | iptv.sh | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 |
