From a351de6904e7dc60ce75308a1229adbeb3e14cd2 Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Tue, 22 Nov 2022 19:34:11 +0100 Subject: [PATCH] TagReaderTagLib: Fix saving FMPS_Playcount Fixes #1074 --- ext/libstrawberry-tagreader/tagreadertaglib.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ext/libstrawberry-tagreader/tagreadertaglib.cpp b/ext/libstrawberry-tagreader/tagreadertaglib.cpp index f89ad47c1..114490497 100644 --- a/ext/libstrawberry-tagreader/tagreadertaglib.cpp +++ b/ext/libstrawberry-tagreader/tagreadertaglib.cpp @@ -1064,14 +1064,14 @@ bool TagReaderTagLib::SaveSongPlaycountToFile(const QString &filename, const spb TagLib::APE::Tag *tag = wavpack_file->APETag(true); if (!tag) return false; if (song.playcount() > 0) { - tag->setItem("FMPS_PlayCount", TagLib::APE::Item("FMPS_PlayCount", TagLib::String::number(static_cast(song.playcount())))); + tag->setItem("FMPS_Playcount", TagLib::APE::Item("FMPS_Playcount", TagLib::String::number(static_cast(song.playcount())))); } } else if (TagLib::APE::File *ape_file = dynamic_cast(fileref->file())) { TagLib::APE::Tag *tag = ape_file->APETag(true); if (!tag) return false; if (song.playcount() > 0) { - tag->setItem("FMPS_PlayCount", TagLib::APE::Item("FMPS_PlayCount", TagLib::String::number(static_cast(song.playcount())))); + tag->setItem("FMPS_Playcount", TagLib::APE::Item("FMPS_Playcount", TagLib::String::number(static_cast(song.playcount())))); } } else if (TagLib::Ogg::XiphComment *xiph_comment = dynamic_cast(fileref->file()->tag())) { @@ -1086,7 +1086,7 @@ bool TagReaderTagLib::SaveSongPlaycountToFile(const QString &filename, const spb TagLib::ID3v2::Tag *tag = mpeg_file->ID3v2Tag(true); if (!tag) return false; if (song.playcount() > 0) { - SetUserTextFrame("FMPS_PlayCount", QString::number(song.playcount()), tag); + SetUserTextFrame("FMPS_Playcount", QString::number(song.playcount()), tag); TagLib::ID3v2::PopularimeterFrame *frame = GetPOPMFrameFromTag(tag); if (frame) { frame->setCounter(song.playcount()); @@ -1105,7 +1105,7 @@ bool TagReaderTagLib::SaveSongPlaycountToFile(const QString &filename, const spb TagLib::APE::Tag *tag = mpc_file->APETag(true); if (!tag) return false; if (song.playcount() > 0) { - tag->setItem("FMPS_PlayCount", TagLib::APE::Item("FMPS_PlayCount", TagLib::String::number(static_cast(song.playcount())))); + tag->setItem("FMPS_Playcount", TagLib::APE::Item("FMPS_Playcount", TagLib::String::number(static_cast(song.playcount())))); } } else if (TagLib::ASF::File *asf_file = dynamic_cast(fileref->file())) {