mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2026-01-13 08:05:55 +01:00
2015-04-07 Fred Gleason <fredg@paravelsystems.com>
* Added a 'RDLIBRARY.READ_ISRC' field to the database. * Incremented the database version to 245. * Added 'RDLibraryConf::readIsrc()' and 'RDLibraryConf::setReadIsrc()' methods in 'lib/rdlibrary_conf.cpp' and 'lib/rdlibrary_conf.h'. * Added a 'Read ISRCs from CD' control to the 'Edit RDLibrary' dialog in 'rdadmin/edit_rdlibrary.cpp' and 'rdadmin/edi_rdlibrary.h'. * Implemented the 'Read ISRCs from CD' option in the full disc ripper in 'rdlibrary/disk_ripper.cpp'. * Implemented the 'Read ISRCs from CD' option in the per-track disc ripper in 'rdlibrary/cdripper.cpp'.
This commit is contained in:
@@ -288,6 +288,19 @@ void RDLibraryConf::setCddbServer(QString server) const
|
||||
}
|
||||
|
||||
|
||||
bool RDLibraryConf::readIsrc() const
|
||||
{
|
||||
return RDBool(RDGetSqlValue("RDLIBRARY","ID",lib_id,"READ_ISRC").
|
||||
toString());
|
||||
}
|
||||
|
||||
|
||||
void RDLibraryConf::setReadIsrc(bool state) const
|
||||
{
|
||||
SetRow("READ_ISRC",RDYesNo(state));
|
||||
}
|
||||
|
||||
|
||||
bool RDLibraryConf::enableEditor() const
|
||||
{
|
||||
return RDBool(RDGetSqlValue("RDLIBRARY","ID",lib_id,"ENABLE_EDITOR").
|
||||
|
||||
Reference in New Issue
Block a user