From 2e11d3557e0190345a00d57549b7a0a474b55f66 Mon Sep 17 00:00:00 2001 From: Maista6969 Date: Fri, 19 Jan 2024 12:42:21 +0100 Subject: [PATCH] Remove dangling else clause in miscTags --- plugins/miscTags/miscTags.py | 14 +++++--------- plugins/miscTags/miscTags.yml | 8 ++++---- 2 files changed, 9 insertions(+), 13 deletions(-) diff --git a/plugins/miscTags/miscTags.py b/plugins/miscTags/miscTags.py index 4bea8eff..1aa08201 100644 --- a/plugins/miscTags/miscTags.py +++ b/plugins/miscTags/miscTags.py @@ -93,15 +93,11 @@ def processVRTags(scene,tags): found=True if found: if 'vrTag' in stash.get_configuration()['ui']: - if 'vrTag' in stash.get_configuration()['ui']: - vr_tag=stash.get_configuration()['ui']['vrTag'] - if vr_tag: - tags.append(vr_tag) - else: - tags.append('VR') - else: - tags.append('VR') - + vr_tag=stash.get_configuration()['ui']['vrTag'] + if vr_tag: + tags.append(vr_tag) + else: + tags.append('VR') else: tags.append('VR') return None diff --git a/plugins/miscTags/miscTags.yml b/plugins/miscTags/miscTags.yml index 3bc8f0ad..7d88e899 100644 --- a/plugins/miscTags/miscTags.yml +++ b/plugins/miscTags/miscTags.yml @@ -20,12 +20,12 @@ settings: description: Comma seperated list of studio number in your instance to tag with export_devor,FLAT for use with stash-vr-companion type: STRING hooks: - - name: process Scene - description: Makes Markers checking against timestamp.trade + - name: Process Scene + description: Adds extra tags to scenes triggeredBy: - Scene.Update.Post tasks: - - name: 'process all' - description: Process all scenes and add extra tags if configured + - name: Process all + description: Process all scenes and add extra tags if configured defaultArgs: mode: processScenes