diff --git a/transcribe.py b/transcribe.py index 8d31085..b750f8c 100644 --- a/transcribe.py +++ b/transcribe.py @@ -1,3 +1,4 @@ +import json import logging import os import shutil @@ -93,12 +94,10 @@ def prepare_joint_annotations(result, target_length=200): def extract_subtitles(item, user, layer, translate, gpu=False, join_sentences=False): language = None - """ if "language" not in item.data: language = None else: language = ox.iso.langTo2Code(item.data["language"][0]) - """ if not item.streams(): logger.error("skip item without media %s: %s", item.public_id) return False