Skip to content
Snippets Groups Projects
Commit 6f586628 authored by Andreas Romeyke's avatar Andreas Romeyke
Browse files

- fixed #2

parent ba5148a0
No related branches found
No related tags found
No related merge requests found
...@@ -146,10 +146,12 @@ public class SLUBTechnicalMetadataExtractorMediaConchPlugin implements MDExtract ...@@ -146,10 +146,12 @@ public class SLUBTechnicalMetadataExtractorMediaConchPlugin implements MDExtract
/* we should patched out, because not allowed to download xsd */ /* we should patched out, because not allowed to download xsd */
/* String regex = " https://mediaarea\\.net/mediainfo/mediainfo.*\\.xsd"; /* String regex = " https://mediaarea\\.net/mediainfo/mediainfo.*\\.xsd";
*/ */
String regex = "xsi:schemaLocation.*?>"; String regex = "xsi:schemaLocation=\"[^\"]*\"";
String line_patched = line.replaceAll(regex, ""); String line_patched = line.replaceAll(regex, "");
mediainfo_output.append(line_patched); 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(); line = reader.readLine();
} }
reader.close(); reader.close();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment