Maintenance, error handling

This commit is contained in:
Wyrrrd
2023-05-15 13:52:11 +02:00
parent ecd689ab6a
commit a81d56fe7d
2 changed files with 29 additions and 14 deletions
+7 -6
View File
@@ -1,6 +1,6 @@
**📢 This repo is maintained and up to date.**
<sup>(If it ever gets abandoned, this date will be far in the past: <i>April 2, 2023</i> )</sup>
<sup>(If it ever gets abandoned, this date will be far in the past: <i>May 14, 2023</i> )</sup>
---
@@ -10,16 +10,17 @@ Share files and URLs on Android into Hydrus Client API
## 🛠️ Setup
- Download [HTTP Shortcuts](https://http-shortcuts.rmy.ch/)
- Under "Import / Export", choose "Import from URL", enter<br>`https://github.com/Wyrrrd/send-to-hydrus/releases/latest/download/shortcuts.zip`
- Set variable `hydrus_url` to your Hydrus Client API URL
- Perform request or set variable `hydrus_api_key` to your API key (needs file and URL permissions)
- On first use, this will ask for your Hydrus URL and walk you through API key generation, but you can also set the variables `hydrus_url` and `hydrus_api_key` manually
## ⬆️ Upgrade
If you are using the older, URL-only version, your API key will not have the file permission. To fix this, remove the API key in Hydrus and then create or request a new one.
## 🔑 Permissions
The API key needs file and URL permissions for this to work its magic.
If you are using the older, URL-only version, your API key will not have the file permission. To fix this, remove the API key in Hydrus and clear the variable `hydrus_api_key`. On next use, this will help you setup a new API key with the correct permissions.
## 🤲 Usage
### Easy way (this is what you are here for)
- Share the URL from whatever menu you normally use, as if you would send it to a friend.
- Share the URL or file from whatever menu you normally use, as if you would send it to a friend.
- Choose "HTTP Shortcuts" from the apps list.
- ...
- Profit (?)