Skip to content

Commit 807c63b

Browse files
author
anonymous
committed
tagScenesWithPerfTags setting to disable for organized scenes
1 parent 4ccbf2f commit 807c63b

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

plugins/tagScenesWithPerfTags/tagScenesWithPerfTags.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ def processScene(scene):
4242
if tag["name"] == settings["excludeSceneWithTag"]:
4343
should_tag = False
4444
break
45+
46+
if settings['excludeSceneOrganized']:
47+
if scene['organized']:
48+
should_tag = False
4549

4650
if should_tag:
4751
for perf in scene["performers"]:
@@ -64,6 +68,7 @@ def processScene(scene):
6468
config = stash.get_configuration()
6569
settings = {
6670
"excludeSceneWithTag": "",
71+
"excludeSceneOrganized": False
6772
}
6873
if "tagScenesWithPerfTags" in config["plugins"]:
6974
settings.update(config["plugins"]["tagScenesWithPerfTags"])

plugins/tagScenesWithPerfTags/tagScenesWithPerfTags.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Tag Scenes From Performer Tags
22
description: tags scenes with performer tags.
3-
version: 0.2.1
3+
version: 0.2.2
44
exec:
55
- python
66
- "{pluginDir}/tagScenesWithPerfTags.py"
@@ -14,6 +14,10 @@ hooks:
1414
- Scene.Create.Post
1515

1616
settings:
17+
excludeSceneOrganized:
18+
displayName: Exclude Scenes marked as organized
19+
description: Do not automatically tag scenes with performer tags if the scene is marked as organized
20+
type: BOOLEAN
1721
excludeSceneWithTag:
1822
displayName: Exclude Scenes with Tag from Hook
1923
description: Do not automatically tag scenes with performer tags if the scene has this tag

0 commit comments

Comments
 (0)