Skip to content

Commit 8e56fb3

Browse files
committed
polish current source list
1 parent a12bc7b commit 8e56fb3

File tree

3 files changed

+162
-34
lines changed

3 files changed

+162
-34
lines changed

checker/init.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ func writeToFile() {
4343
}
4444
m3uname := "iptv.m3u"
4545
path := filepath.Join(m3upath, m3uname)
46-
m3ufile, err := os.OpenFile(path, os.O_RDWR|os.O_CREATE, 0666)
46+
m3ufile, err := os.OpenFile(path, os.O_RDWR|os.O_CREATE|os.O_TRUNC, 0666)
4747
if err != nil {
4848
logrus.Fatalln(err)
4949
}

0 commit comments

Comments
 (0)