mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-06-22 06:22:06 +08:00
replay assume segment number
This commit is contained in:
@@ -329,6 +329,10 @@ def keyboard_controller_thread(q, route_start_time):
|
||||
seek_time_input = input('time: ')
|
||||
seek_time = absolute_time_str(seek_time_input, route_start_time)
|
||||
|
||||
# If less than 60, assume segment number
|
||||
if seek_time < 60:
|
||||
seek_time *= 60
|
||||
|
||||
q.send_pyobj(SeekAbsoluteTime(seek_time))
|
||||
except Exception as e:
|
||||
print("Time not understood: {}".format(e))
|
||||
|
||||
Reference in New Issue
Block a user