Closed lacygoill closed 5 years ago
gtts
and pons
seem to have stopped working. I'll look into it on a later date.
Set in config listen_via = 'forvo'
- it still works.
Indeed, setting listen_via
to 'forvo'
in interSubs_config.py
fixes the issue. Thank you for the solution.
gtts/pons pronunciation fixed.
Hello,
According to the README page, one can press the right-click button of a mouse while the cursor is over a word to hear its pronunciation.
At the moment, it doesn't seem to work on my machine; here's the output of
mpv
when I press the button:The issue seems to be in the function
_get_token_key()
ininterSubs.py
:https://github.com/oltodosel/interSubs/blob/08ffbcff174569f6da9d0b2bea2bdfa09ec20c7a/interSubs.py#L752
I think that the output of
re.search()
isNone
, so.group(1)
refers to a non-existing capturing group.I can reproduce the issue in a python interpreter:
I don't know whether the issue is in the code, or is due to my internet connection (my AS seems blacklisted by some websites); I can access https://translate.google.com without any issue.
Here are some information about my system:
uname -a
:mpv --version
:python3 --version
:Thank you very much for your plugin.