aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/utils.py
AgeCommit message (Collapse)Author
2014-12-12Merge remote-tracking branch 'grompe/patch-1'Philipp Hagemeister
2014-12-12Revert "[utils] Work around PyPy stupidity with Windows DLLs (Fixes #4392)"Philipp Hagemeister
This reverts commit 16040f46d64bad8dcc5f948288ef469dd787d3d3.
2014-12-12[utils] Work around PyPy stupidity with Windows DLLs (Fixes #4392)Philipp Hagemeister
2014-12-12[cinchcast] Add new extractor (Fixes #4428)Philipp Hagemeister
2014-12-11[utils] Add "yesterday" as a date keywordPhilipp Hagemeister
2014-12-09Fix PEP8 issue E713Jaime Marquínez Ferrándiz
2014-12-06Fix utils.py for PyPy on WindowsGrom PE
The line ```python from __future__ import unicode_literals ``` introduced in commit [ecc0c5ee01f0e5bdd6af0c32cb5b4adcb2a2f78c](https://github.com/rg3/youtube-dl/commit/ecc0c5ee01f0e5bdd6af0c32cb5b4adcb2a2f78c) broke youtube-dl for PyPy on Windows, making it unable to locate WinAPI functions. Error: "TypeError: function name must be a string or integer" Adding "b" prefix to strings with WinAPI function names fixes it.
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