6 1
Contact Author Sign in to rate

Aglish - YouGlish Widget for Anki

<10kB. Updated 2022-05-16. Only supports Anki 2.1.x.
The author has shared 16 other item(s).

Description

Anki add-on for YouGlish; a service that helps you learn a language in context by showing you Youtube videos containing a word or a phrase you want to learn its pronunciation, meaning, etc. YouGlish supports many languages and customizations of the interface. This add-on supports all languages supported by YouGlish and some customizations. Usage The add-on integrates YouGlish with Anki through a custom filter you put in your card templates (e.g. {{aglish:Front}}). Its usage is quite simple. Let's go through some examples: All options have default values so they can be omitted; {{aglish:Front}} assumes English in all accents, showing a widget in Anki's theme with captions. For a list of all supported languages and accents, see YouGlish documentation (scroll down to the documentation of the widget.fetch function). Watch this video for a demo of the add-on. Experimental Support for YouGlish login I've recently added experimental support to allow users to use their YouGlish account and premium subscription plans in the add-on. This is not tested. I appreciate if someone can test it with their premium plan and tell me about the result. To use your YouGlish account with the add-on, you first need to log in to your YouGlish account in your web browser, then copy some cookie values and paste them in the add-on's config under the cookies property. You can see the cookies by opening the developer tools of your browser and going to the Storage tab, then you will find a list of values under Cookies > https://youglish.com. You need to copy at least the values of the cookies with the following names: __stripe_mid, yg_username, yg_session, and JSESSIONID. See https://cookie-script.com/documentation/how-to-check-cookies-on-chrome-and-firefox for more detailed instructions. You may need to change these values periodically, and you'll need to change them if you log out of your YouGlish account in the browser. Changelog - 2022-05-15: Added the restrict and hotkey options - 2022-02-16: Fixed error when opening the previewer or card layouts screen - 2022-02-12: Added experimental support for YouGlish login - 2021-07-12: Fixed issue in Anki 2.1.35 - 2021-06-10: Initial release References YouGlish widget API: YouGlish & YouTube Terms of Service You may want to read the Privacy & Terms of Service pages of both YouGlish and YouTube: Support Consider supporting me on Ko-fi if you like my add-ons.

Download

As add-ons are programs downloaded from the internet, they are potentially malicious. You should only download add-ons you trust.

Supported Anki versions:

To download this add-on, please copy and paste the following code into Anki 2.1:

38866997

If you were linked to this page from the internet, please open Anki on your computer, go to the Tools menu and then Add-ons>Browse & Install to paste in the code.

All Anki 2.1.x Add-Ons Contact Author

Reviews

on 1649026995
It is briliiant an addon indeed however it doesn't update existing cards to make addon works you have to add an card after installing the addon

Q: How can I also update existing decks with that feature?
Comment from author
You can update existing cards, and you don't have to add any new cards. Just update your template from the Cards button in the editor window of an existing card, as described in the Usage section.
on 1644686197
this is a good value to anki
Thanks
Comment from author before post was edited
You have to put the filter text described above in your card template. You can access the card templates screen by clicking the "Cards" button in the editor. I'll try to make a video when I have the time.
For more info about card templates, see https://docs.ankiweb.net/templates/intro.html

UPDATE: I made a short video demo: https://www.youtube.com/watch?v=aqc98e5ar64
on 1643911697
I have the same problem of asking for premium subscription after 4 cards.
is there anyway to bypass this?
Comment from author
Maybe you can bypass it by using a VPN and switching your IP address periodically.
I'm investigating a way to use YouGlish's subscription plans in the add-on, if you're willing to subscribe to one of the plans listed in their site at https://youglish.com/subscribe
on 1641843873
Your daily search quota has exceeded.
Please come back tomorrow or upgrade to one of YouGlish's Premium account plans.

Can you help solve this error ? I tried looking more information where to get premium. Didnt find anything.
Comment from author
The message refers to premium use of YouGlish API as shown here under the "REST API Plans" section: https://youglish.com/api/plans

Unfortunately, the premium plan can't be used with this add-on as far as I know, as the add-on uses a different method (The method referred to as "Widget" in the above link) that is provided for free by YouGlish with no option to go premium to increase the quota. I'll try to contact YouGlish's authors to ask them to consider adding an option to use the premium key with the widget.


UPDATE: It turned out the message refers to subscription plans here: https://youglish.com/subscribe
Still, I don't think the subscription plan can be used in Anki since it requires logging in to your YouGlish account.
on 1635442773
I like your addon, I just have one problem.
The autoplay option doesn't show anything.
{{aglish lang=english accent=us autoplay:Vocab}}
Comment from author
Autoplay works for me.
Could you post more info like your Anki version and an export of a sample deck in https://forums.ankiweb.net/t/aglish-youglish-widget-for-anki-official-thread/14503 ?
on 1631746003
very good!
on 1626437434
Can you help us to give more information about how to use it? I don't know how to use
So I tried to add a field to the current note type, and in Card template. I add this code
{{aglish lang=english accent=uk:front}}

but it doesn't seem to work :(
Comment from author
You don't have to add any new field. Just add the code to your card template (accessible from the Cards button in the editor) in either the front or back sides, changing "Front" to an existing field in your note type that you want to query its content.
Are you getting any kind of errors in the card layout screen? if you put this in the Basic note type that comes with Anki, make sure that the field name is correct; it should be "Front", not "front", as field names are case-sensitive.