aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2018-06-11 15:17:51 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2018-06-11 15:17:51 +0000
commit414c5245e4927ba40963e83d1a8ab09ecfe16502 (patch)
tree928f13096fb76fa4492786f34efaa918ebeb3e01 /src
parentea32483ef370487e59f04dd581a59c1409f8241d (diff)
downloadqmmp-414c5245e4927ba40963e83d1a8ab09ecfe16502.tar.gz
qmmp-414c5245e4927ba40963e83d1a8ab09ecfe16502.tar.bz2
qmmp-414c5245e4927ba40963e83d1a8ab09ecfe16502.zip
update all track metadata fields
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@8032 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src')
-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();