niemands / StashPlugins

A collection of python plugins for stash
GNU Affero General Public License v3.0
62 stars 17 forks source link

The stash_interface.py is not working if Authentication is enabled #5

Closed Y0ngg4n closed 3 years ago

Y0ngg4n commented 3 years ago

All the Requests should not work if Authentication is enabled at the stash Instance. See here

niemands commented 3 years ago

The plugin gets a cookie used for authentication from stash, which will be passed to the StashInterface in the constructor like for example in the set_ph_urls.py:

def main():
    json_input = readJSONInput()

    client = StashInterface(json_input.get('server_connection'))

https://github.com/niemands/StashPlugins/blob/86533d6b510ed9d2ee3ff6c13ddb0863e17edcf7/py_plugins/stash_interface.py#L22

Y0ngg4n commented 3 years ago

@niemands oh OK sorry my mistake :)