tarina

git clone https://git.tarina.org/tarina
Log | Files | Refs | README | LICENSE

commit 0c6cf3a2f00fd2c69e5c9121a1524040f7542196
parent 6244275618b102cd1eb7d94a19a8206d3f92521b
Author: rob <rob@tarina.org>
Date:   Tue, 16 May 2023 15:59:06 +0100

cancel render

Diffstat:
Mtarina.py | 12++++++++++++
1 file changed, 12 insertions(+), 0 deletions(-)

diff --git a/tarina.py b/tarina.py @@ -1482,6 +1482,18 @@ def counttakes(filmname, filmfolder, scene, shot): takes = takes + 1 return takes +def counttakes_mp4(filmname, filmfolder, scene, shot): + takes = 0 + try: + allfiles = os.listdir(filmfolder + filmname + '/scene' + str(scene).zfill(3) + '/shot' + str(shot).zfill(3)) + except: + allfiles = [] + return takes + for a in allfiles: + if '.mp4' in a: + takes = takes + 1 + return takes + #-----------Count videos on floor----- def countonfloor(filmname, filmfolder):