Skip to content
This repository has been archived by the owner on Apr 11, 2018. It is now read-only.

Commit

Permalink
Fix a problem with reported file sizes
Browse files Browse the repository at this point in the history
Picturelife postulates one filesize, while the real file size can be
quite different
  • Loading branch information
morphar committed Aug 7, 2016
1 parent fa70396 commit d5bbf19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ func fetchMedia(client *minicrawler.Crawler, media *Media) {
return
}

if n != int64(media.Filesize) {
if n < 1000 {
media.Status = "failed"
out.Close()
res.Body.Close()
Expand Down

0 comments on commit d5bbf19

Please sign in to comment.