Skip to content

Commit

Permalink
Update autotv.go
Browse files Browse the repository at this point in the history
  • Loading branch information
SunEve committed May 7, 2024
1 parent dc1d126 commit 5fcdc57
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions autotv.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func gettime() {
fmt.Printf("当前时间已追加到文件 %s\n", filePath)
}

func addxmlpath(addString string, filepath string) error {
func addxmlpath(addString string, filePath string) error {
// 读取原始文件内容
content, err := ioutil.ReadFile(filePath)
if err != nil {
Expand Down Expand Up @@ -102,9 +102,9 @@ func main() {

// filePath1 := "public/cn11.m3u"
addString := " x-tvg-url=\"https://live.fanmingming.com/e.xml\""
err := addxmlpath(addString, filepath)
if err != nil {
fmt.Println("修改文件时出错:", err)
err1 := addxmlpath(addString, filePath)
if err1 != nil {
fmt.Println("修改文件时出错:", err1)
return
}
}

0 comments on commit 5fcdc57

Please sign in to comment.