From 17ec3b0c2d83da9cae3dc0e649cef2568d20e7c1 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 26 Oct 2013 15:33:53 +0200 Subject: FileCommands: "readcomments" understands APE and ID3v2 tags Implements Mantis ticket 3843. --- src/command/FileCommands.cxx | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/command/FileCommands.cxx') 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; } -- cgit v1.2.3