From a4ec1801bf0e6b35e649693b6f873dfcd6886231 Mon Sep 17 00:00:00 2001 From: complexlogic Date: Wed, 14 Sep 2022 19:49:29 -0700 Subject: [PATCH] Added .gitattributes --- .gitattributes | 1 + src/tag.cpp | 12 ++++-------- 2 files changed, 5 insertions(+), 8 deletions(-) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..8c6f945 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +src/external/** linguist-vendored diff --git a/src/tag.cpp b/src/tag.cpp index bc8ec6c..bf7a3a9 100755 --- a/src/tag.cpp +++ b/src/tag.cpp @@ -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) { + if constexpr (std::is_same_v) tag = file.ID3v2Tag(); - } - else if constexpr (std::is_same_v) { + else if constexpr (std::is_same_v) 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) { + if constexpr (std::is_same_v) return file.save(T::AllTags, false, config.id3v2version); - } - else if constexpr (std::is_same_v) { + else if constexpr (std::is_same_v) return file.save(); - } } template