aboutsummaryrefslogtreecommitdiffstats
path: root/youtube_dl/utils.py
Commit message (Collapse)AuthorAgeFilesLines
...
* 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.
* [utils] Add quicktime to mimetype2extSergey M․2016-09-021-0/+1
|
* [utils] Improve mimetype2extSergey M․2016-09-021-1/+1
|
* [utils] add ac-3 to the list of audio codecs in parse_codecsRemita Amine2016-08-251-1/+1
|
* [utils] Recognize units with full names in parse_filenameYen Chi Hsuan2016-08-201-0/+17
| | | | Reference: https://en.wikipedia.org/wiki/Template:Quantities_of_bytes
* [utils] Correct octal/hexadecimal number detection in js_to_jsonYen Chi Hsuan2016-08-191-3/+3
|
* [utils] Recognize lowercase units in parse_filesizeSergey M․2016-08-181-0/+8
|
* [external/curl] respect more downloader options and display progressRemita Amine2016-08-121-0/+2
|
* [utils] Recognize more formats in unified_timestampYen Chi Hsuan2016-08-101-0/+1
| | | | Used in CtsNews
* [utils] Add support TV Parental Guidelines ratings in parse_age_limitSergey M․2016-08-071-2/+18
|
* [utils] Add decode_png for openload (#9706)Yen Chi Hsuan2016-08-071-0/+108
|
* [utils] Fix unified_timestamp for formats parsed by parsedate_tz()Yen Chi Hsuan2016-08-051-3/+3
|
* [utils] Add another f4m mimetype to mimetype2extSergey M․2016-07-231-0/+1
|
* [brightcove] skip ism manifestsRemita Amine2016-07-141-0/+1
|
* Merge pull request #8876 from remitamine/html5_mediaYen Chi Hsuan2016-07-101-0/+36
|\ | | | | [extractor/common] add helper method to extract html5 media entries
| * [utils] add helper function for parsing codecsremitamine2016-06-261-0/+36
| |
* | [utils] Add get_element_by_classYen Chi Hsuan2016-07-061-2/+10
| | | | | | | | For #9950
* | [utils] add mimetypes to determine manifest ext(m3u8, f4m, mpd)Remita Amine2016-07-061-0/+7
| |
* | [kaltura] add support videos stored on custom kaltura servers(closes #5557)Remita Amine2016-07-041-0/+2
| |
* | [utils] Add PUTRequestSergey M․2016-07-031-3/+12
| |
* | [HRTi] Implement extractor for Croatian RadiotelevisionAleksandar Topuzovic2016-07-031-0/+2
| |
* | [utils] Add urshift()Yen Chi Hsuan2016-06-261-0/+4
| | | | | | | | Used in IqiyiIE and LeIE
* | [utils] Add strip_or_noneSergey M․2016-06-251-0/+4
| |
* | [utils] Add unified_timestampSergey M․2016-06-251-58/+92
|/
* [downloader/hls] Add support for AES-128 encrypted segments in hlsnative ↵remitamine2016-06-191-0/+9
| | | | downloader
* [utils] Don't transform numbers not starting with a zeroYen Chi Hsuan2016-06-161-1/+1
| | | | Fix test_Viidea and maybe others
* [utils] Add try_getSergey M․2016-06-121-0/+10
| | | | To reduce boilerplate when accessing JSON
* [utils] Change Firefox 44 to 47Paul Henning2016-06-111-1/+1
| | | See commit title.
* [utils] Decode HTML5 entitiesYen Chi Hsuan2016-06-101-2/+10
| | | | Used in test_Vporn_1. Also related to #9270
* [utils] Add audio/mpeg to mimetype2ext()Yen Chi Hsuan2016-06-091-0/+3
| | | | Used in WDR live radios (#6147)
* Added sanitization support for Hungarian letters Ő and Űbzc6p2016-06-021-3/+3
|
* [utils] Use bytes-like objects as header values on Python 2Yen Chi Hsuan2016-06-021-0/+2
|
* [utils] Always decode Location headerYen Chi Hsuan2016-06-021-0/+2
| | | | escape_url is broken for bytes-like objects