Skip to content

Commit

Permalink
polish current source list
Browse files Browse the repository at this point in the history
  • Loading branch information
swahpy committed May 17, 2022
1 parent a12bc7b commit 8e56fb3
Show file tree
Hide file tree
Showing 3 changed files with 162 additions and 34 deletions.
2 changes: 1 addition & 1 deletion checker/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func writeToFile() {
}
m3uname := "iptv.m3u"
path := filepath.Join(m3upath, m3uname)
m3ufile, err := os.OpenFile(path, os.O_RDWR|os.O_CREATE, 0666)
m3ufile, err := os.OpenFile(path, os.O_RDWR|os.O_CREATE|os.O_TRUNC, 0666)
if err != nil {
logrus.Fatalln(err)
}
Expand Down
Loading

0 comments on commit 8e56fb3

Please sign in to comment.