ObsidianToAnki / Obsidian_to_Anki

Script to add flashcards from text/markdown files to Anki
GNU General Public License v3.0
1.53k stars 134 forks source link

"Missing audio files" in media folder #217

Open serpro69 opened 3 years ago

serpro69 commented 3 years ago

Hi,

First and foremost thanks a lot for this awesome plugin!

I'm trying to add an audio file to a note and facing an issue that the media files are said to be missing in the media directory.

Let's say I have the following card:

START
Text: Some text
Audio: ![[some-audio.mp3]]
END

After I scan the vault, the note is created with all the fields filled out. However the audio was not playing. Then I discovered that anki complains about the following:

The following files are referenced by cards, but were not found in the media folder: Missing: ⁨some-audio.mp3⁩

Am I supposed to copy the audio files manually to the anki data directory (or some place else) or is there a bug in this plugin?

alexandermoennig commented 2 years ago

I had the same issue and "fixed" it by creating a symlink to the collection.media folder inside my obsidian vault & then direclty saved the audio files in there. I also had to activate the media import plugin in anki; not sure why though.

Maybe that helps someone :)