Fix a processing issue
This commit is contained in:
parent
ca7faae1e2
commit
fcf357f5b3
1 changed files with 2 additions and 2 deletions
|
@ -52,9 +52,9 @@ function update {
|
|||
if [[ "$id" = 'id' ]]; then
|
||||
printf '%s\n' "${REPLY},link"
|
||||
else
|
||||
match="$(grep -A1 'tvg-id="'"$id"'"' "$tmp_m3u_file")"
|
||||
match="$(grep -A1 'tvg-id="'"$id"'"' "$tmp_m3u_file" | grep -e '^http' | head -n 1)"
|
||||
|
||||
if (( $? == 0 )); then
|
||||
if (( $? == 0 )) && [[ -n "$match" ]]; then
|
||||
link="$(grep -e '^http' <<< "$match")"
|
||||
printf '%s\n' "$REPLY,$link"
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue