Fixed EXTINF regex

master
Anthony Axenov 2022-06-01 13:09:40 +08:00 committed by GitHub
parent 1cf76de025
commit b93ab57c63
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ awk '
}
{
sub("\r$", "", $0) # crlf -> lf
if ($0 ~ /^#EXTINF\:.+,/) {
if ($0 ~ /^#EXTINF:.+,/) {
total_count++
channel_name = substr($0, index($0, ",") + 1, length($0))
print "[" total_count "] " channel_name "..."