Skip to content

Commit

Permalink
- Remove functionality for converting .wav files, and rely on .aac fi…
Browse files Browse the repository at this point in the history
…les having embedded metadata rather than the presence of an associated metadata.txt file.

- Pass filename to upload api.
- Handle some unhandled errors.
  • Loading branch information
hardiesoft committed Oct 3, 2024
1 parent 8c064ca commit a1eb50d
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions cmd/thermal-uploader/uploadjob.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,12 +194,7 @@ func (u *uploadJob) uploadFile(apiClient *api.CacophonyAPI) (int, error) {
if err != nil {
return 0, err
}
defer func(f *os.File) {
err := f.Close()
if err != nil {

}
}(f)
defer f.Close()
return apiClient.UploadVideo(bufio.NewReader(f), data)
}

Expand Down

0 comments on commit a1eb50d

Please sign in to comment.