Reference: https://en.wikipedia.org/wiki/Template:Quantities_of_bytes
[extractor/common] add helper method to extract html5 media entries
Closes #9871
For #9950
38cce791c7
@dstftw explained in https://github.com/rg3/youtube-dl/pull/9918#issuecomment-228625878 that extractor names are supposed to be unique. @dstftw has fixed the two offending extractors, and here I add a test to ensure this does not happen in the future.
Used in IqiyiIE and LeIE
Fix test_Viidea and maybe others
Used in test_Vporn_1. Also related to #9270
Such XML documents cause DeprecationWarning if python is run with `-W error`
now JS object literals like { /* " */ 0: ",]\xaa<\/p>", } will be correctly converted to JSON.
They occasional trigger errors or blocks (https://travis-ci.org/rg3/youtube-dl/jobs/130184883)
Fixes #9463
Seems on Travis CI, ports in the original range are often used.