DillonWall / generate-batch-audio-anki-addon

An addon that downloads and attaches audio to flashcards in bulk from URLs. Made for Anki, an SRS flashcard application
https://ankiweb.net/shared/info/1156270186
Apache License 2.0
14 stars 6 forks source link

Add warning message when there is an invalid URL #21

Open DillonWall opened 2 months ago

DillonWall commented 2 months ago

See issue #19 for context.

Sometimes it can be confusing to users how the string replacement for URLs works for this addon.

In addition to possibly some better documentation, it would be good to validate the URLs before attempting to download the audio for cards so that users are notified their URLs are incorrect, and how they could go about fixing them.

Something simple such as a message box that pops up after clicking "Generate" which warns that "There are no corresponding fields on your note type for the parameter , please modify any corresponding URLs and try again."

This change may require a new way to find out what card type is currently selected in the card browser, or a selection box for the user to specify which note type they are trying to generate audio for.