summaryrefslogtreecommitdiff
path: root/iptv.sh
diff options
context:
space:
mode:
Diffstat (limited to 'iptv.sh')
-rwxr-xr-xiptv.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/iptv.sh b/iptv.sh
index 30d9b72..cae7a02 100755
--- a/iptv.sh
+++ b/iptv.sh
@@ -277,7 +277,12 @@ 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"
+ printf '#EXTINF:-1 tvg-id="%s" tvg-name="%s" tvg-logo="%s" group-name="%s",%s\n' \
+ "$channelcode" \
+ "$channelname" \
+ "${logos[$channelcode]-}" \
+ "$group" \
+ "$channelname" >> "$output_file"
echo "$udpxy_endpoint/udp/$host" >> "$output_file"
fi
done