Skip to content

Commit

Permalink
Fix TagMode 'n' option
Browse files Browse the repository at this point in the history
This was a regression that was introduced in version 3.2
Fixes #71
  • Loading branch information
complexlogic committed Aug 18, 2023
1 parent a3429d9 commit ada1d11
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/scan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,10 @@ ScanJob* ScanJob::factory(const std::filesystem::path &path)
if (tracks.empty())
return nullptr;
file_type = extensions.size() > 1 ? FileType::DEFAULT : *extensions.begin();
return new ScanJob(path.string(), std::move(tracks), get_config(file_type));
const Config &config = get_config(file_type);
if (config.tag_mode == 'n')
return nullptr;
return new ScanJob(path.string(), std::move(tracks), config);
}

ScanJob* ScanJob::factory(char **files, size_t nb_files, const Config &config)
Expand Down

0 comments on commit ada1d11

Please sign in to comment.