Merge pull request #5709 from ritzalam/fix-update-rec-meta-mult-formats
- update rec metadata for all formats
This commit is contained in:
commit
346a3a0fad
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user