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 Metadata Indexer
Commits
6214a51a
Unverified
Commit
6214a51a
authored
Nov 05, 2020
by
Sebastian Schüpbach
Browse files
fix over-intendation error
parent
84ebabc3
Pipeline
#16657
passed with stages
in 4 minutes and 8 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
mediametadatatodb_app/resources/MediametadataToDB.py
View file @
6214a51a
...
...
@@ -139,7 +139,7 @@ def _create_audio_snippet_entry(record, mariadbCursor):
snippet_record
[
'sig'
]
=
snippet_record
[
'sig'
]
+
'-intro'
snippet_record
[
'duration'
]
=
\
30.0
if
float
(
snippet_record
[
'duration'
])
>=
30.0
\
else
float
(
snippet_record
[
'duration'
])
else
float
(
snippet_record
[
'duration'
])
snippet_record
[
'mimetype'
]
=
'audio/mpeg'
snippet_record
[
'uri'
]
=
\
'.'
.
join
(
snippet_record
[
'uri'
].
split
(
'.'
)[
0
:
-
1
])
+
'-intro.mp3'
...
...
Write
Preview
Supports
Markdown
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