Skip to content
Snippets Groups Projects
Commit e6b426a0 authored by Jens Steidl's avatar Jens Steidl :baby_chick:
Browse files

- clarified regex comment

parent 8626ce36
No related branches found
No related tags found
No related merge requests found
......@@ -143,8 +143,13 @@ public class SLUBTechnicalMetadataExtractorMediaConchPlugin implements MDExtract
String line = reader.readLine();
StringBuilder mediainfo_output = new StringBuilder();
while (line != null) {
/* we should patched out, because not allowed to download xsd */
/* String regex = " https://mediaarea\\.net/mediainfo/mediainfo.*\\.xsd";
/* patch out mediainfo schema location because downloading of xsd is not allowed */
/* example input:
<MediaInfo
xmlns="https://mediaarea.net/mediainfo"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="https://mediaarea.net/mediainfo https://mediaarea.net/mediainfo/mediainfo_2_0.xsd"
version="2.0">
*/
String regex = "xsi:schemaLocation=\"[^\"]*\"";
String line_patched = line.replaceAll(regex, "");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment