Skip to content

Commit

Permalink
downloader: 📝
Browse files Browse the repository at this point in the history
  • Loading branch information
iawia002 committed Mar 7, 2018
1 parent 0859cbe commit 533be8e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions downloader/downloader.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ func (data VideoData) urlSave(
) {
filePath := utils.FilePath(fileName, urlData.Ext, false)
fileSize := utils.FileSize(filePath)
// TODO: Live video URLs will not return the size
if fileSize == urlData.Size {
fmt.Printf("%s: file already exists, skipping\n", filePath)
bar.Add64(fileSize)
Expand Down

0 comments on commit 533be8e

Please sign in to comment.