mirror of
https://github.com/stashapp/CommunityScripts.git
synced 2026-04-17 11:10:57 -05:00
Update miscTags.py
Fix bug if vr tag has not been configured
This commit is contained in:
@@ -93,11 +93,15 @@ def processVRTags(scene,tags):
|
||||
found=True
|
||||
if found:
|
||||
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')
|
||||
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')
|
||||
|
||||
else:
|
||||
tags.append('VR')
|
||||
return None
|
||||
@@ -142,8 +146,6 @@ if 'mode' in json_input['args']:
|
||||
PLUGIN_ARGS = json_input['args']["mode"]
|
||||
if 'processScenes' in PLUGIN_ARGS:
|
||||
processScenes()
|
||||
elif 'test' in PLUGIN_ARGS:
|
||||
log.debug(stash.get_configuration()['ui']['vrTag'])
|
||||
|
||||
|
||||
|
||||
@@ -151,4 +153,4 @@ elif 'hookContext' in json_input['args']:
|
||||
id=json_input['args']['hookContext']['id']
|
||||
if json_input['args']['hookContext']['type']=='Scene.Update.Post':
|
||||
scene=stash.find_scene(id)
|
||||
processScene(scene)
|
||||
processScene(scene)
|
||||
|
||||
Reference in New Issue
Block a user