Skip to content

Commit f52ce10

Browse files
authored
Update m3u8-downloader.go
1 parent 95009c4 commit f52ce10

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

m3u8-downloader.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,9 @@ func getFromFile() string {
226226
// 下载ts文件
227227
// @modify: 2020-08-13 修复ts格式SyncByte合并不能播放问题
228228
func downloadTsFile(ts TsInfo, download_dir, key string, retries int) {
229+
if retries <= 0 {
230+
return
231+
}
229232
defer func() {
230233
if r := recover(); r != nil {
231234
//fmt.Println("网络不稳定,正在进行断点持续下载")

0 commit comments

Comments
 (0)