From 1abadaf8fd9240b6fe26801ca63eeed0e8c48b2c Mon Sep 17 00:00:00 2001 From: Arnaud Bienner Date: Sun, 3 Mar 2013 00:49:51 +0100 Subject: [PATCH] Use constants --- ext/libclementine-tagreader/tagreader.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/libclementine-tagreader/tagreader.cpp b/ext/libclementine-tagreader/tagreader.cpp index f46f901fb..5cf43c789 100644 --- a/ext/libclementine-tagreader/tagreader.cpp +++ b/ext/libclementine-tagreader/tagreader.cpp @@ -245,13 +245,13 @@ void TagReader::ReadFile(const QString& filename, } if (items.contains(kMP4_FMPS_Rating_ID)) { - float rating = TStringToQString(items["----:com.apple.iTunes:FMPS_Rating"].toStringList().toString('\n')).toFloat(); + float rating = TStringToQString(items[kMP4_FMPS_Rating_ID].toStringList().toString('\n')).toFloat(); if (song->rating() <= 0 && rating > 0) { song->set_rating(rating); } } if (items.contains(kMP4_FMPS_Playcount_ID)) { - int playcount = TStringToQString(items["----:com.apple.iTunes:FMPS_Playcount"].toStringList().toString('\n')).toFloat(); + int playcount = TStringToQString(items[kMP4_FMPS_Playcount_ID].toStringList().toString('\n')).toFloat(); if (song->playcount() <= 0 && playcount > 0) { song->set_playcount(playcount); }