migaku-official / Migaku-Anki-Addon

GNU General Public License v3.0
13 stars 1 forks source link

Generating definitions times out #44

Closed MinmoTech closed 1 year ago

MinmoTech commented 1 year ago

image image

This is specific to generating definitions, generating readings works fine

MinmoTech commented 1 year ago

Reports:

Possible solution: https://discord.com/channels/752293144917180496/944336185029971978/1111200161037811793

in definition_add_dialog.py, would it be possible to have the BATCH_SIZE and timeout as configuration items in the Settings window instead of constants in the code? There have been a few reports of timeout when batch-generating definitions. I just reproduced it with my setup and fixed it by decreasing BATCH_SIZE and increasing timeout 😉 In my case, the timeout was at 15 notes, for one of the users it was at 5 notes.