diff --git a/db/migration/20200325185135_add_album_artist_id.go b/db/migration/20200325185135_add_album_artist_id.go index 23d0cb7d2..213494bac 100644 --- a/db/migration/20200325185135_add_album_artist_id.go +++ b/db/migration/20200325185135_add_album_artist_id.go @@ -2,6 +2,7 @@ package migration import ( "database/sql" + "github.com/pressly/goose" ) diff --git a/db/migration/20200326090707_fix_album_artists_importing.go b/db/migration/20200326090707_fix_album_artists_importing.go index 05db74bbc..0608dbeef 100644 --- a/db/migration/20200326090707_fix_album_artists_importing.go +++ b/db/migration/20200326090707_fix_album_artists_importing.go @@ -2,6 +2,7 @@ package migration import ( "database/sql" + "github.com/pressly/goose" ) diff --git a/db/migration/20200327193744_add_year_range_to_album.go b/db/migration/20200327193744_add_year_range_to_album.go index 5757a6adc..5f201ece4 100644 --- a/db/migration/20200327193744_add_year_range_to_album.go +++ b/db/migration/20200327193744_add_year_range_to_album.go @@ -2,6 +2,7 @@ package migration import ( "database/sql" + "github.com/pressly/goose" ) diff --git a/db/migration/20200409002249_enable_search_by_tracks_artists.go b/db/migration/20200409002249_enable_search_by_tracks_artists.go index dacb1d012..7b67c6f2c 100644 --- a/db/migration/20200409002249_enable_search_by_tracks_artists.go +++ b/db/migration/20200409002249_enable_search_by_tracks_artists.go @@ -2,6 +2,7 @@ package migration import ( "database/sql" + "github.com/pressly/goose" ) diff --git a/db/migration/20200411164603_add_created_and_updated_fields_to_playlists.go b/db/migration/20200411164603_add_created_and_updated_fields_to_playlists.go index 19e4326f1..0ccfa08f3 100644 --- a/db/migration/20200411164603_add_created_and_updated_fields_to_playlists.go +++ b/db/migration/20200411164603_add_created_and_updated_fields_to_playlists.go @@ -2,6 +2,7 @@ package migration import ( "database/sql" + "github.com/pressly/goose" ) diff --git a/db/migration/20200418110522_reindex_to_fix_album_years.go b/db/migration/20200418110522_reindex_to_fix_album_years.go index c3428d604..f1c23d314 100644 --- a/db/migration/20200418110522_reindex_to_fix_album_years.go +++ b/db/migration/20200418110522_reindex_to_fix_album_years.go @@ -2,6 +2,7 @@ package migration import ( "database/sql" + "github.com/pressly/goose" ) diff --git a/db/migration/20200419222708_reindex_to_change_full_text_search.go b/db/migration/20200419222708_reindex_to_change_full_text_search.go index b92641be4..e713f6969 100644 --- a/db/migration/20200419222708_reindex_to_change_full_text_search.go +++ b/db/migration/20200419222708_reindex_to_change_full_text_search.go @@ -2,6 +2,7 @@ package migration import ( "database/sql" + "github.com/pressly/goose" ) diff --git a/db/migration/20200423204116_add_sort_fields.go b/db/migration/20200423204116_add_sort_fields.go index db5e9f2ce..086325980 100644 --- a/db/migration/20200423204116_add_sort_fields.go +++ b/db/migration/20200423204116_add_sort_fields.go @@ -2,6 +2,7 @@ package migration import ( "database/sql" + "github.com/pressly/goose" ) diff --git a/engine/transcoder/ffmpeg.go b/engine/transcoder/ffmpeg.go index a26305724..b65f78144 100644 --- a/engine/transcoder/ffmpeg.go +++ b/engine/transcoder/ffmpeg.go @@ -30,7 +30,7 @@ func (ff *ffmpeg) Start(ctx context.Context, command, path string, maxBitRate in args := createTranscodeCommand(command, path, maxBitRate) log.Trace(ctx, "Executing ffmpeg command", "cmd", args) - cmd := exec.Command(args[0], args[1:]...) + cmd := exec.Command(args[0], args[1:]...) // #nosec cmd.Stderr = os.Stderr if f, err = cmd.StdoutPipe(); err != nil { return diff --git a/scanner/metadata_ffmpeg.go b/scanner/metadata_ffmpeg.go index 0e856ccd1..b22cc69e3 100644 --- a/scanner/metadata_ffmpeg.go +++ b/scanner/metadata_ffmpeg.go @@ -84,7 +84,7 @@ func ExtractAllMetadata(inputs []string) (map[string]*Metadata, error) { args := createProbeCommand(inputs) log.Trace("Executing command", "args", args) - cmd := exec.Command(args[0], args[1:]...) + cmd := exec.Command(args[0], args[1:]...) // #nosec output, _ := cmd.CombinedOutput() mds := map[string]*Metadata{} if len(output) == 0 {