From 44c3cd2a0cdbd18adc9c99061b6214d226f3882f Mon Sep 17 00:00:00 2001 From: Shahin Agha-Ghassem Date: Sun, 2 Apr 2023 19:16:40 +0200 Subject: [PATCH] Parse the channels from playlist correctly --- iptv | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iptv b/iptv index f9d8ba1..8a6e94f 100755 --- a/iptv +++ b/iptv @@ -31,7 +31,7 @@ save_channels() { printf "Parsing channels... " channels=() readarray -t lines < "$tmp_playlist" - for (( i=0; i<${#lines[@]}; i+=3 )); do + for (( i=0; i<${#lines[@]}; i++ )); do line1="${lines[i]}" line2="${lines[i+1]}" line3="${lines[i+2]}"