Add state for "Fixing MPEG-TS" which takes a while
This commit is contained in:
parent
15ee200615
commit
5c362df35d
@ -335,4 +335,11 @@ func (dl *Download) updateMetadata(s string) {
|
||||
dl.State = "Downloading metadata, page " + matches[1]
|
||||
}
|
||||
|
||||
// [FixupM3u8] Fixing MPEG-TS in MP4 container of "file [-168849776_456239489].mp4"
|
||||
metadataFixup := regexp.MustCompile(`Fixing MPEG-TS in MP4 container`)
|
||||
matches = metadataFixup.FindStringSubmatch(s)
|
||||
if len(matches) == 1 {
|
||||
dl.State = "Fixing MPEG-TS in MP4"
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -47,6 +47,10 @@ func TestUpdateMetadata(t *testing.T) {
|
||||
}
|
||||
|
||||
// [FixupM3u8] Fixing MPEG-TS in MP4 container of "file [-168849776_456239489].mp4"
|
||||
newD.updateMetadata("[FixupM3u8] Fixing MPEG-TS in MP4 container of \"file [-168849776_456239489].mp4")
|
||||
if newD.State != "Fixing MPEG-TS in MP4" {
|
||||
t.Fatalf("did not see fixup state - state is %s", newD.State)
|
||||
}
|
||||
|
||||
// deletes
|
||||
// TODO. Not sure why I don't always see the "Deleting original file" messages after merge -
|
||||
|
Loading…
x
Reference in New Issue
Block a user