-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature request: easily switch api_endpoint #141
Comments
What I did is this:
#/bin/bash
set -e
SCRIPT_DIR=$(dirname -- "$( readlink -f -- "$0"; )")
cd "${SCRIPT_DIR}"
INPUT="Kobo eReader.conf"
# Extract the values into variables
api_endpoint_value=$(sed -n 's/^api_endpoint=//p' "$INPUT")
api_endpoint_backup_value=$(sed -n 's/^api_endpoint_backup=//p' "$INPUT")
# Replace values
sed -i.bak \
-e "s|^api_endpoint=.*|api_endpoint=$api_endpoint_backup_value|" \
-e "s|^api_endpoint_backup=.*|api_endpoint_backup=$api_endpoint_value|" "$INPUT"
# Output result
cat "${INPUT}" | grep "api_endpoint\="
You can then run this action from the NickelMenu and reboot your Kobo to apply it. |
@ragusa87 Thank you sir! It's working! Regarding the first point, please remember to add the following two lines to your Kobo eReader.conf: api_endpoint=https://yourdomain/kobo/........... This ensures that your Kobo device will have the correct main and backup API endpoints configured. |
Currently I use calibre-web as my api_endpoint, but that's hosted locally and on vacation I rather use the bol/kobo store. Would it be possible to have a switch in NickelMenu to change the api_endpoint (and reboot), so I can choose where to download books from?
The text was updated successfully, but these errors were encountered: