diff data/fileio/MP3FileReader.cpp @ 632:a4b8ad0f1a8f

* Some sketchy track lookup code
author Chris Cannam
date Fri, 19 Mar 2010 12:21:59 +0000
parents 0a9e960fca53
children b4a8d8221eaf
line wrap: on
line diff
--- a/data/fileio/MP3FileReader.cpp	Mon Jul 19 17:08:56 2010 +0000
+++ b/data/fileio/MP3FileReader.cpp	Fri Mar 19 12:21:59 2010 +0000
@@ -189,6 +189,13 @@
     m_maker = loadTag(tag, "TPE1"); // "lead artist"
     if (m_maker == "") m_maker = loadTag(tag, "TPE2");
 
+    for (unsigned int i = 0; i < tag->nframes; ++i) {
+        if (tag->frames[i]) {
+            QString value = loadTag(tag, tag->frames[i]->id);
+            if (value != "") m_tags[tag->frames[i]->id] = value;
+        }
+    }
+
     id3_file_close(file);
 
 #else