aboutsummaryrefslogtreecommitdiffstats
path: root/youtube_dl/utils.py
Commit message (Collapse)AuthorAgeFilesLines
...
* [utils] Extract known extensions for reuseSergey M․2016-01-041-14/+17
|
* [utils] Remove Content-encoding from headers after decompressionYen Chi Hsuan2015-12-281-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | With cn_verification_proxy, our http_response() is called twice, one from PerRequestProxyHandler.proxy_open() and another from normal YoutubeDL.urlopen(). As a result, for proxies honoring Accept-Encoding, the following bug occurs: $ youtube-dl -vs --cn-verification-proxy https://secure.uku.im:993 "test:letv" [debug] System config: [] [debug] User config: [] [debug] Command-line args: ['-vs', '--cn-verification-proxy', 'https://secure.uku.im:993', 'test:letv'] [debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8 [debug] youtube-dl version 2015.12.23 [debug] Git HEAD: 97f18fa [debug] Python version 3.5.1 - Linux-4.3.3-1-ARCH-x86_64-with-arch-Arch-Linux [debug] exe versions: ffmpeg 2.8.4, ffprobe 2.8.4, rtmpdump 2.4 [debug] Proxy map: {} [TestURL] Test URL: http://www.letv.com/ptv/vplay/22005890.html [Letv] 22005890: Downloading webpage [Letv] 22005890: Downloading playJson data ERROR: Unable to download JSON metadata: Not a gzipped file (b'{"') (caused by OSError('Not a gzipped file (b\'{"\')',)); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see https://yt-dl.org/update on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output. File "/home/yen/Executables/Multimedia/youtube-dl/youtube_dl/extractor/common.py", line 330, in _request_webpage return self._downloader.urlopen(url_or_request) File "/home/yen/Executables/Multimedia/youtube-dl/youtube_dl/YoutubeDL.py", line 1886, in urlopen return self._opener.open(req, timeout=self._socket_timeout) File "/usr/lib/python3.5/urllib/request.py", line 471, in open response = meth(req, response) File "/home/yen/Executables/Multimedia/youtube-dl/youtube_dl/utils.py", line 773, in http_response raise original_ioerror File "/home/yen/Executables/Multimedia/youtube-dl/youtube_dl/utils.py", line 761, in http_response uncompressed = io.BytesIO(gz.read()) File "/usr/lib/python3.5/gzip.py", line 274, in read return self._buffer.read(size) File "/usr/lib/python3.5/gzip.py", line 461, in read if not self._read_gzip_header(): File "/usr/lib/python3.5/gzip.py", line 409, in _read_gzip_header raise OSError('Not a gzipped file (%r)' % magic)
* Rename error_to_str to error_to_compat_strSergey M․2015-12-201-1/+1
|
* [utils] Add encode_compat_strSergey M․2015-12-201-0/+4
|
* [utils] Add error_to_strSergey M․2015-12-201-0/+9
|
* [utils] Support alternative timestamp format in TTMLYen Chi Hsuan2015-12-191-2/+2
| | | | Fixes #7608
* [utils] Fix TTML conversionYen Chi Hsuan2015-12-191-3/+8
| | | | Tolerate invalid timestamps (closes #7909)
* [utils] Add remove_quotesSergey M․2015-12-141-0/+9
|
* [utils] Refactor handle_youtubedl_headers for future extensionYen Chi Hsuan2015-11-291-4/+5
|
* [utils] Correct docstring of YoutubeDLHandlerYen Chi Hsuan2015-11-291-1/+1
|
* [utils] Separate codes for handling Youtubedl-* headersYen Chi Hsuan2015-11-291-4/+11
|
* Rename compat_urllib_request_Request to sanitized_Request and move to utilsSergey M․2015-11-231-0/+7
|
* [utils] Check ext with trailing slash against the list of known extensionsSergey M․2015-11-221-1/+16
|
* [utils] Improve determine_ext (Closes #7593)Sergey M․2015-11-221-1/+1
|
* [utils] Improve encode_dictSergey M․2015-11-211-1/+3
|
* [utils] StyleSergey M․2015-11-161-1/+1
|
* [utils] Skip invalid/non HTML entities (Closes #7518)Sergey M․2015-11-161-1/+5
|
* [utils] unified_strdate: Return None if the date format can't be recognized ↵Jaime Marquínez Ferrándiz2015-11-021-1/+2
| | | | | | (fixes #7340) This issue was introduced with ae12bc3ebb4cb377c2b4337ec255e652b36f5143, it returned 'None'.
* [utils:sanitize_path] Disallow trailing whitespace in path segment (Closes ↵Sergey M․2015-11-021-1/+1
| | | | #7332)
* Merge pull request #7296 from jaimeMF/xml_attrib_unicodeSergey M2015-10-311-24/+2
|\ | | | | Use a wrapper around xml.etree.ElementTree.fromstring in python 2.x (…
| * [compat] compat_etree_fromstring: also decode the text attributeJaime Marquínez Ferrándiz2015-10-261-23/+0
| | | | | | | | Deletes parse_xml from utils, because it also does it.
| * Use a wrapper around xml.etree.ElementTree.fromstring in python 2.x (#7178)Jaime Marquínez Ferrándiz2015-10-251-1/+2
| | | | | | | | 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).
* | [utils] Make unified_strdate always return unicode stringSergey M․2015-10-311-1/+1
| |
* | [utils] Support list of xpath in xpath_elementSergey M․2015-10-311-3/+12
| |
* | [utils] Improve parse_iso8601Sergey M․2015-10-281-4/+9
|/
* [utils:js_to_json] Fix bad escape in double quoted stringsSergey M․2015-10-201-2/+2
|
* [letv] Fix extractionYen Chi Hsuan2015-10-181-0/+5
| | | | | Using data URIs for passing the decrypted M3U8 manifest, which is supported by ffmpeg only.
* [utils] Return default on fail in int_or_noneSergey M․2015-10-141-1/+1
|
* [utils] Do not fail in float_or_none on non-numeric dataSergey M․2015-10-141-1/+6
|
* [utils] Do not fail in int_or_none on non-numeric data (Closes #7175)Sergey M․2015-10-141-1/+6
|
* [utils] Fix kwargs on old python 2 (Closes #6905)Sergey M․2015-09-201-1/+1
|
* [utils] Comment cookie processing until result from travis and some more testingSergey M․2015-09-061-8/+8
|
* [utils] Simplify cookie processorSergey M․2015-09-061-3/+1
|
* [utils] Add encode_dictSergey M․2015-09-061-0/+4
|
* [utils] Add issue URL in comment for #6457Sergey M․2015-09-061-1/+2
|
* [utils] Add cookie processor for cookie correction (Closes #6769)Sergey M․2015-09-061-0/+26
|
* [utils] Generalize cli option convertersSergey M․2015-09-051-0/+26
|
* [utils] Improve xpath_textSergey M․2015-09-051-2/+13
|
* [utils] Relax attribute key assertSergey M․2015-09-041-1/+1
|
* [utils] Add xpath_element and xpath_attrSergey M․2015-09-041-2/+19
|
* [utils] Strict HTTP responses (Closes #6727)Sergey M․2015-09-021-0/+5
|
* [utils] Percent-encode redirect URL of Location header (Closes #6457)Sergey M․2015-08-071-0/+11
|
* [YoutubeDL:utils] Move percent encode non-ASCII URLs workaround to ↵Sergey M․2015-08-061-0/+20
| | | | http_request and simplify (Closes #6457)
* [utils] Make value optional for find_xpath_attrSergey M․2015-08-011-5/+8
| | | | This allows selecting particular attributes by name but without specifying the value and similar to xpath syntax `[@attrib]`
* Remove redundant (and wrong) class parametersRaphael Michel2015-07-261-3/+1
|
* [utils] Improve parse_durationYen Chi Hsuan2015-07-221-2/+2
| | | | Now dots are parsed. For example '87 Min.'
* [utils] Add default value for xpath_textSergey M․2015-06-281-2/+6
|
* [utils] Add ISO3166UtilsYen Chi Hsuan2015-06-271-0/+260
|
* [utils] Support ttaf1 namespace in TTMLYen Chi Hsuan2015-06-211-4/+7
| | | | It's found in bbc.co.uk. See #6038
* [utils/ffmpeg] Move ISO 639 related codes to utilsYen Chi Hsuan2015-06-211-0/+202
|