Audio Files addon support

Thanks for your answer. I have looked at both the code and at the links for the sound files and the former don’t seem to be easy to guess. Will try to do something but not really confident that I’ll be able to produce anything.

I have added a print statement in ParsedSource

def lookup(self, word):
        print("lookup", word);
        url = self.get_initial_url(urllib.parse.quote(word)

but I have no message on the console. Could it be possible that this plugin is not compatible with Anki V ⁨2.1.54 ?

I’ve checked getting перевернуться from Wiktionary, and see no issue with that, so I’m not sure what the issue that you are seeing is caused by.

To see console output you need to start Anki using anki-console Console Output - Writing Anki Add-ons (ankiweb.net)

I have found that the Forvo parser needed to be updated to reflect a change that has been made to the Forvo website, and I’ve just released an update with that minor change.

Thanks for your answer. I am on Linux and did start Anki from the console. I have updated the plugin and though before updating I could not get the sound file on any page whatsoever it works again. I guess there was a problem between the plugin and the version of Anki.

Anyway, everything is ok now, thanks for updating the addon though you are in busy time!
Best regards

Hello !
I was wondering if the add-on could work on Anki mobile as I usually do my card on my phone rather than the computer.
I really suck with Anki and it s my first add-on.
Thanks you

Unfortunately not as Anki mobile doesn’t support any python addons.

Hello,
Firstly thank you so very much for this add-on. I know it’s good and that it works. However, I seem to have encountered this error when I click on ‘config’ in the ‘add-ons manager menu’ after downloading this add-on, restarting, and even after deleting it and beginning all over again. Thank you again in advance.

Here is the message I receive from Anki:

Anki 24.06.3 (d678e393)  (ao)
Python 3.9.18 Qt 6.6.2 PyQt 6.6.1
Platform: macOS-11.4-x86_64-i386-64bit

Traceback (most recent call last):
  File "aqt.addons", line 1024, in onConfig
  File "/Users/redacted/Library/Application Support/Anki2/addons21/1984823157/__init__.py", line 50, in configure
    if DlgConfig(config['profiles'][mw.pm.name]).exec():
  File "/Users/redacted/Library/Application Support/Anki2/addons21/1984823157/dlgconfig.py", line 10, in __init__
    self.setWindowFlags(Qt.Dialog)
AttributeError: type object 'Qt' has no attribute 'Dialog'

===Add-ons (active)===
(add-on provided name [Add-on folder, installed at, version, is config changed])
Audio Files ['1984823157', 2022-07-30T22:20, 'None', '']

===IDs of active AnkiWeb add-ons===
1984823157

===Add-ons (inactive)===
(add-on provided name [Add-on folder, installed at, version, is config changed])

Also each time I run the ‘config’ button it causes Anki to hang and I can only shut it down forcefully. I had a look at the lines specified from the error code but I fail to see a solution. Your help would be greatly appreciated. Lastly, please keep up this great piece of work!

I’ve not updated this to Qt6 - it still uses Qt5.

I’ll try to update it to Qt6 in the autumn.

I see. No problems. Take your time. Now I know what I can do int he mean time. Thanks!