Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
memoriav
Memobase 2020
services
postprocessing
Media Converter
Commits
de0985a8
Verified
Commit
de0985a8
authored
Oct 22, 2021
by
Sebastian Schüpbach
Browse files
cut away file extension for binary id
parent
c916f79c
Pipeline
#35332
failed with stages
in 1 minute and 43 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/main/scala/ch/memobase/models/BinaryResourceMetadata.scala
View file @
de0985a8
...
...
@@ -79,7 +79,7 @@ object BinaryResourceMetadata extends RecordUtils {
v
.
obj
match
{
case
v
if
isLocalRecord
(
v
)
&&
isProcessableMimeType
(
v
)
=>
val
instantiation
=
MemobaseResource
(
v
(
"type"
).
str
)
val
locator
=
v
(
"locator"
).
str
.
split
(
"/"
).
last
.
replaceAll
(
" "
,
"_"
)
val
locator
=
v
(
"locator"
).
str
.
split
(
"/"
).
last
.
split
(
"."
)(
0
).
replaceAll
(
" "
,
"_"
)
BinaryResourceMetadata
(
v
(
"@id"
).
str
.
substring
(
s
"$baseUrl/digital/"
.
length
-
1
),
buildDistributorUrl
(
locator
,
distributorHost
,
instantiation
),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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