From ffe171f1e53f3b86a673a20d8326d2d204b028eb Mon Sep 17 00:00:00 2001 From: Zhineng Li Date: Sat, 24 Jan 2026 11:03:24 +0800 Subject: use printf --- iptv.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'iptv.sh') 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 -- cgit v1.2.3