Merge pull request #5709 from ritzalam/fix-update-rec-meta-mult-formats

- update rec metadata for all formats
This commit is contained in:
Richard Alam 2018-06-18 11:49:57 -04:00 committed by GitHub
commit 346a3a0fad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -477,11 +477,10 @@ public class RecordingService {
for (String recordID : recordIDs) {
for (Map.Entry<String, List<File>> entry : allDirectories.entrySet()) {
List<File> recs = getRecordingsForPath(recordID, entry.getValue());
// Lookup the target recording
Map<String,File> recsIndexed = indexRecordings(recs);
if ( recsIndexed.containsKey(recordID) ) {
File recFile = recsIndexed.get(recordID);
File metadataXml = recordingServiceHelper.getMetadataXmlLocation(recFile.getPath());
// Go through all recordings of all formats
for (File rec : recs) {
File metadataXml = recordingServiceHelper.getMetadataXmlLocation(rec.getPath());
updateRecordingMetadata(metadataXml, metaParams, metadataXml);
}
}