Fix regexp for the "merge" log line

This commit is contained in:
Justin Hawkins 2021-09-26 12:33:03 +09:30
parent f9ec3a4b25
commit a99f65918f

View File

@ -309,7 +309,7 @@ func updateMetadata(dl *download, s string) {
// This means a file has been "created" by merging others // This means a file has been "created" by merging others
// [ffmpeg] Merging formats into "Toto - Africa (Official HD Video)-FTQbiNvZqaY.mp4" // [ffmpeg] Merging formats into "Toto - Africa (Official HD Video)-FTQbiNvZqaY.mp4"
mergedFilename := regexp.MustCompile(`Merging formats into "(.+)$`) mergedFilename := regexp.MustCompile(`Merging formats into "(.+)"$`)
matches = mergedFilename.FindStringSubmatch(s) matches = mergedFilename.FindStringSubmatch(s)
if len(matches) == 2 { if len(matches) == 2 {
dl.Files = append(dl.Files, matches[1]) dl.Files = append(dl.Files, matches[1])