]> gitweb @ CieloNegro.org - youtube-dl.git/commit
[extractor/common] Introduce expected_status for convenient accept of failed HTTP...
authorSergey M․ <dstftw@gmail.com>
Sun, 17 Jun 2018 21:01:48 +0000 (04:01 +0700)
committerSergey M․ <dstftw@gmail.com>
Sun, 17 Jun 2018 21:54:08 +0000 (04:54 +0700)
commitd391b7e23d3d6c2af03c6329b4bf059ec095f33d
tree100ea8d1a705981db003e53ca87c9b51b293aa05
parent075a13d3e9e860f0033ea5a37795bebba02690b1
[extractor/common] Introduce expected_status for convenient accept of failed HTTP requests
Useful when some non-success (2xx) HTTP status codes should be considered normal. Previously this required to manually catch corresponding exceptions and read the response.
youtube_dl/extractor/common.py