You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have set up the rename plugin - works like a charme. However. When the plugin is setup to whitelist/blacklist tags. It's only the main tag and not the aliases.
Workcase:
I have whitelisted (language tags) in the config.py file: tags_whitelist = [ "DE", "US", "ES", "NL", "DK", "US", "FR", "RU", "NO", "SE", "FI", "PL", "PT", "IT", "GR", "TU" ]
I have a scene where that is tagged American, The american tag has a tag alias that is US that should be used in the plug in. Is that possible? I belive it a question of gathering all tags with aliases here:
def graphql_getScene(scene_id): query = ( """ query FindScene($id: ID!, $checksum: String) { findScene(id: $id, checksum: $checksum) { ...SceneData } } fragment SceneData on Scene { id title date rating100 stash_ids { endpoint stash_id } organized""" + FILE_QUERY + """ studio { id name parent_studio { id name } } tags { id name }
And then use it here: + FILE_QUERY + """ studio { id name parent_studio { id name } } tags { id name }.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hallo All,
I have set up the rename plugin - works like a charme. However. When the plugin is setup to whitelist/blacklist tags. It's only the main tag and not the aliases.
Workcase:
I have whitelisted (language tags) in the config.py file:
tags_whitelist = [ "DE", "US", "ES", "NL", "DK", "US", "FR", "RU", "NO", "SE", "FI", "PL", "PT", "IT", "GR", "TU" ]
I have a scene where that is tagged American, The american tag has a tag alias that is US that should be used in the plug in. Is that possible? I belive it a question of gathering all tags with aliases here:
def graphql_getScene(scene_id): query = ( """ query FindScene($id: ID!, $checksum: String) { findScene(id: $id, checksum: $checksum) { ...SceneData } } fragment SceneData on Scene { id title date rating100 stash_ids { endpoint stash_id } organized""" + FILE_QUERY + """ studio { id name parent_studio { id name } } tags { id name }
And then use it here:
+ FILE_QUERY + """ studio { id name parent_studio { id name } } tags { id name }
.Can someone help me on how to get this coded?
Beta Was this translation helpful? Give feedback.
All reactions