Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
goulven authored and goulven committed Oct 25, 2024
1 parent cb57a32 commit 03010c9
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -620,15 +620,20 @@ private void addResources(DataFragment dataFragment, Map<String, String> item, D
}

// Adding all resources patterns
Set<String> toRemove = new HashSet<String>();
for (Entry<String, String> attr : item.entrySet()) {

if (ResourceHelper.isResource(attr.getValue())) {
Resource r = new Resource(attr.getValue());
// TODO (p2, feature) : handle COVERS
dataFragment.addResource(r);
removeFromSource(item, attr.getKey());
toRemove.add( attr.getKey());
}
}
toRemove.forEach(e -> {
removeFromSource(item,e);

});

} catch (ValidationException e) {
logger.warn("Problem while adding resource for {}", item);
Expand Down

0 comments on commit 03010c9

Please sign in to comment.