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

log if duration not present

parent fa4b1d34
Pipeline #18001 passed with stages
in 1 minute and 47 seconds
......@@ -253,7 +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:
if 'duration' not in snippet_record:
logging.warning("No duration for audio found: Setting duration to 0")
snippet_record['duration'] = 0
snippet_record['sig'] = snippet_record['sig'] + '-intro'
# //@formatter:off
......
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