mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 07:22:23 -04:00
fix importing of anki1 media
This commit is contained in:
parent
fa1d309885
commit
6ebdd7a8b8
1 changed files with 1 additions and 1 deletions
|
@ -28,7 +28,7 @@ class Anki1Importer(Anki2Importer):
|
||||||
conf = deck.decks.confForDid(1)
|
conf = deck.decks.confForDid(1)
|
||||||
# merge
|
# merge
|
||||||
deck.close()
|
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.deckPrefix = re.sub(r"\.anki$", "", os.path.basename(self.file))
|
||||||
self.file = deck.path
|
self.file = deck.path
|
||||||
Anki2Importer.run(self, mdir)
|
Anki2Importer.run(self, mdir)
|
||||||
|
|
Loading…
Reference in a new issue