From 82d0834e75d5ec8f3ae8edf558f2ec86a5bf0460 Mon Sep 17 00:00:00 2001 From: Martchus Date: Tue, 2 Feb 2021 11:02:30 +0100 Subject: [PATCH] Adapt to changes in tagparser --- cli/mainfeatures.cpp | 1 + tests/cli.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/cli/mainfeatures.cpp b/cli/mainfeatures.cpp index fdd7304..98b52bc 100644 --- a/cli/mainfeatures.cpp +++ b/cli/mainfeatures.cpp @@ -510,6 +510,7 @@ void setTagInfo(const SetTagInfoArgs &args) fileInfo.parseContainerFormat(diag); fileInfo.parseTags(diag); fileInfo.parseTracks(diag); + fileInfo.parseAttachments(diag); vector tags; // remove tags with the specified targets diff --git a/tests/cli.cpp b/tests/cli.cpp index 21bc20e..96b1266 100644 --- a/tests/cli.cpp +++ b/tests/cli.cpp @@ -258,7 +258,7 @@ void CliTests::testSpecifyingNativeFieldIds() = { "tageditor", "get", "mkv:FOO", "mp4:©foo", "vorbis:BAR", "generic:year", "generic:releasedate", "-f", mkvFile.data(), nullptr }; TESTUTILS_ASSERT_EXEC(args2); CPPUNIT_ASSERT(stderr.empty()); - CPPUNIT_ASSERT(testContainsSubstrings(stdout, { "Year none" })); + CPPUNIT_ASSERT(testContainsSubstrings(stdout, { "Record date none" })); CPPUNIT_ASSERT(testContainsSubstrings(stdout, { "Release date 2010" })); CPPUNIT_ASSERT(testContainsSubstrings(stdout, { "FOO bar" }));