aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/qmmpui/mediaplayer.cpp3
-rw-r--r--src/qmmpui/playlisttrack.cpp5
2 files changed, 8 insertions, 0 deletions
diff --git a/src/qmmpui/mediaplayer.cpp b/src/qmmpui/mediaplayer.cpp
index 9fa4f8e66..b60596739 100644
--- a/src/qmmpui/mediaplayer.cpp
+++ b/src/qmmpui/mediaplayer.cpp
@@ -205,6 +205,7 @@ void MediaPlayer::updateMetaData()
qDebug("GENRE = %s", qPrintable(info.value(Qmmp::GENRE)));
qDebug("YEAR = %s", qPrintable(info.value(Qmmp::YEAR)));
qDebug("TRACK = %s", qPrintable(info.value(Qmmp::TRACK)));
+ qDebug("DISCNUMBER = %s", qPrintable(info.value(Qmmp::DISCNUMBER)));
qDebug("---------------------");
qDebug("BITRATE = %s", qPrintable(info.value(Qmmp::BITRATE)));
qDebug("SAMPLERATE = %s", qPrintable(info.value(Qmmp::SAMPLERATE)));
@@ -218,6 +219,8 @@ void MediaPlayer::updateMetaData()
qDebug("REPLAYGAIN_TRACK_PEAK = %f", info.value(Qmmp::REPLAYGAIN_TRACK_PEAK));
qDebug("REPLAYGAIN_ALBUM_GAIN = %f", info.value(Qmmp::REPLAYGAIN_ALBUM_GAIN));
qDebug("REPLAYGAIN_ALBUM_PEAK = %f", info.value(Qmmp::REPLAYGAIN_ALBUM_PEAK));
+ qDebug("---------------------");
+ qDebug("DURATION = %lld", info.duration());
qDebug("== end of metadata ==");
PlayListModel *pl = m_pl_manager->currentPlayList();
diff --git a/src/qmmpui/playlisttrack.cpp b/src/qmmpui/playlisttrack.cpp
index ef1e24c18..a6c01cb01 100644
--- a/src/qmmpui/playlisttrack.cpp
+++ b/src/qmmpui/playlisttrack.cpp
@@ -83,6 +83,11 @@ PlayListTrack &PlayListTrack::operator=(const PlayListTrack &other)
void PlayListTrack::updateMetaData(const TrackInfo *info)
{
setValues(info->metaData());
+ if(info->parts() & TrackInfo::Properties)
+ setValues(info->properties());
+ if(info->parts() & TrackInfo::ReplayGainInfo)
+ setValues(info->replayGainInfo());
+ setDuration(info->duration());
setPath(info->path());
m_formattedTitles.clear();
m_formattedLength.clear();