Merge pull request #8 from mK33y/patch-2

Update main.go
This commit is contained in:
Yami Odymel 2022-09-05 06:07:10 +08:00 committed by GitHub
commit 7c4bb524b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.