double VO

This commit is contained in:
j 2026-01-27 12:34:22 +01:00
commit f08520e47f
2 changed files with 45 additions and 15 deletions

View file

@ -1243,20 +1243,27 @@ def process_reshoot_firstframe(character='P1'):
print('>> skip', item)
continue
if item.sort.duration > 30:
reshoot_item_segments(item, character)
pass
#reshoot_item_segments(item, character)
else:
cid = get_character_document(character).get_id()
first_frame = item.documents.filter(
data__character=cid, data__position=position
).order_by('-created').first()
if not first_frame:
first_frame = replace_character(item, character, position)
try:
first_frame = replace_character(item, character, position)
except:
item.refresh_from_db()
add_tag(item, 'ai-failed')
print('>> failed', item)
if first_frame.items.filter(data__type__icontains='ai:').exists():
continue
print(item, first_frame)
try:
reshoot_item(item, first_frame=first_frame)
except:
item.refresh_from_db()
add_tag(item, 'ai-failed')
print('>> failed', item)