bpwhelan / GameSentenceMiner

This is (was) a simple project, that watchdogs a folder for a recording (I use OBS with "Replay Buffer"), converts it to audio, trims it according to clipboard and a Local Language Model before adding it to a flashcard.
7 stars 1 forks source link

If card is deleted, before adding, catch the error and just log it #28

Closed bpwhelan closed 4 days ago

bpwhelan commented 4 days ago

viniciusm — Today at 3:09 PM I personally prefer it polling anki connect so that it's not one more addon dependency as it requires less setup, so it would be great if you could keep this behavior at least under a flag to the future and a small thing, sometimes I add a card, see that it's already in kaishi and I did not see it yet, end up deleting the card I added and the script crashes because the card was already deleted after the audio processes

It's pretty much an edge case, but it would be nice to just log the ankiconnect http error instead of raising as well


Probably should clean out the anki media that we added as well.... but anki already has a system for media clean up so idk if i wanna touch that, especially finding the path and all that, nope.