[infoq] Add audio only format if available (#11565)
authorMattias Wadman <mattias.wadman@gmail.com>
Fri, 3 Feb 2017 04:10:13 +0000 (05:10 +0100)
committerYen Chi Hsuan <yan12125@gmail.com>
Fri, 3 Feb 2017 04:10:13 +0000 (12:10 +0800)
commit45024183aea169dc898902388f782485de02cbac
tree2e3d98d1cbe64b09c7fbfbe9ad0596e25994d135
parent33da98f4933ddc54c944bae985cfcc7b53563208
[infoq] Add audio only format if available (#11565)

* [infoq] Add audio only format if available

Refactor cookie code into a function.
Renamed formats to http_video, http_audio, rtmp_video
Renamed extract functions to video instead of videos as they return
one or no video.

* [infoq] Rename to _extract_cookies as it more than one

* [infoq] Remove redundant determine_ext

* [infoq] Add comment about hardcoded URL

* [infoq] Use _hidden_inputs instead of messy regex

* [infoq] Probe if audio URL is valid

Make it possible to pass headers to _is_valid_url

* [infoq] Add audio only test
youtube_dl/extractor/common.py
youtube_dl/extractor/infoq.py