diff --git a/java/org/slub/rosetta/dps/repository/plugin/SLUBTechnicalMetadataExtractorMediaConchPlugin.java b/java/org/slub/rosetta/dps/repository/plugin/SLUBTechnicalMetadataExtractorMediaConchPlugin.java index bca39e9b61ebc54f90ed7ad2c06cb66413f58e68..5e84c5b2c061938656f0833431736d49f8e2b28b 100644 --- a/java/org/slub/rosetta/dps/repository/plugin/SLUBTechnicalMetadataExtractorMediaConchPlugin.java +++ b/java/org/slub/rosetta/dps/repository/plugin/SLUBTechnicalMetadataExtractorMediaConchPlugin.java @@ -146,10 +146,12 @@ public class SLUBTechnicalMetadataExtractorMediaConchPlugin implements MDExtract /* we should patched out, because not allowed to download xsd */ /* String regex = " https://mediaarea\\.net/mediainfo/mediainfo.*\\.xsd"; */ - String regex = "xsi:schemaLocation.*?>"; + String regex = "xsi:schemaLocation=\"[^\"]*\""; String line_patched = line.replaceAll(regex, ""); mediainfo_output.append(line_patched); - System.out.println("LINE (patched): " + line_patched); + if (!line.equals(line_patched)) { + System.out.println("monkey patched line:\n- " + line + " to new line:\n+ " + line_patched); + } line = reader.readLine(); } reader.close();