2020-02-02 Fred Gleason <fredg@paravelsystems.com>

* Fixed a bug in the full disc ripper in rdlibrary(1)that caused it
	to fail to save MBIDs to the database after a successful rip.
	* Fixed a bug in the disc track ripper in rdlibrary(1)that caused it
	to fail to save MBIDs to the database after a successful rip.
This commit is contained in:
Fred Gleason
2020-02-01 12:40:13 -05:00
parent 1e207e7e0a
commit 32a3e34c6e
8 changed files with 56 additions and 6 deletions

View File

@@ -154,6 +154,7 @@ RDDiscLookup::Result RDMbLookup::ProcessRelease(MusicBrainz5::CRelease *release)
//
// Extract Basic Release Data
//
discRecord()->setDiscReleaseMbId(QString::fromUtf8(release->ID().c_str()));
discRecord()->setDiscAlbum(QString::fromUtf8(release->Title().c_str()));
//discRecord()->setDiscGenre();
QStringList f0=QString::fromUtf8(release->Date().c_str()).split("-");
@@ -184,13 +185,10 @@ RDDiscLookup::Result RDMbLookup::ProcessRelease(MusicBrainz5::CRelease *release)
//
// Get Labels
//
MusicBrainz5::CLabelInfoList *labels=
metadata.Release()->LabelInfoList();
MusicBrainz5::CLabelInfoList *labels=metadata.Release()->LabelInfoList();
if(labels) {
std::cout << *labels << std::endl;
discRecord()->
setDiscLabel(QString::fromUtf8(labels->Item(0)->
Label()->Name().c_str()));
discRecord()->setDiscLabel(QString::fromUtf8(labels->Item(0)->
Label()->Name().c_str()));
}
//