Skip to content

Commit 36133e7

Browse files
Add support for end seconds
1 parent 3a882f3 commit 36133e7

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

plugins/timestampTrade/timestampTrade.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,11 @@ def processSceneTimestamTrade(s):
5757
"tags": [],
5858
"title": m["name"],
5959
}
60+
61+
# Add end time if setting is enabled and data is available
62+
if settings.get("useMarkerEndTimes", False) and "end_time" in m and m["end_time"]:
63+
marker["end_seconds"] = m["end_time"] / 1000
64+
6065
if settings["addTsTradeTag"]:
6166
marker["tags"].append(int(getTag("[Timestamp]")))
6267

plugins/timestampTrade/timestampTrade.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ settings:
5454
mergeMarkers:
5555
displayName: Merge Markers
5656
type: BOOLEAN
57+
useMarkerEndTimes:
58+
displayName: Use marker end times
59+
description: When available, import end times for markers from timestamp.trade
60+
type: BOOLEAN
5761

5862
hooks:
5963
- name: Add Marker to Scene

0 commit comments

Comments
 (0)