Commit Graph

17 Commits (f67177cae8a2e616d265bbbafe1ceabc7df8dbd0)

Author SHA1 Message Date
Mattias Wadman 45024183ae [infoq] Add audio only format if available ()
* [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
Yen Chi Hsuan 5633b4d39d [infoq] Use BokeCC extractor function
Yen Chi Hsuan 02a63fadc3 [infoq] Refactor and support the Chinese version
Closes 
Yen Chi Hsuan 22d07ba4e4 [infoq] Fix extraction for HTTP URLs (closes )
Sergey M․ 8ee4ecb48d [infoq] Use compat_urllib_parse_unquote
Yen Chi Hsuan 91b21b2334 [infoq] Fix extraction (closes )
Sergey M․ 533f67d3fa [infoq] Relax _VALID_URL (Closes )
Philipp Hagemeister 1cc79574fc Fix imports and general cleanup
· Import from compat what comes from compat. Yes, some names are available in utils too, but that's an implementation detail.
· Use _match_id consistently whenever possible
· Fix some outdated tests
· Use consistent valid URL (always match the whole protocol, no ^ at start required)
· Use modern test definitions
Philipp Hagemeister edec83a025 [infoq] Add support for HTTP downloads (Fixes )
Philipp Hagemeister c0a7c60815 [infoq] Simplify ()
Kai Weber 7560096db5 [infoq] Simplify playpath calculation
Kai Weber 282cb9c7ba [infoq] Fix extractor
Philipp Hagemeister d55433bbfd Remove unused imports and simplify
Jaime Marquínez Ferrándiz d882161d5a [infoq] Simplify and use unicode_literals
Philipp Hagemeister ddbd903576 Tests: Add coding to files
Philipp Hagemeister 9d069c4778 [infoq] move tests
Philipp Hagemeister fda7d31aa0 Move infoq into its own file