From 32cee65809ec81d21e8ee25086d529c1be4b6fa5 Mon Sep 17 00:00:00 2001 From: jacqueline Date: Thu, 1 Feb 2024 15:59:53 +1100 Subject: Accept opus files that don't fully parse, remove opus-specific tag parser The libtags change is a bit of a hack... I think we're running into tracks that have long lyrics tags, which pushes the other tags out onto the next ogg page? --- src/database/include/tag_parser.hpp | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) (limited to 'src/database/include') diff --git a/src/database/include/tag_parser.hpp b/src/database/include/tag_parser.hpp index fe7a95f3..f196c479 100644 --- a/src/database/include/tag_parser.hpp +++ b/src/database/include/tag_parser.hpp @@ -20,12 +20,6 @@ class ITagParser { -> std::shared_ptr = 0; }; -class GenericTagParser : public ITagParser { - public: - auto ReadAndParseTags(const std::string& path) - -> std::shared_ptr override; -}; - class TagParserImpl : public ITagParser { public: TagParserImpl(); @@ -33,8 +27,7 @@ class TagParserImpl : public ITagParser { -> std::shared_ptr override; private: - std::map> extension_to_parser_; - GenericTagParser generic_parser_; + auto parseNew(const std::string& path) -> std::shared_ptr; /* * Cache of tags that have already been extracted from files. Ideally this @@ -48,10 +41,4 @@ class TagParserImpl : public ITagParser { // any of our UI. }; -class OpusTagParser : public ITagParser { - public: - auto ReadAndParseTags(const std::string& path) - -> std::shared_ptr override; -}; - } // namespace database -- cgit v1.2.3