Ensure we update details, even if fail to fetch info from last.fm

BUG:216
This commit is contained in:
craig.p.drummond
2013-05-18 12:40:06 +00:00
parent a27628d2f7
commit 2c4fd4eb8e

View File

@@ -139,7 +139,6 @@ void AlbumView::getDetails()
}
}
}
QUrl url("http://ws.audioscrobbler.com/2.0/");
#if QT_VERSION < 0x050000
QUrl &query=url;
@@ -195,7 +194,6 @@ void AlbumView::infoRetreived()
if (QNetworkReply::NoError==reply->error()) {
QByteArray data=reply->readAll();
if (parseLastFmResponse(data)) {
updateDetails();
QFile f(cacheFileName(Covers::fixArtist(currentSong.albumArtist()), currentSong.album, true));
QtIOCompressor compressor(&f);
compressor.setStreamFormat(QtIOCompressor::GzipFormat);
@@ -204,6 +202,7 @@ void AlbumView::infoRetreived()
}
}
}
updateDetails();
reply->deleteLater();
job=0;
}