Commit 5f81813c authored by Urs Fleisch's avatar Urs Fleisch
Browse files

fixed for building on Debian Etch

parent df09493c
...@@ -84,7 +84,7 @@ binary-arch: build install ...@@ -84,7 +84,7 @@ binary-arch: build install
dh_installman dh_installman
# dh_installinfo # dh_installinfo
dh_installchangelogs ChangeLog dh_installchangelogs ChangeLog
dh_icons -dh_icons
dh_link dh_link
dh_strip dh_strip
dh_compress --exclude=.docbook dh_compress --exclude=.docbook
......
...@@ -69,7 +69,7 @@ binary-arch: build install ...@@ -69,7 +69,7 @@ binary-arch: build install
dh_installman dh_installman
# dh_installinfo # dh_installinfo
dh_installchangelogs ChangeLog dh_installchangelogs ChangeLog
dh_icons -dh_icons
dh_link dh_link
dh_strip dh_strip
dh_compress --exclude=.docbook dh_compress --exclude=.docbook
......
...@@ -624,21 +624,21 @@ bool MusicBrainzClient::getResults(int id, ImportTrackDataVector& trackDataList) ...@@ -624,21 +624,21 @@ bool MusicBrainzClient::getResults(int id, ImportTrackDataVector& trackDataList)
for (int i = 0; i < num; ++i) { for (int i = 0; i < num; ++i) {
albumtrackresult_t* res = *albumTrackResults++; albumtrackresult_t* res = *albumTrackResults++;
ImportTrackData trackData; ImportTrackData trackData;
trackData.title = QString::fromUtf8(res->name); trackData.setTitle(QString::fromUtf8(res->name));
#if HAVE_TUNEPIMP >= 4 #if HAVE_TUNEPIMP >= 4
trackData.artist = QString::fromUtf8(res->artist.name); trackData.setArtist(QString::fromUtf8(res->artist.name));
trackData.album = QString::fromUtf8(res->album.name); trackData.setAlbum(QString::fromUtf8(res->album.name));
trackData.year = res->album.releaseYear; trackData.setYear(res->album.releaseYear);
#else #else
trackData.artist = QString::fromUtf8(res->artist->name); trackData.setArtist(QString::fromUtf8(res->artist->name));
trackData.album = QString::fromUtf8(res->album->name); trackData.setAlbum(QString::fromUtf8(res->album->name));
trackData.year = res->album->releaseYear; trackData.setYear(res->album->releaseYear);
#endif #endif
trackData.track = res->trackNum; trackData.setTrack(res->trackNum);
// year does not seem to work, so at least we should not // year does not seem to work, so at least we should not
// overwrite it with 0 // overwrite it with 0
if (trackData.year == 0) { if (trackData.getYear() == 0) {
trackData.year = -1; trackData.setYear(-1);
} }
trackData.setImportDuration(res->duration / 1000); trackData.setImportDuration(res->duration / 1000);
trackDataList.push_back(trackData); trackDataList.push_back(trackData);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment