Comments (3)
Unrelated to this repository. You might want to open an issue in https://github.com/stg-annon/stashapi.
from communityscripts.
just answering here if someone comes across it, you can just extend the class with any functions you might want to add
example
from stashapi.stashapp import StashInterface
class MyStashInterface(StashInterface):
def metadata_autotag(self, paths:list=[], dry_run=False):
if not paths:
return
query = """
mutation MetadataAutoTag($input:AutoTagMetadataInput!) {
metadataAutoTag(input: $input)
}
"""
metadata_autotag_input = {
"paths": paths
}
result = self.call_GQL(query, {"input": metadata_autotag_input})
return result
def backup_database(self):
result = self.call_GQL("mutation { backupDatabase(input: {download: false})}")
return result
stash = MyStashInterface()
from communityscripts.
just answering here if someone comes across it, you can just extend the class with any functions you might want to add
Thanks for the example. I've already created a pull request at stashapi.
But I'll use the extended class as a temporary workaround until (and if) the changes get added to stashapi.
from communityscripts.
Related Issues (20)
- [Hot Cards] rating precision broken HOT 2
- [Bug Report] VideoScrollWheel plugin not working HOT 2
- [FileMonitor] dying on ssl errors? HOT 20
- [tagGraph] choking on self signed ssl HOT 1
- Get Task Queue List HOT 9
- Adding StashPluginHelper to stashapp HOT 1
- [PythonToolsInstaller] Wrong Path HOT 1
- [themeSwitch] not applying styles
- How to get [Backup Directory Path] HOT 1
- [RenamerOnUpdate] Does not respect performer rating when it's a 100.
- [tagSceneswithPerfTags] Script running during a Scene update will cause the "Apply" or "Save" button to spin continuously.
- β[RFC] API to get Stash folder and executable
- πfind_duplicate_scenes throws exception HOT 2
- [Feature] Persistent volume for incognito browsing HOT 3
- β[RFC] Post information to the Task Queue HOT 3
- [Feature] Let user change a video's audio pitch HOT 1
- [stash-watcher] script broken by watchdog 5.0.0 HOT 2
- [DupFileManager][Feature] Swap files based on codec HOT 14
- [Feature] Add lookalikes to performer profiles HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from communityscripts.