Parse the channels from playlist correctly

This commit is contained in:
Shahin Agha-Ghassem 2023-04-02 19:16:40 +02:00
parent 24a9bfa87d
commit 44c3cd2a0c

2
iptv
View File

@ -31,7 +31,7 @@ save_channels() {
printf "Parsing channels... " printf "Parsing channels... "
channels=() channels=()
readarray -t lines < "$tmp_playlist" readarray -t lines < "$tmp_playlist"
for (( i=0; i<${#lines[@]}; i+=3 )); do for (( i=0; i<${#lines[@]}; i++ )); do
line1="${lines[i]}" line1="${lines[i]}"
line2="${lines[i+1]}" line2="${lines[i+1]}"
line3="${lines[i+2]}" line3="${lines[i+2]}"