summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZhineng Li <[email protected]>2026-01-24 10:57:58 +0800
committerZhineng Li <[email protected]>2026-01-24 10:57:58 +0800
commitab0b2b78f1d9013e69437e3eb4a940839e52dbb1 (patch)
tree613cd456061acbfc287090da7c4e22f7063a664b
parentcfa2920000daffda5a056337e3ab662d67ad3f39 (diff)
downloadchina-unicom-iptv-gd-ab0b2b78f1d9013e69437e3eb4a940839e52dbb1.tar.gz
china-unicom-iptv-gd-ab0b2b78f1d9013e69437e3eb4a940839e52dbb1.zip
handle when the value is empty
-rwxr-xr-xiptv.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/iptv.sh b/iptv.sh
index be2c107..30d9b72 100755
--- a/iptv.sh
+++ b/iptv.sh
@@ -277,7 +277,7 @@ make_playlist () {
group=$(categorize_by_channel_name "$channelname")
- echo "#EXTINF:-1 tvg-id=\"$channelcode\" tvg-name=\"$channelname\" tvg-logo=\"${logos[$channelcode]}\" group-name=\"$group\",$channelname" >> "$output_file"
+ echo "#EXTINF:-1 tvg-id=\"$channelcode\" tvg-name=\"$channelname\" tvg-logo=\"${logos[$channelcode]-}\" group-name=\"$group\",$channelname" >> "$output_file"
echo "$udpxy_endpoint/udp/$host" >> "$output_file"
fi
done