diff options
author | Max Kellermann <max@duempel.org> | 2013-10-26 15:33:53 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-10-26 16:04:29 +0200 |
commit | 17ec3b0c2d83da9cae3dc0e649cef2568d20e7c1 (patch) | |
tree | be393fabe4b195da6db1009cb70799117be953ba /src/command/FileCommands.cxx | |
parent | fb7513754027dd59b89955c21c7ab19653ba466e (diff) | |
download | mpd-17ec3b0c2d83da9cae3dc0e649cef2568d20e7c1.tar.gz mpd-17ec3b0c2d83da9cae3dc0e649cef2568d20e7c1.tar.xz mpd-17ec3b0c2d83da9cae3dc0e649cef2568d20e7c1.zip |
FileCommands: "readcomments" understands APE and ID3v2 tags
Implements Mantis ticket 3843.
Diffstat (limited to 'src/command/FileCommands.cxx')
-rw-r--r-- | src/command/FileCommands.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/command/FileCommands.cxx b/src/command/FileCommands.cxx index 9df5b8b58..eecc3102f 100644 --- a/src/command/FileCommands.cxx +++ b/src/command/FileCommands.cxx @@ -27,6 +27,8 @@ #include "util/CharUtil.hxx" #include "util/Error.hxx" #include "tag/TagHandler.hxx" +#include "tag/ApeTag.hxx" +#include "tag/TagId3.hxx" #include "TagFile.hxx" #include "Mapper.hxx" #include "fs/AllocatedPath.hxx" @@ -118,5 +120,8 @@ handle_read_comments(Client &client, gcc_unused int argc, char *argv[]) return CommandResult::ERROR; } + tag_ape_scan2(path_fs, &print_comment_handler, &client); + tag_id3_scan(path_fs, &print_comment_handler, &client); + return CommandResult::OK; } |