mentheosis / anki-scanner-chinese-redux

adding text scanning features for chinese redux in anki
GNU General Public License v3.0
5 stars 5 forks source link

Multiple anki_db_path doesn't work #17

Open gena0411 opened 2 years ago

gena0411 commented 2 years ago

Hello,

I used the following syntax to add 2 paths for collections to be searched.

"anki_db_path": { "doc": "Path to the anki2 db file, or to any anki2 file such as from an unzipped .apkg file", "val": [ "D:/OneDrive/Linguistics/Chinese/Pleco_FlashCards_Backup/Pleco_Backup_23apr2022/collection.anki2", "D:/OneDrive/Linguistics/Chinese/Pleco_FlashCards_Backup/HSK 3 Simplified/collection.anki2" ] }, It worked with only one collection, but with two, it produces an error: image

Could you please check?

Specs (please complete the following information):

mentheosis commented 2 years ago

Oh I never set it up to handle multiple db connections, can anki itself handle switching? I think you will need to use one of them at a time with the scanner. I could point out where in the code is relevant if you wanted to try extending it

gena0411 commented 2 years ago

Understood. Thanks. I am too rusty with coding to deal with that myself. I'll better try to combine both decks in one :).