diff --git a/main.go b/main.go index f677f8e..995d429 100644 --- a/main.go +++ b/main.go @@ -122,8 +122,8 @@ func parseM3U8Source(url string) (chunks []*m3u8.MediaSegment, wait float64, err // capture captures the specified channel streaming. func capture(username string) { - // Define the video filename by current time. - filename := time.Now().Format("2006-01-02_15-04-05") + // Define the video filename by current time //04.09.22 added username into filename mKeey. + filename := username + "_" + time.Now().Format("2006-01-02_15-04-05") // Get the channel page content body. body := getBody(username) // Get the master playlist URL from extracting the channel body.