Arieleg / mpv-copyTime

Copy the current time of the video to clipboard.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How do I remove milliseconds from a script?

AdventurerRussia opened this issue · comments

Hello, please help me remove milliseconds from the script. I don't need them in my work, but they take time to delete.

Hello, sorry to respond so long after. You need to change the strig format.
For lua script:
Replace: time = string.format("%02d:%02d:%02d.%s", time_hours, time_minutes, time_seg, time_ms)
With: time = string.format("%02d:%02d:%02d", time_hours, time_minutes, time_seg)