Skip to content

Commit

Permalink
Marker dupe code not needed
Browse files Browse the repository at this point in the history
Since mp.import_scene_markers ignores any markers too close to other markers, this code isn't needed.
  • Loading branch information
vamiceDev committed Sep 6, 2024
1 parent 2ca7181 commit aef22fc
Showing 1 changed file with 1 addition and 27 deletions.
28 changes: 1 addition & 27 deletions plugins/timestampTrade/timestampTrade.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,33 +72,7 @@ def processSceneTimestamTrade(s):
getTag("[TsTrade]")
marker["tags"] = ["[TsTrade]"]
if len(marker["primary_tag"]) > 0:
if settings["runOnScenesWithMarkers"]:
found = False
cur_marker_string = ";".join(
[
str(marker["title"]),
str(int(marker["seconds"])),
str(getTag(marker["primary_tag"])),
]
)

for m in s["scene_markers"]:
scene_marker_string = ";".join(
[
str(m["title"]),
str(m["seconds"]),
str(m["primary_tag"]["id"]),
]
)
if cur_marker_string == scene_marker_string:
found = True
break
if found:
log.debug("Duplicate marker, ignoring")
else:
markers.append(marker)
else:
markers.append(marker)
markers.append(marker)
if len(markers) > 0:
if settings["overwriteMarkers"]:
stash.destroy_scene_markers(s["id"])
Expand Down

0 comments on commit aef22fc

Please sign in to comment.