Commit Graph
21 Commits
Author SHA1 Message Date
Christoph Mackandflan f3788fc2c8 fix syntax error causing failure in error handler in SyncMediaHandler._remove_media_files() 2017-10-28 19:58:34 +02:00
flan 67830218eb Drop support for Anki <2.0.27 2017-10-28 19:55:50 +02:00
flan ceb931519d Bring back authentication 2017-10-28 19:55:40 +02:00
flan 48cfa9a029 Remove unused lines 2017-10-28 18:25:23 +02:00
flan bd2c5bdff9 Remove SSL support
If there's a need for SSL, you can always use a reverse proxy or
a more advanced WSGI server.

This reverts commit 1678890d3d.
2017-10-28 05:50:18 +02:00
jdoe0 c398ccdb89 Apply @ndl's patches
The patches fix the issue where syncing across different profiles will
always trigger a full sync if there's any change in either of the
profiles.
2016-11-03 22:32:19 +07:00
jdoe0 1678890d3d Add SSL support 2016-06-25 23:59:59 +07:00
Christoph Mackandjdoe0 e32bceccf3 Not only add, but also remove files when adopting changes to client media files in SyncMediaHandler.uploadChanges().
Count added and removed files as processed and increment media usn accodingly.
Refactor SyncMediaHandler.uploadChanges().
2016-04-05 23:24:12 +07:00
Christoph Mackandjdoe0 87ee726d25 Define skey once when creating user session, not each time when beginning media sync. 2016-04-05 23:24:00 +07:00
Christoph Mackandjdoe0 1b1a3d8e22 Define a random skey to return to the client when media syncing begins, so we don't send a null skey value. 2016-04-05 23:21:05 +07:00
Christoph Mackandjdoe0 f03aea67c1 SyncMediaHandler.begin(): return media database usn instead of collection database usn.
If the wrong usn is returned, media syncing on the client will not finish with status "noChanges" even if there have been no changes since the last media sync.
2016-01-24 01:54:35 +07:00
jdoe0 3baad9cfac Fix syncing with AnkiDroid 2015-11-29 11:53:58 +07:00
jdoe0 ab40509cb2 Add missing function _execute_handler_method_in_thread() 2015-11-27 12:17:49 +07:00
jdoe0 8066fba1fe Update for Anki >= 2.0.27
This breaks compatibility with Anki < 2.0.27
2015-11-27 12:17:49 +07:00
David Snopekandjdoe0 0311e25574 Collection.media.illegal() was renamed to Collection.media.hasIllegal() in Anki 2.0.12. 2014-01-04 21:09:56 +07:00
David Snopekandjdoe0 f210f728ea Updated the bundled Anki 2.0.20 and made some fixes for that version. Fixes #9.
Conflicts:
	AnkiServer/importer.py
	anki-bundled
	tests/test_importer.py
2014-01-04 21:09:23 +07:00
jdoe0 525652dad0 Renamed config file to ankisyncd.conf 2014-01-04 20:06:14 +07:00
jdoe0 42f91cce80 thread.py: Remove unused imports 2014-01-04 19:31:29 +07:00
ospalhandjdoe0 b0f4accdce Looks like the old code missed a 'self.'.
Simplified a bit.
2013-12-16 15:49:36 -06:00
ospalhandjdoe0 c0d3b06ea3 Semi-automatically remove trailing whitespace. 2013-12-16 15:49:27 -06:00
jdoe0 5fe057961e Changed module name to ankisyncd 2013-10-19 00:46:55 -05:00