aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/utils.py
AgeCommit message (Collapse)Author
2014-12-06[ffmpeg] Improve version check and call it from hls (Fixes #4377)Philipp Hagemeister
2014-12-04[minhateca] Fix duration parsingPhilipp Hagemeister
2014-12-04[minhateca] Add extractor (Fixes #4094)Philipp Hagemeister
2014-11-26[utils] remove useless u prefixPhilipp Hagemeister
2014-11-25[xminus] Simplify and extend (#4302)Philipp Hagemeister
2014-11-23Fix all PEP8 issues except E501Philipp Hagemeister
2014-11-23PEP8 appliedJouke Waleson
2014-11-23Provide guidance when called with a YouTube ID starting with a dash.Philipp Hagemeister
Reported at https://news.ycombinator.com/item?id=8648121
2014-11-20[utils] Improve update on error message somewhatPhilipp Hagemeister
We still may want to implement a bulletproof check for the current version, and a better place to add this message so that it works for all kind of other errors too.
2014-11-20Fix "ERROR: Cannot write metadata to JSON file" on WindowsIvan Kozik
Fixes #4246
2014-11-20Fix UnicodeEncodeError with --write-info-json on Python 2.7 + WindowsIvan Kozik
Fixes #4244
2014-11-19[cache] Fix writing to paths with unicode charactersJaime Marquínez Ferrándiz
* Use "compat_getenv" * "write_json_file" now expects the filename to be a string
2014-11-17[utils] Remove stray u'Philipp Hagemeister
2014-11-16[eporner] Fix duration (Closes #4188)Philipp Hagemeister
2014-11-15[utils] Fix "write_json_file" for unicode names in python 2.x (fixes #4125)Jaime Marquínez Ferrándiz
2014-11-14[utils] Fix struct.pack call on very old Python versions (#4181)Philipp Hagemeister
2014-11-13[npo] Improve npo.nl (Fixes #4173)Philipp Hagemeister
2014-11-13[utils] Fix intlist_to_bytes in Python 2 (#4181)Philipp Hagemeister
2014-11-05[utils] Remove unused importPhilipp Hagemeister
2014-11-04[utils] Use a regexp instead of HTMLParser for get_element_by_attributePhilipp Hagemeister
2014-11-04[utils] Remove unused get_meta_content functionPhilipp Hagemeister
2014-11-02Do not override stdlib html parser 'locatestarttagend' regex (fixes #4081)Jaime Marquínez Ferrándiz
'<a href="foo" ><img src="bar" / ></a>' wouldn't be parsed right (the problem is '/ >', '/>' worked fine). We need to change it in python 2.6 (for example the description of youtube videos wouldn't be extracted).
2014-11-02[utils] ModernizePhilipp Hagemeister
2014-11-02[compat] Fix importsPhilipp Hagemeister
2014-11-02[util] Move compatibility functions out of utilPhilipp Hagemeister
utils is large enough without these compatibility functions. Everything that is present in newer versions of Python (i.e. with dev Python it's just an import) goes into compat.py . Everything else (i.e. youtube-dl-specific helpers) goes into utils.py .
2014-11-02[ffmpeg] Move version detection to utilsPhilipp Hagemeister
2014-10-29[drtv] Allow fractional timestamps (Fixes #4059)Philipp Hagemeister
2014-10-26[ffmpeg] Warn if ffmpeg/avconv version is too old (Fixes #4026)Philipp Hagemeister
2014-10-26Merge branch 'compat-getenv-and-expanduser' of ↵Sergey M․
https://github.com/dstftw/youtube-dl into dstftw-compat-getenv-and-expanduser Conflicts: test/test_utils.py youtube_dl/__init__.py
2014-10-04[utils] Add additional format to unified_strdateNaglis Jonaitis
2014-10-03[utils] Default age_limit to NonePhilipp Hagemeister
If we can't parse it, it means we don't have any information, not that the content is unrestricted.
2014-10-03[utils] Add parse_age_limitSergey M․
2014-10-01[utils] Add posix expanduser implementation and clarify the original sourceSergey M․
2014-10-01[utils] Improve and test js_to_jsonPhilipp Hagemeister
2014-10-01[utils] Fix js_to_jsonPhilipp Hagemeister
2014-09-30[core] Decode environment variables with filesystem encoding (Fixes #3854, ↵Sergey M․
Fixes #3217, Fixes #2918) Introduces compat versions of os.getenv and os.path.expanduser
2014-09-29[arte] Fix upload date extractionPhilipp Hagemeister
2014-09-29[utils:YoutubeDLHandler] Work around brain-dead Python 2.6 httplibPhilipp Hagemeister
In 2.6, the httplib sends fragments! Remove those (fixes generic_26 on 2.6).
2014-09-29[vimeo:likes] Support large like lists (Fixes #3847)Philipp Hagemeister
2014-09-15Merge remote-tracking branch 'dstftw/escape-non-ascii-in-urls'Philipp Hagemeister
Conflicts: test/test_utils.py
2014-09-15[facebook] Fix support for untitled videos (Fixes #3757)Philipp Hagemeister
2014-09-13[utils] Remove debug garbageSergey M․
2014-09-13[YoutubeDL/utils] Clarify rationale for URL escaping in comment, move escape ↵Sergey M․
routines to utils and add some tests
2014-09-13[utils] Apply 2.6 xpath crazinessPhilipp Hagemeister
This fixes ARD on 2.6
2014-09-13[ard] Make more robust against missing thumbnailsPhilipp Hagemeister
I cannot reproduce this error, it's from travis.
2014-09-13[utils] Fix find_xpath_attr on 2.6Philipp Hagemeister
2014-09-12[utils] Default SSL to TLS. (Fixes #3727)Philipp Hagemeister
On 2.x, we now try TLS first, and fall back to the compat 23 (basically anything) afterwards. On 3.4+, we now use the proper function so that we get all the latest security configurations. We allow SSLv3 though for the time being, since a lot of older pages use that. On 3.3, we default to SSLv23 (basically "anything, including TLS") because that has the widest compatibility.
2014-09-03[youtube] Move cache into its own modulePhilipp Hagemeister
2014-09-03[utils] Make parse_duration case insensitiveSergey M․
2014-09-03[tvigle] Adapt to the new APISergey M․