Skip to content

Commit

Permalink
addressed duplicated function
Browse files Browse the repository at this point in the history
  • Loading branch information
iluvcapra committed Apr 11, 2024
1 parent f399efc commit 985f89c
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions ptsl/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -935,31 +935,6 @@ def select_tracks_by_name(self, names: List[str],
op = ops.SelectTracksByName(track_names=names, selection_mode=mode)
self.client.run(op)

def set_timeline_selection(self, start: str, end: str,
playhead_time: Optional[str]):
"""
Sets temporal selection range
"""
# TODO expose remaining arguments
# string pre_roll_start_time = 4
# string post_roll_stop_time = 5
# TripleBool pre_roll_enabled = 6
# TripleBool post_roll_enabled = 7
# TimelineUpdateVideo update_video_to = 8
# TripleBool propagate_to_satellites = 9

if playhead_time is None:
playhead_time = start

self.client.run(ops.SetTimelineSelection(
play_start_marker_time=playhead_time,
in_time=start,
out_time=end,
pre_roll_start_time=start,
post_roll_stop_time=end,
update_video_to=pt.TUV_None,
))

def get_timeline_selection(self) -> pt.GetTimelineSelectionResponseBody:
"""
Returns data about the current temporal selection, including
Expand Down

0 comments on commit 985f89c

Please sign in to comment.