aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/utils.py
AgeCommit message (Collapse)Author
2016-04-25[utils] Allow None mimetypes in mimetype2extSergey M․
2016-04-21Merge pull request #9110 from remitamine/parse_durationSergey M
[utils] imporove parse_duration to handle more formats
2016-04-21[utils] imporove parse_duration to handle more formatsremitamine
2016-04-09[utils] Don't touch URLs if not necessaryYen Chi Hsuan
Fix test_Generic_15 (Google redirect)
2016-04-04[utils] dfxp2srt: add additional namespaceJaime Marquínez Ferrándiz
Used by the ZDF subtitles (#9081).
2016-03-31[utils] Use update_Request in http_requestSergey M․
2016-03-31[utils] Add update_RequestSergey M․
2016-03-26[utils] Extract sanitize_url routineSergey M․
2016-03-26[compat] Add compat_urllib_parse_urlencode and eliminate encode_dictSergey M․
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
2016-03-24[utils] Clarify Python versions affected by buggy struct moduleYen Chi Hsuan
2016-03-23[utils] Encode hostnames before passing to urllibYen Chi Hsuan
With IDN (Internationalized Domain Name) and a proxy, non-ascii URLs are passed down to urllib/urllib2, causing UnicodeEncodeError Fixes #8890
2016-03-19[utils] lookup_unit_table: Match word boundary instead of end of stringJaime Marquínez Ferrándiz
2016-03-18utils: lookup_unit_table: Use a stricter regexJaime Marquínez Ferrándiz
In parse_count multiple units start with the same letter, so it would match different units depending on the order they were sorted when iterating over them.
2016-03-18[utils] Use compat_xpathSergey M․
2016-03-16[utils] PEP 8Sergey M․
2016-03-16Merge pull request #8092 from bpfoley/twitter-thumbnailremitamine
[utils] Add extract_attributes for extracting html tag attributes
2016-03-13[utils] PEP 8Sergey M․
2016-03-13[bbc] Generalize unit table lookup and add parse_countSergey M․
2016-03-11[utils] Remove codec2extYen Chi Hsuan
This function is orignally used for determining file extensions of DASH formats. Now in DASH, ext is determined by mime_type. See #8766 for more information.
2016-03-06[utils] Add more codecs to codec2extYen Chi Hsuan
BBC uses avc3. Here's an example (thanks to @remitamine for this example) http://rdmedia.bbc.co.uk/dash/ondemand/bbb/2/client_manifest-common_init.mpd See also https://trac.ffmpeg.org/ticket/5217
2016-03-05[utils] Add codec2extYen Chi Hsuan
2016-03-04[utils] update_url_query: Encode the strings in the query dictJaime Marquínez Ferrándiz
The test case with {'test': '第二行тест'} was failing on python 2 (the non-ascii characters were replaced with '?').
2016-03-03Merge pull request #8739 from remitamine/update_url_paramsremitamine
[utils] add update_url_query function to create or update query string params
2016-03-03[utils] add update_url_query functionremitamine
2016-03-03Merge branch 'jython-support'Yen Chi Hsuan
Closes #8302
2016-03-03[utils] Jython support - handle filenames correctlyYen Chi Hsuan
Now test:youtube downloads
2016-03-03[utils] Add extract_attributes for extracting html tag attributesBrian Foley
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.
2016-03-02[utils] remove check for val from find_xpath_attrremitamine
2016-02-27[utils] Multiple changes to base_n()Yen Chi Hsuan
1. Renamed to encode_base_n() 2. Allow tables longer than 62 characters 3. Raise ValueError instead of AssertionError for invalid input data 4. Return the first character in the table instead of '0' for number 0 5. Add tests
2016-02-26[utils] Relaxing regex in decode_packed_codes for vidziYen Chi Hsuan
2016-02-26[utils] Move codes for handling eval() from iqiyi.pyYen Chi Hsuan
2016-02-26[utils] Merge base_n functionsYen Chi Hsuan
2016-02-26[utils] Add base36 for use in VidziYen Chi Hsuan
2016-02-26[utils] Move base62 to utilsYen Chi Hsuan
2016-02-25[utils] Remove AM/PM from unified_strdate patternsSergey M․
2016-02-23[utils] Implement cache for OnDemandPagedListYen Chi Hsuan
2016-02-20add more subtitles mime types to mimetype2ext and fix the platform subtitle ↵remitamine
extraction
2016-02-21[utils] Jython support - disable setproctitle() until ctypes is completeYen Chi Hsuan
2016-02-21[utils] Jython support: tolerate missing fcntl moduleYen Chi Hsuan
2016-02-20[utils] mimetype2ext: return 'm4a' for 'audio/mp4' (fixes #8620)Jaime Marquínez Ferrándiz
The youtube extractor was using 'mp4' for them, therefore filters like 'bestaudio[ext=m4a]' stopped working (94278f720272c5ad2cd5900f59f8e71f31d46633 broke it).
2016-02-20[utils] Add OHDave's RSA encryption functionYen Chi Hsuan
2016-02-14[refactor] Single quotes consistencySergey M․
2016-02-14[refactor] Do not specify redundant None as second argument in dict.get()Sergey M․
2016-02-11[utils] Bump Firefox version in User-AgentSergey M․
Old version number causes Youtube not to serve some formats in ytplayer.config
2016-02-07[utils] Allow dot in strip_jsonpSergey M․
2016-02-07[utils] Add ability to control skipping false values in dict_getSergey M․
2016-02-07[utils] Add dict_get convenience methodSergey M․
2016-02-02[utils] dfxp2srt: make TTMLPElementParser inherit from objectJaime Marquínez Ferrándiz
For consistency between python 2 and 3.
2016-01-28[utils] fix dfxp2srt text extraction(fixes #8055)remitamine
2016-01-25[utils] Reorder items in mimetype2ext alphabeticallyYen Chi Hsuan