aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/compat.py
AgeCommit message (Collapse)Author
2015-07-15compat_urllib_parse_unquote: crash fix: only decode valid hexfnord
on python 2 the following has a { "crash_rate": "100%" } of the time as it tries to parse '" ' as hex.
2015-07-10[compat] Add compat_itertools_countYen Chi Hsuan
'step' parameter is added in Python 2.7
2015-06-28[YoutubeDL] rework how the format spec is processedJaime Marquínez Ferrándiz
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.
2015-05-02Remove code that was only used by the Grooveshark extractorJaime Marquínez Ferrándiz
2015-03-27Don't use bare 'except:'Jaime Marquínez Ferrándiz
They catch any exception, including KeyboardInterrupt, we don't want to catch it.
2015-02-28Use shutil.get_terminal_size for getting the terminal width if it's ↵Jaime Marquínez Ferrándiz
available (python >= 3.3)
2015-02-01[compat] Correct compat_basestring definitionPhilipp Hagemeister
2015-02-01Appease pyflakes8-3Philipp Hagemeister
2015-01-30Add a test for --no-check-certificatePhilipp Hagemeister
2015-01-11[compat] Correct socket error class referencePhilipp Hagemeister
2015-01-11[test_compat] Fix alphabetic order to make test_all_present passSergey M․
2015-01-10Add new option --source-addressPhilipp Hagemeister
Closes #3618, fixes #721, fixes #2481, fixes #4551, closes #1020.
2014-12-12[compat] Simplify kwarg detection codePhilipp Hagemeister
This enables nuitka to compile youtube-dl.
2014-12-12Revert "[utils] Work around PyPy stupidity with Windows DLLs (Fixes #4392)"Philipp Hagemeister
This reverts commit 16040f46d64bad8dcc5f948288ef469dd787d3d3.
2014-12-12[utils] Work around PyPy stupidity with Windows DLLs (Fixes #4392)Philipp Hagemeister
2014-12-09Fix PEP8 issue E713Jaime Marquínez Ferrándiz
2014-11-26[compat] Beautify assertionPhilipp Hagemeister
2014-11-23PEP8: applied even more rulesJouke Waleson
2014-11-23PEP8 appliedJouke Waleson
2014-11-23Provide guidance when called with a YouTube ID starting with a dash.Philipp Hagemeister
Reported at https://news.ycombinator.com/item?id=8648121
2014-11-20remove unused importsPhilipp Hagemeister
2014-11-20[compat] correct OptionGroup invocation for Python 3 (fixes #4243)Philipp Hagemeister
2014-11-19Work around 2.7.0 deficencies (Fixes #4223)Philipp Hagemeister
2014-11-15[compat] Work around kwargs bugs in old 2.6 Python releases (Fixes #3813)Philipp Hagemeister
2014-11-02[compat] ModernizePhilipp Hagemeister
2014-11-02[compat] Fix importsPhilipp Hagemeister
2014-11-02[util] Move compatibility functions out of utilPhilipp Hagemeister
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 .