Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mediaconch_plugin4rosetta
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Harbor Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Digital Preservation
mediaconch_plugin4rosetta
Commits
e6b426a0
Commit
e6b426a0
authored
3 years ago
by
Jens Steidl
Browse files
Options
Downloads
Patches
Plain Diff
- clarified regex comment
parent
8626ce36
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
java/org/slub/rosetta/dps/repository/plugin/SLUBTechnicalMetadataExtractorMediaConchPlugin.java
+7
-2
7 additions, 2 deletions
...lugin/SLUBTechnicalMetadataExtractorMediaConchPlugin.java
with
7 additions
and
2 deletions
java/org/slub/rosetta/dps/repository/plugin/SLUBTechnicalMetadataExtractorMediaConchPlugin.java
+
7
−
2
View file @
e6b426a0
...
...
@@ -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
,
""
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment