From 6ebdd7a8b87c0b577912ffe1a1ead985c1c6187d Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sun, 9 Sep 2012 06:29:30 +0900 Subject: [PATCH] fix importing of anki1 media --- anki/importing/anki1.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/anki/importing/anki1.py b/anki/importing/anki1.py index a1cf48596..9292d441c 100644 --- a/anki/importing/anki1.py +++ b/anki/importing/anki1.py @@ -28,7 +28,7 @@ class Anki1Importer(Anki2Importer): conf = deck.decks.confForDid(1) # merge deck.close() - mdir = re.sub(r"\.anki2?$", ".media2", self.file) + mdir = re.sub(r"\.anki2?$", ".media", self.file) self.deckPrefix = re.sub(r"\.anki$", "", os.path.basename(self.file)) self.file = deck.path Anki2Importer.run(self, mdir)