summaryrefslogtreecommitdiffstats
path: root/youtube_dl/compat.py
Commit message (Collapse)AuthorAgeFilesLines
...
* Merge remote-tracking branch 'jaimemf/format_spec_groups' (closes #6124)Jaime Marquínez Ferrándiz2015-08-031-0/+6
|\
| * [YoutubeDL] rework how the format spec is processedJaime Marquínez Ferrándiz2015-06-281-0/+5
| | | | | | | | | | The spec string is processed using 'tokenize.tokenize' to split it in words and operators, the filters are still processed using regular expressions. This should make easier to allow grouping operators with parens.
* | [viewster] extract the api auth tokenremitamine2015-07-301-0/+6
| | | | | | | | Closes #6406.
* | [compat] Fix _asciireSergey M․2015-07-181-1/+2
| |
* | [compat] Fix missing _asciire on python 2.6Sergey M․2015-07-181-1/+3
| |
* | [compat] Mention unquote_plusSergey M․2015-07-171-1/+1
| |
* | [compat] Add compat_urllib_parse_unquote_plusSergey M․2015-07-171-0/+11
| |
* | [compat] Simplify and use latest cpython 3 codeSergey M․2015-07-171-28/+13
| |
* | Don't forget trailing '%'fnord2015-07-171-0/+3
| |
* | fix TestCompat test_all_presentfnord2015-07-171-0/+2
| |
* | remove kebabfnord2015-07-171-40/+1
| |
* | remove debugprintfnord2015-07-171-6/+0
| |
* | replace old compat_urllib_parse_unquote with backport from python3's functionfnord2015-07-171-1/+74
| | | | | | | | | | | | | | * required unquote_to_bytes function ported as well (uses .decode('hex') instead of dynamically populated _hextobyte global) * required implicit conversion to bytes and/or unicode in places due to differing type assumptions in p3
* | compat_urllib_parse_unquote: crash fix: only decode valid hexfnord2015-07-151-0/+2
| | | | | | | | | | on python 2 the following has a { "crash_rate": "100%" } of the time as it tries to parse '" ' as hex.
* | [compat] Add compat_itertools_countYen Chi Hsuan2015-07-101-0/+11
|/ | | | 'step' parameter is added in Python 2.7
* Remove code that was only used by the Grooveshark extractorJaime Marquínez Ferrándiz2015-05-021-6/+0
|
* Don't use bare 'except:'Jaime Marquínez Ferrándiz2015-03-271-1/+1
| | | | They catch any exception, including KeyboardInterrupt, we don't want to catch it.
* Use shutil.get_terminal_size for getting the terminal width if it's ↵Jaime Marquínez Ferrándiz2015-02-281-0/+30
| | | | available (python >= 3.3)
* [compat] Correct compat_basestring definitionPhilipp Hagemeister2015-02-011-2/+3
|
* Appease pyflakes8-3Philipp Hagemeister2015-02-011-16/+21
|
* Add a test for --no-check-certificatePhilipp Hagemeister2015-01-301-0/+6
|
* [compat] Correct socket error class referencePhilipp Hagemeister2015-01-111-1/+1
|
* [test_compat] Fix alphabetic order to make test_all_present passSergey M․2015-01-111-1/+1
|
* Add new option --source-addressPhilipp Hagemeister2015-01-101-0/+28
| | | | Closes #3618, fixes #721, fixes #2481, fixes #4551, closes #1020.
* [compat] Simplify kwarg detection codePhilipp Hagemeister2014-12-121-1/+3
| | | | This enables nuitka to compile youtube-dl.
* Revert "[utils] Work around PyPy stupidity with Windows DLLs (Fixes #4392)"Philipp Hagemeister2014-12-121-19/+0
| | | | This reverts commit 16040f46d64bad8dcc5f948288ef469dd787d3d3.
* [utils] Work around PyPy stupidity with Windows DLLs (Fixes #4392)Philipp Hagemeister2014-12-121-0/+19
|
* Fix PEP8 issue E713Jaime Marquínez Ferrándiz2014-12-091-1/+1
|
* [compat] Beautify assertionPhilipp Hagemeister2014-11-261-1/+1
|
* PEP8: applied even more rulesJouke Waleson2014-11-231-3/+3
|
* PEP8 appliedJouke Waleson2014-11-231-15/+17
|
* Provide guidance when called with a YouTube ID starting with a dash.Philipp Hagemeister2014-11-231-1/+5
| | | | Reported at https://news.ycombinator.com/item?id=8648121
* remove unused importsPhilipp Hagemeister2014-11-201-1/+1
|
* [compat] correct OptionGroup invocation for Python 3 (fixes #4243)Philipp Hagemeister2014-11-201-2/+4
|
* Work around 2.7.0 deficencies (Fixes #4223)Philipp Hagemeister2014-11-191-0/+22
|
* [compat] Work around kwargs bugs in old 2.6 Python releases (Fixes #3813)Philipp Hagemeister2014-11-151-0/+9
|
* [compat] ModernizePhilipp Hagemeister2014-11-021-0/+2
|
* [compat] Fix importsPhilipp Hagemeister2014-11-021-0/+1
|
* [util] Move compatibility functions out of utilPhilipp Hagemeister2014-11-021-0/+314
utils is large enough without these compatibility functions. Everything that is present in newer versions of Python (i.e. with dev Python it's just an import) goes into compat.py . Everything else (i.e. youtube-dl-specific helpers) goes into utils.py .