Closed kieranlblack closed 4 months ago
@tchen9922 are you familiar with installing a custom extension in anki? Curious if this patch fixes the bug for you.
@kieranlblack No sorry, I've never installed a custom extension in anki before. I tried to find a tutorial on YouTube, but nothing popped up :(
Thanks Kieran, looks good!
Baidu web server seems to behave nondeterministically when the extension is not supplied, sometimes returning 200 OK but with Content-Length 0. When the extension is sent, the audio/mpeg content is returned as expected. Automatically sending the alpn extension was added in python 3.10 (https://github.com/python/cpython/commit/f97406be4c0a02c1501c7ab8bc8ef3850eddb962), but Anki is still using 3.9.
Close #61.