Media files are not being extracted
See original GitHub issueI am not sure if i am doing something wrong but if i use the package.media_files
as shown in the description, the resulted apkg archive contains all necessary files inside and they have correct values.
However i have checked %appdata%\Anki2\<profile_name>\collection.media
and this folder remains empty after i install the apkg file.
If i manually drag all my media files there, then everything works as expected.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:2
- Comments:7 (2 by maintainers)
Top Results From Across the Web
Tips to Fix Windows Cannot Complete the Extraction
Try different locations and if you can completely extract the files, then it goes without saying that the issue is the zip file...
Read more >Fix Exracted Files or Files Not Showing in Folder Windows 10
Here are four solutions for files not showing in folder or extracted files not showing up in Windows 10. Try it to retrieve...
Read more >How To Fix 'Windows Cannot Complete The Extraction' Error
More often than not, a lot of computer related problems can be solved with a restart. Click the Start menu; Click the power...
Read more >SOLVED: “Windows Cannot Complete The Extraction” Error ...
... complete the extraction " when they try to open a zipped file they downloaded using Windows ... ... Your browser can't play...
Read more >Extract files or objects from a PowerPoint file - Microsoft Support
You can extract files and objects, such as videos, photos or documents, from PowerPoint ... The following procedure works on Windows, but not...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@konhi I ran the code above as well and it seems that it is working and the
.mp3
file gets copied to%appdata%Anki2\<profile>\collection.media\
The mistake which i was doing using images was this:
The correct syntax is:
I was under the impression that i could add the
<img src="./{{Answer}}">
text inside the model and only mention the name of the files in the genanki.Note.No i couldn’t fix the problem. Currently i am manually copying the images and audio files to the
collection.media
folder. (for example%appdata%/Anki2/collection.media/data_deck1/<files>
) and i am adding them by the relative path (./data_deck1/file
) which seems to point to thecollection.media
folder.So the answer is that
package.media_files
either does nothing or does not work