Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
KItinerary
Commits
3ffb681c
Commit
3ffb681c
authored
Mar 31, 2021
by
Volker Krause
Browse files
Adapt a few more extractor filters to the new mimetype-based format
parent
5af357d5
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/lib/scripts/sncf.json
View file @
3ffb681c
...
@@ -45,7 +45,7 @@
...
@@ -45,7 +45,7 @@
"filter"
:
[
"filter"
:
[
{
{
"match"
:
"^2200"
,
"match"
:
"^2200"
,
"
t
ype"
:
"
Barcode
"
,
"
mimeT
ype"
:
"
application/octet-stream
"
,
"scope"
:
"Descendants"
"scope"
:
"Descendants"
}
}
],
],
...
...
src/lib/scripts/trenitalia.json
View file @
3ffb681c
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
{
{
"mimeType"
:
"application/pdf"
,
"mimeType"
:
"application/pdf"
,
"filter"
:
[
"filter"
:
[
{
"
t
ype"
:
"
Barcode
"
,
"match"
:
"^
\\
x{14}"
,
"scope"
:
"Descendants"
}
{
"
mimeT
ype"
:
"
application/octet-stream
"
,
"match"
:
"^
\\
x{14}"
,
"scope"
:
"Descendants"
}
],
],
"script"
:
"trenitalia.js"
,
"script"
:
"trenitalia.js"
,
"function"
:
"parsePdf"
"function"
:
"parsePdf"
...
...
src/lib/scripts/vr.fi.json
View file @
3ffb681c
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
"filter"
:
[
"filter"
:
[
{
{
"match"
:
"^
\\
x{10}"
,
"match"
:
"^
\\
x{10}"
,
"
t
ype"
:
"
Barcode
"
,
"
mimeT
ype"
:
"
application/octet-stream
"
,
"scope"
:
"Descendants"
"scope"
:
"Descendants"
}
}
],
],
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment