mixed output

This commit is contained in:
j 2023-10-28 11:24:51 +02:00
commit fee8e821f9
2 changed files with 12 additions and 5 deletions

View file

@ -57,7 +57,7 @@ class Command(BaseCommand):
source = vo.files.filter(selected=True)[0]
batch = vo.get('batch')[0].replace('Text-', '')
src = source.data.path
target = os.path.join(prefix, 'voice_over', batch, '%s.wav' % fragment_id)
target = os.path.join(prefix, 'voice_over', batch, '%s.wav' % fragment_id)
os.makedirs(os.path.dirname(target), exist_ok=True)
if os.path.islink(target):
os.unlink(target)