diff options
| author | San Jacobs | 2025-12-12 04:52:35 +0100 |
|---|---|---|
| committer | San Jacobs | 2025-12-12 04:52:35 +0100 |
| commit | e192100ea735fb4f3105468862a978cfbf51938a (patch) | |
| tree | 22779c4be5ae410ed33697d68e13b465302e5191 /src/main.odin | |
| parent | cb7ef81fd339199c69eccd93105c13d2a1f41f71 (diff) | |
| download | better-report-e192100ea735fb4f3105468862a978cfbf51938a.tar.gz better-report-e192100ea735fb4f3105468862a978cfbf51938a.tar.bz2 better-report-e192100ea735fb4f3105468862a978cfbf51938a.zip | |
I'm so happy with this update that it's version 1.4
Diffstat (limited to 'src/main.odin')
| -rw-r--r-- | src/main.odin | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/main.odin b/src/main.odin index 7255dd6..20969c1 100644 --- a/src/main.odin +++ b/src/main.odin @@ -172,6 +172,7 @@ parse_folder :: proc(paths : Directory) -> (Report, bool) { append(&header_build, "File Name") append(&header_build, "Scene") append(&header_build, "Take") + append(&header_build, "Duration") append(&header_build, "Timecode") append(&header_build, "TC FPS") append(&header_build, "User Bits") @@ -244,12 +245,10 @@ parse_folder :: proc(paths : Directory) -> (Report, bool) { row[i] = w.scene case "Take": row[i] = fmt.tprintf("T%03d", w.take) + case "Duration": + row[i] = wav.tprint_duration(w) case "Timecode": - row[i] = fmt.tprintf("%02d:%02d:%02d:%02d", // Timecode - w.timecode.hour, - w.timecode.minute, - w.timecode.second, - int(math.round(w.timecode.frame))) + row[i] = wav.tprint_timecode(w) case "TC FPS": if w.tc_dropframe { // TC FPS row[i] = fmt.tprintf("%.03f DF", w.tc_framerate) @@ -258,7 +257,7 @@ parse_folder :: proc(paths : Directory) -> (Report, bool) { } case "User Bits": if w.ubits != {0,0,0,0,0,0,0,0,} { - row[i] = fmt.tprintf("%d%d%d%d%d%d%d%d", expand_values(w.ubits)) + row[i] = fmt.tprint(expand_values(w.ubits), sep="") } case "Tape": row[i] = w.tape |