aboutsummaryrefslogtreecommitdiffstats
path: root/youtube_dl/utils.py
Commit message (Collapse)AuthorAgeFilesLines
...
* [utils] Catch strange Windows errors (Closes #4733)Philipp Hagemeister2015-01-231-0/+3
|
* [utils] Simplify HTTPS socket creationPhilipp Hagemeister2015-01-231-19/+5
| | | | | | We were duplicating (bad) code and doing crazy things with SSL. Just use TLSv1 across the board, and do with one implementation of HTTPSConnection.connect. Fixes #4696.
* Merge remote-tracking branch 'derrotebaron/master'Philipp Hagemeister2015-01-231-1/+3
|\
| * [utils] Prevent override of custom headers.Johannes Knoedtel2015-01-121-1/+3
| | | | | | | | | | | | | | | | | | | | | | The dict of headers of request objects in urllib has its keys always capitalized. This causes the lookup to fail and overwrite the header. If for example a Extractor tries to add a "User-Agent" header the internal representation in the request object is "User-agent". The header is therefore clobbered by the "User-Agent" in std_headers, because the strings are not equal.
* | [generic] Add support for BOMs (Fixes #4753)Philipp Hagemeister2015-01-231-0/+20
| |
* | [hearthisat] Add support for more high-quality download linksPhilipp Hagemeister2015-01-221-0/+8
| |
* | [fourtube] Fix extractionPhilipp Hagemeister2015-01-161-1/+1
| |
* | [ssl] Correct connect creationPhilipp Hagemeister2015-01-151-1/+2
| | | | | | | | We want to authenticate the server, see https://docs.python.org/dev/library/ssl.html#ssl.Purpose.SERVER_AUTH .
* | [utils] Add additional format to unified_strdateNaglis Jonaitis2015-01-141-0/+1
|/
* [utils] Disallow non string types in parse_duration (Closes #4679)Sergey M․2015-01-121-1/+1
|
* [utils] Improve colon handling (Fixes #4683)Philipp Hagemeister2015-01-111-0/+2
|
* [utils] Fix call to _create_http_connectionPhilipp Hagemeister2015-01-101-2/+2
| | | | Avoid confusion over args/kwargs.
* Add new option --source-addressPhilipp Hagemeister2015-01-101-7/+49
| | | | Closes #3618, fixes #721, fixes #2481, fixes #4551, closes #1020.
* [utils] Clarify more day-month-first ambiguous formatsSergey M․2015-01-101-3/+6
|
* [netzkino] Add new extractor (Fixes #4669)Philipp Hagemeister2015-01-091-0/+4
|
* Respect age_limit when listing extractors (Fixes #4653)Philipp Hagemeister2015-01-071-0/+10
|
* utils: Remove blank line at the end of fileJaime Marquínez Ferrándiz2015-01-041-1/+0
|
* [soulanime] Fix under Python 3Philipp Hagemeister2015-01-041-0/+11
|
* Add documentation about supported sites (Fixes #4503)Philipp Hagemeister2014-12-301-0/+7
|
* Improve code stylePhilipp Hagemeister2014-12-171-1/+1
|
* Improve and test ffmpeg version detectionPhilipp Hagemeister2014-12-141-5/+12
|
* [utils] Do not make an exception for SSLv3Philipp Hagemeister2014-12-131-1/+0
| | | | | SSLv3 is terminally vulnerable to POODLE; web browsers are currently deprecating/removing it. Closes #4459, fixes #4294
* [utils] Make ssl work on Python 2.7.8Philipp Hagemeister2014-12-131-2/+8
|
* [utils] make_HTTPS_handler: Remove try/except block that would always raise ↵Jaime Marquínez Ferrándiz2014-12-121-4/+0
| | | | | | an exception This code is only run for Python < 3.4, where context.load_default_certs doesn't exist
* [utils] make_HTTPS_handler: Use ssl.create_default_context in Python 2.7.9Jaime Marquínez Ferrándiz2014-12-121-7/+7
| | | | The new features in the ssl module have been backported from 3.4, see https://docs.python.org/dev/whatsnew/2.7.html#pep-466-network-security-enhancements-for-python-2-7
* Merge remote-tracking branch 'grompe/patch-1'Philipp Hagemeister2014-12-121-4/+4
|\
| * Fix utils.py for PyPy on WindowsGrom PE2014-12-061-4/+4
| | | | | | | | | | | | | | | | | | | | The line ```python from __future__ import unicode_literals ``` introduced in commit [ecc0c5ee01f0e5bdd6af0c32cb5b4adcb2a2f78c](https://github.com/rg3/youtube-dl/commit/ecc0c5ee01f0e5bdd6af0c32cb5b4adcb2a2f78c) broke youtube-dl for PyPy on Windows, making it unable to locate WinAPI functions. Error: "TypeError: function name must be a string or integer" Adding "b" prefix to strings with WinAPI function names fixes it.
* | Revert "[utils] Work around PyPy stupidity with Windows DLLs (Fixes #4392)"Philipp Hagemeister2014-12-121-5/+4
| | | | | | | | This reverts commit 16040f46d64bad8dcc5f948288ef469dd787d3d3.
* | [utils] Work around PyPy stupidity with Windows DLLs (Fixes #4392)Philipp Hagemeister2014-12-121-4/+5
| |
* | [cinchcast] Add new extractor (Fixes #4428)Philipp Hagemeister2014-12-121-4/+13
| |
* | [utils] Add "yesterday" as a date keywordPhilipp Hagemeister2014-12-111-1/+3
| |
* | Fix PEP8 issue E713Jaime Marquínez Ferrándiz2014-12-091-1/+1
|/
* [ffmpeg] Improve version check and call it from hls (Fixes #4377)Philipp Hagemeister2014-12-061-1/+1
|
* [minhateca] Fix duration parsingPhilipp Hagemeister2014-12-041-4/+15
|
* [minhateca] Add extractor (Fixes #4094)Philipp Hagemeister2014-12-041-2/+5
|
* [utils] remove useless u prefixPhilipp Hagemeister2014-11-261-1/+1
|
* [xminus] Simplify and extend (#4302)Philipp Hagemeister2014-11-251-0/+51
|
* Fix all PEP8 issues except E501Philipp Hagemeister2014-11-231-3/+3
|
* PEP8 appliedJouke Waleson2014-11-231-6/+26
|
* Provide guidance when called with a YouTube ID starting with a dash.Philipp Hagemeister2014-11-231-0/+6
| | | | Reported at https://news.ycombinator.com/item?id=8648121
* [utils] Improve update on error message somewhatPhilipp Hagemeister2014-11-201-1/+15
| | | | We still may want to implement a bulletproof check for the current version, and a better place to add this message so that it works for all kind of other errors too.
* Fix "ERROR: Cannot write metadata to JSON file" on WindowsIvan Kozik2014-11-201-1/+8
| | | | Fixes #4246
* Fix UnicodeEncodeError with --write-info-json on Python 2.7 + WindowsIvan Kozik2014-11-201-1/+1
| | | | Fixes #4244
* [cache] Fix writing to paths with unicode charactersJaime Marquínez Ferrándiz2014-11-191-0/+1
| | | | | * Use "compat_getenv" * "write_json_file" now expects the filename to be a string
* [utils] Remove stray u'Philipp Hagemeister2014-11-171-31/+31
|
* [eporner] Fix duration (Closes #4188)Philipp Hagemeister2014-11-161-1/+6
|
* [utils] Fix "write_json_file" for unicode names in python 2.x (fixes #4125)Jaime Marquínez Ferrándiz2014-11-151-2/+14
|
* [utils] Fix struct.pack call on very old Python versions (#4181)Philipp Hagemeister2014-11-141-1/+1
|
* [npo] Improve npo.nl (Fixes #4173)Philipp Hagemeister2014-11-131-1/+2
|
* [utils] Fix intlist_to_bytes in Python 2 (#4181)Philipp Hagemeister2014-11-131-4/+1
|