Skip to main content

One-click mining

asbplayer is great at connecting subtitle and video content to AnkiConnect, but is not able to automatically provide word definitions on its own. For this reason, most sentence mining flows require at two or three mouse or keyboard inputs from the user.

One-click mining is possible if asbplayer is combined with another application that:

  • supplies the missing word definition information, and
  • already integrates with AnkiConnect.

Yomitan is an example of one such application.

Install and configure Yomitan

Follow the directions on Yomitan's website to install Yomitan and configure it with a dictionary for your target language.

Run asbplayer's AnkiConnect proxy

Follow the WebSocket server guide to setup an AnkiConnect proxy that allows asbplayer to enrich AnkiConnect cards before they finally reach AnkiConnect.

Point Yomitan at the proxy

Configure Yomitan:

  • The AnkiConnect URL should point at the AnkiConnect proxy rather than AnkiConnect. The default proxy URL is http://127.0.0.1:8766.
  • Yomitan should be using the same Note Type as asbplayer.

Mine with Yomitan as usual

Mining sentences using Yomitan will create cards with word definition, image, and audio already provided. A truly one-click mining flow can be achieved if the proxy's POST_MINE_ACTION is 2 (update last card).