jihuaqiang преди 1 месец
родител
ревизия
0d6814ec0c
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      content_indentify/indentify.py

+ 1 - 1
content_indentify/indentify.py

@@ -202,7 +202,7 @@ class ContentIdentifier:
             if isinstance(video_analysis, list):
                 for video_item in video_analysis:
                     if isinstance(video_item, dict) and 'asr_content' in video_item:
-                        if '视频上传失败' in (video_item.get('asr_content') or 'ASR分析失败' in (video_item.get('asr_content') or ''):
+                        if '视频上传失败' in (video_item.get('asr_content') or '') or 'ASR分析失败' in (video_item.get('asr_content') or ''):
                             video_upload_failed = True
                             break
             elif isinstance(video_analysis, dict):