StashDB Tag Import

:placard: Summary Import over 2k curated Tags with Descriptions from StashDB into your Stash to have ready to use for your media.
:link: Repository https://github.com/Serechops/Serechops-Stash/tree/main/plugins/stashDBTagImport
:information_source: Source URL https://serechops.github.io/Serechops-Stash/index.yml
:open_book: Install How to install a plugin?

Requirements

  • Python 3.x
  • requests library (pip install requests)
  • stashapi module (pip install stashapp-tools)

Usage

Run the Import StashDB Tags plugin task in Settings > Tasks > Plugin Tasks to import over 2,000 curated Tags with descriptions from StashDB.

Configuration

  • graphql_url: URL of the GraphQL endpoint. Update this variable to match your endpoint. Default: http://localhost:9999/graphql
5 Likes

Works great on a new install, but would it be possible to have it add the StashDB descriptions to existing tags?

3 Likes

@Serechops In addition to the comment above. If I am using the tag in my own instance as alias that tag is not getting updated

1 Like

I’ve got the plugin installed, but it doesn’t seem to be working.

I see in the README that I need to “pip install requests” and “pip install stashapp-tools”

I tried this with "pip3” and I get an error from homebrew that says I should try “brew install” instead. But then there are no packages for “requests” or “stashapp-tools” in homebrew! Seems like a circular issue that I don’t know how to get around.

Any advice?

Are you using Stash in Docker by chance? Standard install of Python should include ‘pip’ by default, so pip install requests stashapp-tools should work for you.

No, I’m using macOS. I typically use pip3 or brew to install packages but neither is working in this case.

Hmm
that is odd. Unfortunately, I don’t have much experience with macOS, although one would think Python is supposed to be platform agnostic.

1 Like

Now that stash was updated with stashids being introduced for tags, will you please update this plugin to include the stashid for each tag?