v2.1.2.0128
This commit is contained in:
1 parent
07f9cac3c5
commit
410cc3648f
1 file changed
+4
@@ -144,6 +144,10 @@ func MakeInterfaceFromM3U(byteStream []byte) (allChannels []interface{}, err err
|
||||
}
|
||||
|
||||
//fmt.Println(content)
|
||||
if strings.Contains(content, "#EXT-X-TARGETDURATION") || strings.Contains(content, "#EXT-X-MEDIA-SEQUENCE") {
|
||||
err = errors.New("Invalid M3U file, an extended M3U file is required.")
|
||||
return
|
||||
}
|
||||
|
||||
if strings.Contains(content, "#EXTM3U") {
|
||||
|
||||
|
||||
Reference in new issue
Block a user