From 57bcd9ff3b04bdc8899563650cabeeed2ce357c6 Mon Sep 17 00:00:00 2001 From: qydysky Date: Tue, 5 Apr 2022 20:47:45 +0800 Subject: [PATCH] =?utf8?q?=E7=9B=B4=E6=92=AD=E6=B5=81fix?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- Reply/F.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Reply/F.go b/Reply/F.go index 063a5af..5fc7a29 100644 --- a/Reply/F.go +++ b/Reply/F.go @@ -462,7 +462,7 @@ func Savestreamf() { o := bytes.Index(line, []byte(`EXT-X-MAP:URI="`)) + 15 e := bytes.Index(line[o:], []byte(`"`)) + o m4s_link = string(line[o:e]) - } else if bytes.Contains(line, []byte("EXT-X-BILI-PREFETCH")) { + } else if bytes.Contains(lines[i], []byte("#EXT-X")) { //忽略扩展标签 continue } else if bytes.Contains(line, []byte(".m4s")) { m4s_link = string(line) @@ -499,7 +499,7 @@ func Savestreamf() { if found { offset := m4s_links[i].Offset_line - 1 for i := offset; i < len(lines); i += 1 { - if bytes.Contains(lines[i], []byte("EXT-X-BILI-PREFETCH")) { + if bytes.Contains(lines[i], []byte("#EXT-X")) { //忽略扩展标签 continue } m3u8_file_addition = append(m3u8_file_addition, lines[i]...) @@ -515,7 +515,7 @@ func Savestreamf() { if !found { offset := m4s_links[1].Offset_line - 1 for i := offset; i < len(lines); i += 1 { - if bytes.Contains(lines[i], []byte("EXT-X-BILI-PREFETCH")) { + if bytes.Contains(lines[i], []byte("#EXT-X")) { //忽略扩展标签 continue } m3u8_file_addition = append(m3u8_file_addition, lines[i]...) -- 2.39.2