Skip to content

Commit

Permalink
fix bool
Browse files Browse the repository at this point in the history
  • Loading branch information
fearocanity authored Feb 10, 2024
1 parent f7015d6 commit c4d786d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frameposter.sh
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ nth(){
# Note: this code below is tweaked, inshort its adjusted to become synced to frames
sec="$(bc -l <<< "scale=2; (${t:-1} - 1) * 6.8571428571428571429 / ${vid_fps}")"
[[ "${2}" = "timestamp" ]] && sec="$(bc -l <<< "scale=2; ${t:-1} * 6.8571428571428571429 / ${vid_fps}")"
[[ "${bonus}" = "1" ]] && sec="$(bc -l <<< "scale=2; ${sec} + 0.29")"
[[ "${is_bonus}" = "1" ]] && sec="$(bc -l <<< "scale=2; ${sec} + 0.29")"
secfloat="${sec#*.}" sec="${sec%.*}" sec="${sec:-0}"

# This code below is standard, without tweaks. uncomment if the subtitles we're synced.
Expand Down

0 comments on commit c4d786d

Please sign in to comment.