summaryrefslogtreecommitdiffstats
path: root/youtube_dl/utils.py
Commit message (Collapse)AuthorAgeFilesLines
...
* | | [utils] Support attributes with no values in get_elements_by_attribute()Yen Chi Hsuan2017-07-051-2/+2
| | |
* | | [utils] Use compat_shlex_quote in shell_quoteSergey M․2017-06-171-2/+1
| | |
* | | [utils] Handle HTMLParseError in extract_attributes (closes #13349)Sergey M․2017-06-121-2/+7
| | |
* | | [utils] Improve unified_timestampSergey M․2017-06-111-1/+1
| | |
* | | [utils] Drop an compatibility wrapper for Python < 2.6Yen Chi Hsuan2017-05-271-10/+2
| | | | | | | | | | | | | | | | | | | | | addinfourl.getcode is added since Python 2.6a1. As youtube-dl now requires 2.6+, this is no longer necessary. See https://github.com/python/cpython/commit/9b0d46db115c10767b240a0a64286214b50fe6ad
* | | [utils] Recognize more patterns in strip_jsonp()Yen Chi Hsuan2017-05-261-1/+6
| | | | | | | | | | | | Used in Youku Show pages
* | | [utils] Recognize more audio codecs (#13081)Sergey M․2017-05-141-2/+2
| | |
* | | [utils] Rename try_multipart_encode to _multipart_encode_implYen Chi Hsuan2017-05-061-2/+2
| | | | | | | | | | | | | | | To state that this is an internal function and people should be careful when using it outside youtube-dl.
* | | [utils] Fix multipart_encode for Python < 3.5Yen Chi Hsuan2017-05-051-1/+1
| |/ |/|
* | [cda] Implement birthday verification (closes #12789)Yen Chi Hsuan2017-05-041-0/+61
| |
* | [utils] Improve unified_timestampSergey M․2017-04-301-0/+5
| | | | | | | | Seen at http://zaq1.pl/video/xev0e
* | [utils] add video/mp2t to mimetype2extRemita Amine2017-04-301-3/+1
| |
* | [utils] Fix inconsistent output of clean_htmlTithen-Firion2017-04-281-2/+2
| | | | | | | | | | `\s` in Python 2.x doesn't match unicode whitespace characters by default
* | [utils] add support for ttml stylesRemita Amine2017-04-191-9/+111
| |
* | [extractor/common] Add support multiple getters in try_getSergey M․2017-04-181-7/+10
|/
* [utils] Introduce expand_pathSergey M․2017-03-261-0/+6
|
* [utils] Process bytestrings in urljoin (closes #12369)Sergey M․2017-03-061-1/+6
|
* [utils] Carry long doc stringSergey M․2017-03-011-1/+2
|
* [utils] Add bytes_to_long() and long_to_bytes()Yen Chi Hsuan2017-02-281-0/+51
| | | | | | | Used in daisuki.net (#4738) Both are adapted from public domain PyCrypto: https://github.com/dlitz/pycrypto/blob/master/lib/Crypto/Util/number.py
* [utils] Add pkcs1padYen Chi Hsuan2017-02-281-0/+15
| | | | Used in daisuki.net (#4738)
* Improve geo bypass mechanismSergey M․2017-02-191-1/+1
| | | | | | * Rename options to preffixly match with --geo-verification-proxy * Introduce _GEO_COUNTRIES for extractors * Implement faking IP right away for sites with known geo restriction
* [utils] Make random_ipv4 return unicode stringSergey M․2017-02-191-2/+2
|
* Add experimental geo restriction bypass mechanismSergey M․2017-02-191-0/+267
| | | | Based on faking X-Forwarded-For HTTP header
* [utils] Introduce YoutubeDLError base class for all youtube-dl exceptionsPierre Mdawar2017-02-191-9/+18
|
* [utils] Add support for quoted string literals in --match-filter (closes ↵Sergey M․2017-02-151-2/+7
| | | | #8050, closes #12142, closes #12144)
* utils.py: Workaround TypeError with Python 2.7.13 in WindowsRicardo Constantino2017-02-111-0/+5
| | | | | | Fixes #11540 Tested with Windows Python 2.7.12 and 2.7.13.
* Introduce get_elements_by_class and get_elements_by_attribute utility functionsThomas Christlieb2017-02-111-10/+22
|
* [utils] Improve comments processing in js_to_json (closes #11947)Sergey M․2017-02-031-9/+11
|
* [utils] Handle single-line comments in js_to_jsonMichal Čihař2017-02-031-2/+2
|
* [utils] Improve parse_durationSergey M․2017-01-261-3/+3
|
* [utils] Add another date format seen in NextTVYen Chi Hsuan2017-01-231-0/+1
|
* [utils] Add more date formatsSergey M․2017-01-121-0/+6
|
* Fix "invalid escape sequences" error on Python 3.6Yen Chi Hsuan2017-01-061-2/+2
|
* [utils] Improve urljoinSergey M․2016-12-171-2/+2
|
* [utils] Add convenience urljoinSergey M․2016-12-131-0/+10
|
* [utils] Add common user agents mapSergey M․2016-12-121-0/+5
|
* [utils] Introduce base_urlSergey M․2016-11-021-0/+4
|
* [utils] Fix --match-filter for int-like strings (closes #11082)Sergey M․2016-10-311-3/+9
|
* [utils] Clarify for redirecting STDIN in get_exe_version()Yen Chi Hsuan2016-10-221-0/+3
|
* [get_exe_version] Do version probes with <&-John Hawkinson2016-10-221-0/+1
| | | | | | | | | | | | | | | | | | | | | | When doing version probes for ffmpeg, do the equivalent of calling it as: ffmpeg -version <&- Where <&- is shell syntax for closing stdin before calling the program. This is roughly equivalent to </dev/null without actually opening /dev/null. This prevents ffmpeg -version from hanging when run in the background. Fixes #955. The reason is that ffmpeg tries to manipulate stdin to set up terminal characteristic, and that causes the kernel to suspend the parent process (youtube-dl). Note that closing stdin is achieved by calling subprocess.Popen() with stdin set to subprocess.PIPE and without passing any input to Popen.communicate(). This is somewhat subtle.
* [utils] Expose PACKED_CODES_RESergey M․2016-10-191-3/+3
|
* Unify coding cookieDéstin Reed2016-10-031-1/+1
|
* [utils] Fix xattr error handlingYen Chi Hsuan2016-10-021-0/+1
|
* [utils] Support xattr as well as pyxattrYen Chi Hsuan2016-10-011-12/+17
| | | | | | | | | | | | | | | | | | | | | | | | Closes #9054 There are two xattr packages in Python, pyxattr [1] and xattr [2]. They have different APIs. In old days pyxattr supports Linux only and xattr supports Linux, Mac, FreeBSD and Solaris, and pyxattr supports Linux only. Recently pyxattr adds support for Mac OS X. [3] An old version of [2] is shipped with Mac OS X. However, some Linux distributions have pyxattr only, for example PLD-Linux [4] and old Arch Linux. [5] As a result, supporting both is the way to go. [1] https://github.com/iustin/pyxattr [2] https://github.com/xattr/xattr [3] https://github.com/iustin/pyxattr/pull/9 [4] https://github.com/rg3/youtube-dl/issues/5498 [5] https://git.archlinux.org/svntogit/community.git/commit/?id=427c4c76401e386d865ccddea4fbfdc74df80492 https://git.archlinux.org/svntogit/community.git/commit/?id=59b40da7b69622a6761d364a8b07909e9cccaa56 python-xattr is added on 2016/06/29 while pyxattr is there for more than 6 years
* [utils] Lower priority for rare date formats and add testsSergey M․2016-09-291-2/+2
|
* [vk] Fix date and view count extraction.Kacper Michajłow2016-09-291-0/+2
|
* Move write_xattr to utils.pyYen Chi Hsuan2016-09-301-0/+99
| | | | | There are some other places that use xattr functions. It's better to move it to a common place so that others can use it.
* [utils] Use native french month namesSergey M․2016-09-141-2/+2
|
* [utils] Improve month_by_name and add testsSergey M․2016-09-141-8/+8
|
* [utils,franceinter] Add french months' names and fix extractionrenalid2016-09-141-2/+11
| | | | | | Update of the "FranceInter" radio extractor : webpages HTML structure had changed, the extractor didn't work. So I updated this extractor to get the mp3 URL and all details.