Unverified Commit fa4b1d34 authored by Sebastian Schüpbach's avatar Sebastian Schüpbach
Browse files

catch if duration property not present

parent 29dd1815
Pipeline #17998 failed with stages
in 35 seconds
......@@ -253,6 +253,8 @@ def _normalize_duration(duration) -> int:
def _create_audio_snippet_entry(record, mariadb_cursor) -> list:
results = []
snippet_record = record.copy()
if not 'duration' in snippet_record:
snippet_record['duration'] = 0
snippet_record['sig'] = snippet_record['sig'] + '-intro'
# //@formatter:off
snippet_record['duration'] = \
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment