2025-07-01 Fred Gleason <fredg@paravelsystems.com>

* Added a 'bool incl_str_fields' parameter to the
	'RDCut::setMetadata()' and 'RDCut::getMetadata()' methods.
	* Fixed a bug in rdcatchd(8) that caused embedded source start and
	end datetime metadata to fail to be applied in download events when
	the 'Update Library Metadata' attribute was not selected.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason
2025-07-01 11:10:37 -04:00
parent 81bb5e42cc
commit 2d3f70950a
10 changed files with 36 additions and 15 deletions

View File

@@ -392,7 +392,7 @@ bool MainObject::Export(CatchEvent *evt,QString *err_msg)
if(evt->enableMetadata()) {
wavedata=new RDWaveData();
cart->getMetadata(wavedata);
cut->getMetadata(wavedata);
cut->getMetadata(wavedata,true);
conv->setDestinationWaveData(wavedata);
}
switch((conv_err=conv->convert())) {
@@ -481,9 +481,11 @@ bool MainObject::Import(CatchEvent *evt,QString *err_msg)
ret=false;
break;
}
if((conv->sourceWaveData()!=NULL)&&(evt->enableMetadata())) {
cart->setMetadata(conv->sourceWaveData());
cut->setMetadata(conv->sourceWaveData());
if(conv->sourceWaveData()!=NULL) {
cut->setMetadata(conv->sourceWaveData(),evt->enableMetadata());
if(evt->enableMetadata()) {
cart->setMetadata(conv->sourceWaveData());
}
}
rda->syslog(LOG_INFO,"completed import of %s to cut %s, id=%d",
(const char *)evt->tempName().toUtf8(),