Skip to content

Commit

Permalink
Update downloader/downloader.go
Browse files Browse the repository at this point in the history
Co-authored-by: Xinzhao Xu <z2d@jifangcheng.com>
  • Loading branch information
Half9000 and iawia002 committed Jul 27, 2020
1 parent e463c20 commit 0c1e3a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion downloader/downloader.go
Original file line number Diff line number Diff line change
Expand Up @@ -634,7 +634,7 @@ func (downloader *Downloader) Download(data *types.Data) error {
}

fmt.Printf("Merging video parts into %s\n", mergedFilePath)
if stream.Ext != "mp4" || stream.NeedMux == true {
if stream.Ext != "mp4" || stream.NeedMux {
return utils.MergeFilesWithSameExtension(parts, mergedFilePath)
}
return utils.MergeToMP4(parts, mergedFilePath, title)
Expand Down

0 comments on commit 0c1e3a4

Please sign in to comment.