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.
[utils] imporove parse_duration to handle more formats
Since there doesn't seem to be any indication, it stops when there aren't new videos in the webpage.
Seen in PBSIE tests
Fixes #9055
With IDN (Internationalized Domain Name) and a proxy, non-ascii URLs are passed down to urllib/urllib2, causing UnicodeEncodeError Fixes #8890
[utils] Add extract_attributes for extracting html tag attributes
[utils] add update_url_query function to create or update query string params
make offlinetest passed on the latest Jython hg version with patched lib-python/2.7/urllib2.py pulled from CPython 2.7.11
os.name is always 'java' on Jython
This is much more robust than just using regexps, and handles all the common scenarios, such as empty/no values, repeated attributes, entity decoding, mixed case names, and the different possible value quoting schemes.