Skip to content

Commit

Permalink
Added .gitattributes
Browse files Browse the repository at this point in the history
  • Loading branch information
complexlogic committed Sep 15, 2022
1 parent e0f983a commit a4ec180
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
src/external/** linguist-vendored
12 changes: 4 additions & 8 deletions src/tag.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -293,22 +293,18 @@ static bool tag_riff(Track &track, const Config &config)
{
T file(track.path.c_str());
TagLib::ID3v2::Tag *tag;
if constexpr (std::is_same_v<T, TagLib::RIFF::WAV::File>) {
if constexpr (std::is_same_v<T, TagLib::RIFF::WAV::File>)
tag = file.ID3v2Tag();
}
else if constexpr (std::is_same_v<T, TagLib::RIFF::AIFF::File>) {
else if constexpr (std::is_same_v<T, TagLib::RIFF::AIFF::File>)
tag = file.tag();
}
tag_clear_id3(tag);
if (config.tag_mode == 'i')
tag_write_id3(tag, track.result, config);

if constexpr (std::is_same_v<T, TagLib::RIFF::WAV::File>) {
if constexpr (std::is_same_v<T, TagLib::RIFF::WAV::File>)
return file.save(T::AllTags, false, config.id3v2version);
}
else if constexpr (std::is_same_v<T, TagLib::RIFF::AIFF::File>) {
else if constexpr (std::is_same_v<T, TagLib::RIFF::AIFF::File>)
return file.save();
}
}

template<int flags, typename T>
Expand Down

0 comments on commit a4ec180

Please sign in to comment.