diff options
| author | jacqueline <me@jacqueline.id.au> | 2024-02-01 15:59:53 +1100 |
|---|---|---|
| committer | jacqueline <me@jacqueline.id.au> | 2024-02-01 15:59:53 +1100 |
| commit | 32cee65809ec81d21e8ee25086d529c1be4b6fa5 (patch) | |
| tree | 402dd421028795a44d265255d5aa8ce4c1292f72 /src/database/include | |
| parent | 79a6dc1a3ee3a20e03a9fb01b9be0f4badaf197e (diff) | |
| download | tangara-fw-32cee65809ec81d21e8ee25086d529c1be4b6fa5.tar.gz | |
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?
Diffstat (limited to 'src/database/include')
| -rw-r--r-- | src/database/include/tag_parser.hpp | 15 |
1 files changed, 1 insertions, 14 deletions
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<TrackTags> = 0; }; -class GenericTagParser : public ITagParser { - public: - auto ReadAndParseTags(const std::string& path) - -> std::shared_ptr<TrackTags> override; -}; - class TagParserImpl : public ITagParser { public: TagParserImpl(); @@ -33,8 +27,7 @@ class TagParserImpl : public ITagParser { -> std::shared_ptr<TrackTags> override; private: - std::map<std::string, std::unique_ptr<ITagParser>> extension_to_parser_; - GenericTagParser generic_parser_; + auto parseNew(const std::string& path) -> std::shared_ptr<TrackTags>; /* * 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<TrackTags> override; -}; - } // namespace database |
