Damien Elmes
41ca2b0c1c
Merge pull request #19 from ospalh/some-fixes
...
Some fixes
2012-11-07 14:11:10 -08:00
Damien Elmes
36f5fd0e4c
remove obsolete func
2012-11-05 04:32:04 +09:00
ospalh
bc53548355
Import urllib only once.
2012-10-30 10:42:41 +01:00
Damien Elmes
f13acf8c68
handle file name conflicts in media on .anki2 import
2012-09-21 15:25:52 +09:00
Damien Elmes
1db6a0bd3a
don't throw error if we can't return to old folder
2012-09-03 05:02:54 +09:00
Damien Elmes
0ac8c7ae59
use existing stripSounds() instead
2012-07-04 19:29:07 +09:00
Damien Elmes
d47dfc1780
don't include audio in {{FrontSide}}
2012-07-04 18:17:08 +09:00
Damien Elmes
f88bc6ff60
don't add files with / \ or : to log
2012-06-02 17:05:00 +09:00
Damien Elmes
8122c42245
if media is off, don't upgrade it
2012-05-29 08:29:18 +09:00
Damien Elmes
af97497747
option to avoid media dir creation
2012-05-28 17:18:12 +09:00
Damien Elmes
1c5dae84af
ignore media starting with _
2012-05-21 07:51:16 +09:00
Damien Elmes
9aedb4a5e0
don't allow empty files in media folder
2012-05-16 05:35:58 +09:00
Damien Elmes
461e240d53
allow python-bundled json
2012-04-28 17:41:56 +09:00
Damien Elmes
7070b159d5
don't allow ? " or | in media filenames either
2012-04-24 09:16:34 +09:00
Damien Elmes
68da292ddb
copy2->copyfile
...
copy2() will throw an OSError on Linux+fat32 partitions, and we don't really
need the original mode bits or stat data anyway.
2012-04-22 07:33:04 +09:00
Damien Elmes
5c59f6a558
fix illegal check thanks to kostas
2012-04-05 03:50:03 +09:00
Damien Elmes
5dc69ecd47
when reconnecting media, update cwd
2012-03-25 01:44:52 +09:00
Damien Elmes
b5cafd370f
ignore thumbs.db in media sync
2012-03-16 17:11:13 +09:00
Damien Elmes
1f95045621
store media folder as unicode so we can log updated files in unicode
2012-03-13 22:12:21 +09:00
Damien Elmes
abf6e3fa13
don't fall over if cwd doesn't exist
2012-02-13 12:16:52 +09:00
Damien Elmes
3dc9454cd7
revert to the previous cwd rather than assuming a particular path layout
2012-01-30 05:32:18 +09:00
mikem
f3847daae4
fix for FileIO exception when deleting a profile from windows
2012-01-29 19:15:12 +09:00
Damien Elmes
ba0f6f36cc
don't create media db on server
2011-12-13 12:15:13 +09:00
Damien Elmes
d94f6d2011
block illegal filename characters
2011-12-08 19:23:11 +09:00
Damien Elmes
9b76a4669c
compress zip, add media sanity check
2011-12-06 23:36:01 +09:00
Damien Elmes
fabec6e920
more sync resuming changes
...
The server now returns the next usn after every addFiles(), so an interrupted
upload doesn't cause the uploaded material to be sent back down.
2011-12-06 23:04:26 +09:00
Damien Elmes
be66c960a9
rework media syncing so we can resume
2011-12-06 22:18:41 +09:00
Damien Elmes
b33c2e99c0
return false, not 'continue', when not finished
2011-12-05 14:43:32 +09:00
Damien Elmes
0ff59b87e9
make sure we commit after media operations
2011-12-04 13:00:38 +09:00
Damien Elmes
1db4b41e23
use WAL mode if available; don't delete media in check
2011-12-02 22:44:00 +09:00
Damien Elmes
67e4f0d1cc
tweak find code
2011-11-28 20:04:39 +09:00
Damien Elmes
0032dd39c9
return 0 count when media not copied
2011-11-28 16:05:48 +09:00
Damien Elmes
faf2f061a8
log imported card/media counts
2011-11-25 14:13:14 +09:00
Damien Elmes
279a942642
deck -> collection
2011-11-23 17:47:44 +09:00
Damien Elmes
6e4e8249fb
facts -> notes
2011-11-23 12:37:21 +09:00
Damien Elmes
357e5e7036
media.check() takes a list of files for ankiweb integration
2011-11-08 22:32:24 +09:00
Damien Elmes
795cdd7d3f
remove the concept of non-active templates
...
The old template handling was too complicated, and generated frequent
questions on the forums. By dropping non-active templates we can do away with
the generate cards function, and advanced users can simulate the old behaviour
by using conditional field templates.
2011-11-08 18:06:19 +09:00
Damien Elmes
7a849fccc5
fix allMedia() and unit tests
2011-10-29 15:31:27 +09:00
Damien Elmes
ed7367d67f
fix reporting of latex errors; catch some bad commands
2011-10-29 15:12:57 +09:00
Damien Elmes
5ac6cc7a36
don't die if deck has no media folder
2011-10-22 04:33:49 +09:00
Damien Elmes
119217290e
implement anki1 importer
2011-10-21 23:45:42 +09:00
Damien Elmes
b242b06052
import media too
2011-10-21 07:53:22 +09:00
Damien Elmes
cf4abcb403
split upgrade code into separate file; use .anki2 now
2011-10-20 05:26:50 +09:00
Damien Elmes
0c85acf3f7
refactor to support early exit when no media changes
...
- regular sync now receives a media USN as well
- server bumps media usn not only on sync but any other media change
- added local media.hasChanged()
2011-10-06 15:34:22 +09:00
Damien Elmes
afe1ad2b0b
add resync test, fix zip meta
2011-10-06 14:37:07 +09:00
Damien Elmes
8c1f397459
ensure successive calls work
2011-10-06 13:25:01 +09:00
Damien Elmes
866fe8a283
don't sync mod time; media conflicts are very unlikely
2011-10-03 13:33:55 +09:00
Damien Elmes
49181ee738
fix media zipping and addFiles call
2011-10-03 12:59:35 +09:00
Damien Elmes
5da3bba1df
initial work on media syncing
2011-10-03 12:45:08 +09:00
Damien Elmes
22df2790f9
refactor media change logging
2011-09-25 06:33:57 +09:00