mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2026-01-12 07:35:55 +01:00
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:
@@ -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()));
|
||||
}
|
||||
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user