That's a Python bug: http://bugs.python.org/issue28334 Most likely it will be fixed in Python 3.7: https://github.com/python/cpython/pull/123
Fixes #13211
A rough trick to get around the two different json styles medialaan seems to be using. Fix for these example videos: https://vtmkzoom.be/video?aid=45724 https://vtmkzoom.be/video?aid=45425
The old code hit an error when it attempted to parse the string "adaptive" for video height. Actually parsing the returned playlists is a good idea because it adds more output formats, including some audio-only-ones.