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

* Added a 'STATIONS.BROWSER_PATH' field to the database.
	* Incremented the database version to 314.
	* Added a 'Web Browser' control to the 'Edit Host' dialog in
	rdadmin(1).
	* Added a MusicBrainz record lookup button to the full disc ripper
	in rdlibrary(1).
	* Added a MusicBrainz record lookup button to the disc track ripper
	in rdlibrary(1).
This commit is contained in:
Fred Gleason
2020-02-01 17:17:47 -05:00
parent 32a3e34c6e
commit 8dfd341cdf
32 changed files with 352 additions and 80 deletions

View File

@@ -40,6 +40,8 @@
#include "rdmblookup.h"
#include "../icons/musicbrainz-159x25.xpm"
QString err_str="OK";
RDDiscLookup::Result result_code=RDDiscLookup::ExactMatch;
@@ -57,6 +59,22 @@ QString RDMbLookup::sourceName() const
}
QPixmap RDMbLookup::sourceLogo() const
{
return QPixmap(musicbrainz_159x25_xpm);
}
QString RDMbLookup::sourceUrl() const
{
if(discRecord()->discReleaseMbId().isEmpty()) {
return QString();
}
return "https://"+rda->libraryConf()->mbServer()+"/release/"+
discRecord()->discReleaseMbId();
}
void RDMbLookup::lookupRecord()
{
MusicBrainz5::CQuery