fix censored selection
This commit is contained in:
parent
992d39bc22
commit
187d853b3a
2 changed files with 6 additions and 1 deletions
|
|
@ -74,6 +74,7 @@ class Command(BaseCommand):
|
|||
if type_ == "original":
|
||||
original_target = target
|
||||
if options['censored'] and e.public_id in censored:
|
||||
clip[type_ + "_censored"] = target
|
||||
target = '/srv/t_for_time/censored.mp4'
|
||||
clip[type_] = target
|
||||
durations.append(e.files.filter(selected=True)[0].duration)
|
||||
|
|
|
|||
|
|
@ -469,7 +469,11 @@ def get_fragments(clips, voice_over, prefix):
|
|||
fragment['clips'] = []
|
||||
for clip in clips:
|
||||
#if set(clip['tags']) & set(fragment['tags']) and not set(clip['tags']) & set(fragment['anti-tags']):
|
||||
if clip['original'] in originals:
|
||||
key = 'original'
|
||||
original = clip['original']
|
||||
if 'original_censored' in clip:
|
||||
original = clip['original_censored']
|
||||
if original in originals:
|
||||
fragment['clips'].append(clip)
|
||||
fragment["voice_over"] = voice_over.get(str(fragment["id"]), {})
|
||||
fragments.append(fragment)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue