Skip to content

Commit

Permalink
Fix bug in fetchVideo
Browse files Browse the repository at this point in the history
  • Loading branch information
Miguel-Dorta committed Sep 14, 2019
1 parent e27f27b commit c916fc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/fetchVideo/fetchVideo.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func main() {
errFound := false
for _, link := range linkVideos {
pathToSave := getSavingPath(link.Text, camName, destination)
if err = utils.GetFileWithLogin(link.HREF, user, pass, pathToSave); err != nil {
if err = utils.GetFileWithLogin(url + link.HREF, user, pass, pathToSave); err != nil {
logErr.Printf("error saving file in path \"%s\": %s", pathToSave, err)
errFound = true
continue
Expand Down

0 comments on commit c916fc4

Please sign in to comment.