--- src/collections/musiccollection.cpp.orig 2007-02-03 18:40:40.000000000 +0200 +++ src/collections/musiccollection.cpp 2007-02-06 02:19:38.534155616 +0200 @@ -113,6 +113,12 @@ field->setCategory(i18n(music_personal)); list.append(field); + field = new Field(QString::fromLatin1("bitrate"), "Bitrate"); + field->setCategory(i18n(music_general)); + field->setFlags(Field::NoDelete | Field::AllowCompletion); + field->setFormatFlag(Field::FormatTitle); + list.append(field); + return list; } --- src/translators/audiofileimporter.cpp.orig 2007-02-03 18:40:47.000000000 +0200 +++ src/translators/audiofileimporter.cpp 2007-02-06 02:25:24.840509048 +0200 @@ -108,6 +108,7 @@ const QString track = QString::fromLatin1("track"); const QString comments = QString::fromLatin1("comments"); const QString file = QString::fromLatin1("file"); + const QString bitrate = QString::fromLatin1("bitrate"); m_coll = new Data::MusicCollection(true); @@ -177,6 +178,7 @@ if(!tag->genre().isEmpty()) { entry->setField(genre, TStringToQString(tag->genre()).stripWhiteSpace()); } + entry->setField(bitrate, QString::number(f.audioProperties()->bitrate())); if(!tag->title().isEmpty()) { int trackNum = tag->track(); @@ -253,6 +255,7 @@ kdDebug() << "year - \"" << tag->year() << "\"" << endl; kdDebug() << "comment - \"" << tag->comment().to8Bit() << "\"" << endl; kdDebug() << "track - \"" << tag->track() << "\"" << endl; + kdDebug() << "bitrate - \"" << tag->bitrate() << "\"" << endl; kdDebug() << "genre - \"" << tag->genre().to8Bit() << "\"" << endl;*/ }