Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exported cards' images and audio not synced in Ankidroid #6

Closed
mikavilpas opened this issue Apr 23, 2021 · 4 comments
Closed

Exported cards' images and audio not synced in Ankidroid #6

mikavilpas opened this issue Apr 23, 2021 · 4 comments
Assignees
Labels
documentation Improvements or additions to documentation

Comments

@mikavilpas
Copy link

Here is an issue l just ran into.

How to reproduce:

  • jidoujisho 0.13.0-beta
  • latest ankidroid (2.14.6)
  • desktop anki Version 2.1.22 (0ecc189a)

Steps:

  • in jidoujisho, open a video and "export the current context to anki" to create a card
  • in ankidroid, verify that the created card can display its image and play its audio
  • in ankidroid, sync changes
  • in desktop anki, likewise sync so the new card becomes available
  • in desktop anki, Browse to see the card
  • press Ctrl+L to verify that the card is missing its image, and can't play its audio

A workaround is to run "Check Media" in ankidroid before syncing. After this, the image and audio are synced just fine.

@mikavilpas
Copy link
Author

I was able to reproduce this on my smartphone and my tablet.

Also did some investigation to see if this is anki related and came up with two findings:

Not being familiar with the code, maybe these are totally useless :)

@arianneorpilla
Copy link
Owner

Yeah, this to me seems like AnkiDroid territory. The moment "export" is pressed, the image and audio file are stored in the AnkiDroid collection.media folder and the API is called to add the card to the user's database.

Shouldn't be an issue within this project, and seeing as Check Media solves it, seems to be all nominal.

Thanks for your report and for reproducing the issue, I'll add your workaround somewhere in documentation.

@arianneorpilla arianneorpilla added the documentation Improvements or additions to documentation label Apr 23, 2021
@arianneorpilla arianneorpilla self-assigned this Apr 23, 2021
@arianneorpilla
Copy link
Owner

arianneorpilla commented Apr 23, 2021

I want to make a FAQ later onwards, but for now I've put a relevant line about Check Media under the README.md under Exporting to AnkiDroid.

@arianneorpilla
Copy link
Owner

This is an old issue, but I have changed the way files are exported to the media collection in 0.23.2, I believe AnkiDroid should now be aware of media files as they are imported into the collection, where beforehand I moved the files via the file system and didn't use their API. This means users probably no longer need to Check Media before syncing.

This also addresses an issue where users using SD cards for their AnkiDroid directory could not export files to the app, and removes the option to set the AnkiDroid directory (as the application is now aware of where it is without the user having to set it).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants