-
Notifications
You must be signed in to change notification settings - Fork 81
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
Addon does not set the sync-server url in Anki versions > 2.1.26 #19
Comments
EDIT: I need to stop being an ass regarding the upstream author! Actually it is still perfectly possible to point to alternative server implementations. The base url(s) This gets Anki 2.1.32 pointing to a local server implementation (from source):
And obviously the same thing will work on any platform, one just needs to configure the envvars correctly. |
Wow, I am blind 🤦 Thank you for pointing this out. With import os
addr = "http://127.0.0.1:27701/"
os.environ["SYNC_ENDPOINT"] = addr + "sync/"
os.environ["SYNC_ENDPOINT_MEDIA"] = addr + "msync/" as addon for Anki and
as local nginx proxy, I am able to intercept synchronization requests with Anki versions >= 2.1.28. |
As of Anki version 2.1.28, the server address is not affected by the addon anymore.
What did I do?
I installed Anki 2.1.28 and created an addon with the following content:
Then I started Anki and hit the Sync button.
What did I expect to happen?
I expected Anki to make a request to the url specified in the addon.
What did happen instead?
Anki made a request to
https://sync.ankiweb.net/msync/
instead.Further information
The urls used for synchronizaton are hardcoded to
https://sync.ankiweb.net
since the commits 0e5b7da62aa0fd3726ca958f1cdae265d2dc0d91 and 529e89f48e747904ffd9c8ebac09739fb410bcaf.Therefore they cannot be easily changed by the addon anymore.
The text was updated successfully, but these errors were encountered: