From d001b83ab1d6c414da5e1c733676198dd1c18dea Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Thu, 23 Aug 2012 14:11:04 +0900 Subject: [PATCH] fix anki1 media importing again --- 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 ae2255672..a1cf48596 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?$", ".media2", self.file) self.deckPrefix = re.sub(r"\.anki$", "", os.path.basename(self.file)) self.file = deck.path Anki2Importer.run(self, mdir)