Skip to content

Commit

Permalink
fill in empty .end so we can add the fade to credits bit
Browse files Browse the repository at this point in the history
  • Loading branch information
CarlFK committed Aug 3, 2024
1 parent 1fdfcc3 commit 5177187
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion dj/scripts/enc.py
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,10 @@ def hms_to_clock(hms):
# else None

cut['in']=hms_to_clock(cl.start)
cut['out']=hms_to_clock(cl.end)
if cl.end:
cut['out']=hms_to_clock(cl.end)
else:
cut['out']=hms_to_clock(str(cl.raw_file.get_seconds()))

cut['length'] = cl.duration()

Expand Down

0 comments on commit 5177187

Please sign in to comment.