Skip to content

Usage

Basic usage

  1. Backup your database and files (unless you trust a stranger to not ruin your database).

  2. Enable the Hydrus Client API and create an access key with all permissions.

    • The program needs access to your entire database. Do NOT use blacklist/whitelist filters for the API token.

    • https is the default for the client API URL.

      • Specify your Hydrus API URL with --api-url if you need http
        • Ex. python -m hydrusvideodeduplicator --api-url=http://localhost:45869
      • ⚠️ SSL cert is not verified by default unless you enter the cert's file path with --verify-cert
    • Enable allow non-local connections in manage services->client api if you are using WSL or the connection will fail.

  3. Run and enter your access key as a parameter

python3 -m hydrusvideodeduplicator --api-key="put your Hydrus api key here"
Example
python3 -m hydrusvideodeduplicator --api-key="78d2fcc9fe1f43c5008959ed1abfe38ffedcfa127d4f051a1038e068d3e32656"

You can select certain files with queries just like Hydrus. e.g. --query="character:batman"

Example
python3 -m hydrusvideodeduplicator --api-key="78d2fcc9fe1f43c5008959ed1abfe38ffedcfa127d4f051a1038e068d3e32656" --query="character:batman"

To cancel processing, press CTRL+C.

See the full list of options with --help.

See the FAQ for more information.