about summary refs log tree commit diff
path: root/youtube_dl/compat.py
Commit message (Collapse)AuthorAgeFilesLines
* Fix typos (#27084)Josh Soref2020-11-211-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * spelling: authorization Signed-off-by: Josh Soref <jsoref@users.noreply.github.com> * spelling: brightcove Signed-off-by: Josh Soref <jsoref@users.noreply.github.com> * spelling: creation Signed-off-by: Josh Soref <jsoref@users.noreply.github.com> * spelling: exceeded Signed-off-by: Josh Soref <jsoref@users.noreply.github.com> * spelling: exception Signed-off-by: Josh Soref <jsoref@users.noreply.github.com> * spelling: extension Signed-off-by: Josh Soref <jsoref@users.noreply.github.com> * spelling: extracting Signed-off-by: Josh Soref <jsoref@users.noreply.github.com> * spelling: extraction Signed-off-by: Josh Soref <jsoref@users.noreply.github.com> * spelling: frontline Signed-off-by: Josh Soref <jsoref@users.noreply.github.com> * spelling: improve Signed-off-by: Josh Soref <jsoref@users.noreply.github.com> * spelling: length Signed-off-by: Josh Soref <jsoref@users.noreply.github.com> * spelling: listsubtitles Signed-off-by: Josh Soref <jsoref@users.noreply.github.com> * spelling: multimedia Signed-off-by: Josh Soref <jsoref@users.noreply.github.com> * spelling: obfuscated Signed-off-by: Josh Soref <jsoref@users.noreply.github.com> * spelling: partitioning Signed-off-by: Josh Soref <jsoref@users.noreply.github.com> * spelling: playlist Signed-off-by: Josh Soref <jsoref@users.noreply.github.com> * spelling: playlists Signed-off-by: Josh Soref <jsoref@users.noreply.github.com> * spelling: restriction Signed-off-by: Josh Soref <jsoref@users.noreply.github.com> * spelling: services Signed-off-by: Josh Soref <jsoref@users.noreply.github.com> * spelling: split Signed-off-by: Josh Soref <jsoref@users.noreply.github.com> * spelling: srmediathek Signed-off-by: Josh Soref <jsoref@users.noreply.github.com> * spelling: support Signed-off-by: Josh Soref <jsoref@users.noreply.github.com> * spelling: thumbnail Signed-off-by: Josh Soref <jsoref@users.noreply.github.com> * spelling: verification Signed-off-by: Josh Soref <jsoref@users.noreply.github.com> * spelling: whitespaces Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
* [compat] Introduce compat_cookiejar_CookieSergey M․2020-05-051-0/+12
|
* [update] Fix updating via symlinks (closes #23991)Sergey M․2020-02-081-0/+1
|
* [compat] Introduce compat_realpath (refs #23991)Sergey M․2020-02-081-0/+11
|
* Fix W504 and disable W503 (closes #20863)Sergey M․2019-05-111-3/+3
|
* Start moving to ytdl-orgSergey M․2019-03-111-3/+3
|
* [compat] Introduce compat_etree_ElementSergey M․2019-03-061-0/+10
|
* [compat] Introduce compat_integer_typesSergey M․2018-06-181-0/+7
|
* [compat] Mute some F821 under python 3Sergey M․2018-02-021-2/+2
|
* Add support for IronPythonSergey M․2018-01-281-0/+16
|
* [compat] Add compat_b64decodeSergey M․2018-01-231-0/+12
|
* [utils] Fix youtube-dl under PyPy3 on WindowsPhilipp Hagemeister2018-01-011-0/+21
|
* [mixcloud] Fix extraction (closes #14088)Tatsuyuki Ishi2017-09-231-1/+9
|
* [compat] Fix compat_shlex_quote on Windows (closes #5889, closes #10254)Sergey M․2017-06-171-10/+15
|
* [compat] Add compat_HTMLParseError to __all__Sergey M․2017-06-121-0/+1
|
* [compat] Introduce compat_HTMLParseErrorSergey M․2017-06-121-0/+13
|
* improve coding styleRemita Amine2017-04-121-1/+1
|
* [compat] Use try except for compat_numeric_typesSergey M․2017-02-251-2/+4
|
* [compat] Add compat_numeric_typesSergey M․2017-02-231-0/+5
|
* [compat] add compat_etree_register_namespace to __all__ listRemita Amine2017-02-011-0/+1
|
* [compat] add compat_etree_register_namespaceRemita Amine2017-01-291-0/+18
|
* Fix "invalid escape sequences" error on Python 3.6Yen Chi Hsuan2017-01-061-1/+1
|
* Update coding style after pycodestyle 2.1.0Yen Chi Hsuan2016-11-171-0/+2
| | | | | | | | | | In pycodestyle 2.1.0, E305 was introduced, which requires two blank lines after top level declarations, too. See https://github.com/PyCQA/pycodestyle/issues/400 See also #10689; thanks @stepshal for first mentioning this issue and initial patches
* [compat] Fix test_cmdline_umlauts on Python 2.6Yen Chi Hsuan2016-07-071-2/+5
| | | | The original statement raises uncaught UnicodeWarning on Python 2.6
* [compat] Fix compat_shlex_split for non-ASCII inputYen Chi Hsuan2016-07-071-3/+5
| | | | Closes #9871
* [compat] Import html5 entities correctlyYen Chi Hsuan2016-06-101-2/+2
|
* [compat] Add compat_html_entities_html5Yen Chi Hsuan2016-06-101-1/+2239
| | | | Used in tset_Vporn_1. Also Related to #9270
* [compat] Add 'compat_input' to __all__Jaime Marquínez Ferrándiz2016-06-051-0/+1
|
* [compat] Add compat_inputSergey M․2016-06-051-0/+5
|
* [compat] Fix for XML with <!DOCTYPE> in Python 2.7 and 3.2Yen Chi Hsuan2016-05-231-5/+12
| | | | | Such XML documents cause DeprecationWarning if python is run with `-W error`
* [compat] Rename shlex_quote and remove unused subprocess_check_outputYen Chi Hsuan2016-05-101-16/+3
|
* [compat] Rename struct_(un)pack to compat_struct_(un)packYen Chi Hsuan2016-05-101-6/+6
|
* [utils,compat] Move struct_pack and struct_unpack to compat.pyYen Chi Hsuan2016-05-101-0/+23
|
* [compat] Add compat_setenvSergey M․2016-05-091-0/+10
|
* [compat] Handle tuples properly in urlencode()Yen Chi Hsuan2016-04-061-1/+2
| | | | Fixes #9055
* [compat] Add compat_urllib_parse_urlencode and eliminate encode_dictSergey M․2016-03-261-0/+26
| | | | | | | encode_dict functionality has been improved and moved directly into compat_urllib_parse_urlencode All occurrences of compat_urllib_parse.urlencode throughout the codebase have been replaced by compat_urllib_parse_urlencode Closes #8974
* [compat] Add compat_xpathSergey M․2016-03-181-0/+11
|
* Merge pull request #8092 from bpfoley/twitter-thumbnailremitamine2016-03-161-0/+6
|\ | | | | [utils] Add extract_attributes for extracting html tag attributes
| * [utils] Add extract_attributes for extracting html tag attributesBrian Foley2016-03-031-0/+6
| | | | | | | | | | | | | | This is much more robust than just using regexps, and handles all the common scenarios, such as empty/no values, repeated attributes, entity decoding, mixed case names, and the different possible value quoting schemes.
* | [jython] Introduce compat_os_nameYen Chi Hsuan2016-03-031-2/+6
|/ | | | os.name is always 'java' on Jython
* [refactor] Single quotes consistencySergey M․2016-02-141-7/+7
|
* [compat] Clarify the versions requiring compat_kwargsYen Chi Hsuan2016-01-161-1/+1
| | | | | | It's supported since 2.7.0 alpha 1 and 2.6.5 rc 1. See https://hg.python.org/cpython/file/v2.7a1/Misc/NEWS#l337 https://hg.python.org/cpython/file/v2.6.5rc1/Misc/NEWS#l28
* Rename compat_urllib_request_Request to sanitized_Request and move to utilsSergey M․2015-11-231-8/+0
|
* [compat] Add compat_urllib_request_RequestSergey M․2015-11-231-0/+8
| | | | | | | This is actually not a compatibility routine but rather a workaround for URLs without protocol specified. The protocol-less URL is treated as HTTP one since it's most probable scenario and it will most likely to redirect to HTTPS if HTTPS was actually expected. This routine could also be useful for any Request preprocessing that may be added in future.
* [compat] compat_etree_fromstring: clarify commentJaime Marquínez Ferrándiz2015-10-291-2/+2
|
* [compat] compat_etree_fromstring: also decode the text attributeJaime Marquínez Ferrándiz2015-10-261-2/+16
| | | | Deletes parse_xml from utils, because it also does it.
* [compat] compat_etree_fromstring: only decode bytes objectsJaime Marquínez Ferrándiz2015-10-251-3/+3
|
* Use a wrapper around xml.etree.ElementTree.fromstring in python 2.x (#7178)Jaime Marquínez Ferrándiz2015-10-251-0/+25
| | | | Attributes aren't unicode objects, so they couldn't be directly used in info_dict fields (for example '--write-description' doesn't work with bytes).
* [compat] Add compat_urllib_request_DataHandlerYen Chi Hsuan2015-10-181-0/+44
|
* [compat] Fix wrong lines/columns orderSergey M․2015-10-061-1/+1
| | | | stty size is rows x columns