Parse the channels from playlist correctly
This commit is contained in:
parent
24a9bfa87d
commit
44c3cd2a0c
2
iptv
2
iptv
@ -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]}"
|
||||||
|
Loading…
Reference in New Issue
Block a user