summaryrefslogtreecommitdiffstats
path: root/youtube_dl/utils.py
Commit message (Collapse)AuthorAgeFilesLines
...
| * Fix utils.py for PyPy on WindowsGrom PE2014-12-061-4/+4
| | | | | | | | | | | | | | | | | | | | 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.
* | Revert "[utils] Work around PyPy stupidity with Windows DLLs (Fixes #4392)"Philipp Hagemeister2014-12-121-5/+4
| | | | | | | | This reverts commit 16040f46d64bad8dcc5f948288ef469dd787d3d3.
* | [utils] Work around PyPy stupidity with Windows DLLs (Fixes #4392)Philipp Hagemeister2014-12-121-4/+5
| |
* | [cinchcast] Add new extractor (Fixes #4428)Philipp Hagemeister2014-12-121-4/+13
| |
* | [utils] Add "yesterday" as a date keywordPhilipp Hagemeister2014-12-111-1/+3
| |
* | Fix PEP8 issue E713Jaime Marquínez Ferrándiz2014-12-091-1/+1
|/
* [ffmpeg] Improve version check and call it from hls (Fixes #4377)Philipp Hagemeister2014-12-061-1/+1
|
* [minhateca] Fix duration parsingPhilipp Hagemeister2014-12-041-4/+15
|
* [minhateca] Add extractor (Fixes #4094)Philipp Hagemeister2014-12-041-2/+5
|
* [utils] remove useless u prefixPhilipp Hagemeister2014-11-261-1/+1
|
* [xminus] Simplify and extend (#4302)Philipp Hagemeister2014-11-251-0/+51
|
* Fix all PEP8 issues except E501Philipp Hagemeister2014-11-231-3/+3
|
* PEP8 appliedJouke Waleson2014-11-231-6/+26
|
* Provide guidance when called with a YouTube ID starting with a dash.Philipp Hagemeister2014-11-231-0/+6
| | | | Reported at https://news.ycombinator.com/item?id=8648121
* [utils] Improve update on error message somewhatPhilipp Hagemeister2014-11-201-1/+15
| | | | 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.
* Fix "ERROR: Cannot write metadata to JSON file" on WindowsIvan Kozik2014-11-201-1/+8
| | | | Fixes #4246
* Fix UnicodeEncodeError with --write-info-json on Python 2.7 + WindowsIvan Kozik2014-11-201-1/+1
| | | | Fixes #4244
* [cache] Fix writing to paths with unicode charactersJaime Marquínez Ferrándiz2014-11-191-0/+1
| | | | | * Use "compat_getenv" * "write_json_file" now expects the filename to be a string
* [utils] Remove stray u'Philipp Hagemeister2014-11-171-31/+31
|
* [eporner] Fix duration (Closes #4188)Philipp Hagemeister2014-11-161-1/+6
|
* [utils] Fix "write_json_file" for unicode names in python 2.x (fixes #4125)Jaime Marquínez Ferrándiz2014-11-151-2/+14
|
* [utils] Fix struct.pack call on very old Python versions (#4181)Philipp Hagemeister2014-11-141-1/+1
|
* [npo] Improve npo.nl (Fixes #4173)Philipp Hagemeister2014-11-131-1/+2
|
* [utils] Fix intlist_to_bytes in Python 2 (#4181)Philipp Hagemeister2014-11-131-4/+1
|
* [utils] Remove unused importPhilipp Hagemeister2014-11-051-1/+0
|
* [utils] Use a regexp instead of HTMLParser for get_element_by_attributePhilipp Hagemeister2014-11-041-105/+16
|
* [utils] Remove unused get_meta_content functionPhilipp Hagemeister2014-11-041-10/+2
|
* Do not override stdlib html parser 'locatestarttagend' regex (fixes #4081)Jaime Marquínez Ferrándiz2014-11-021-1/+3
| | | | | '<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).
* [utils] ModernizePhilipp Hagemeister2014-11-021-1/+3
|
* [compat] Fix importsPhilipp Hagemeister2014-11-021-1/+0
|
* [util] Move compatibility functions out of utilPhilipp Hagemeister2014-11-021-277/+13
| | | | | | | 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 .
* [ffmpeg] Move version detection to utilsPhilipp Hagemeister2014-11-021-0/+19
|
* [drtv] Allow fractional timestamps (Fixes #4059)Philipp Hagemeister2014-10-291-2/+2
|
* [ffmpeg] Warn if ffmpeg/avconv version is too old (Fixes #4026)Philipp Hagemeister2014-10-261-0/+13
|
* Merge branch 'compat-getenv-and-expanduser' of ↵Sergey M․2014-10-261-4/+83
|\ | | | | | | | | | | | | | | https://github.com/dstftw/youtube-dl into dstftw-compat-getenv-and-expanduser Conflicts: test/test_utils.py youtube_dl/__init__.py
| * [utils] Add posix expanduser implementation and clarify the original sourceSergey M․2014-10-011-27/+61
| |
| * [core] Decode environment variables with filesystem encoding (Fixes #3854, ↵Sergey M․2014-09-301-4/+49
| | | | | | | | | | | | Fixes #3217, Fixes #2918) Introduces compat versions of os.getenv and os.path.expanduser
* | [utils] Add additional format to unified_strdateNaglis Jonaitis2014-10-041-0/+1
| |
* | [utils] Default age_limit to NonePhilipp Hagemeister2014-10-031-2/+2
| | | | | | | | If we can't parse it, it means we don't have any information, not that the content is unrestricted.
* | [utils] Add parse_age_limitSergey M․2014-10-031-0/+7
| |
* | [utils] Improve and test js_to_jsonPhilipp Hagemeister2014-10-011-21/+16
| |
* | [utils] Fix js_to_jsonPhilipp Hagemeister2014-10-011-1/+5
|/
* [arte] Fix upload date extractionPhilipp Hagemeister2014-09-291-0/+1
|
* [utils:YoutubeDLHandler] Work around brain-dead Python 2.6 httplibPhilipp Hagemeister2014-09-291-0/+6
| | | | In 2.6, the httplib sends fragments! Remove those (fixes generic_26 on 2.6).
* [vimeo:likes] Support large like lists (Fixes #3847)Philipp Hagemeister2014-09-291-4/+35
|
* Merge remote-tracking branch 'dstftw/escape-non-ascii-in-urls'Philipp Hagemeister2014-09-151-0/+18
|\ | | | | | | | | Conflicts: test/test_utils.py
| * [utils] Remove debug garbageSergey M․2014-09-131-1/+1
| |
| * [YoutubeDL/utils] Clarify rationale for URL escaping in comment, move escape ↵Sergey M․2014-09-131-0/+18
| | | | | | | | routines to utils and add some tests
* | [facebook] Fix support for untitled videos (Fixes #3757)Philipp Hagemeister2014-09-151-0/+10
| |
* | [utils] Apply 2.6 xpath crazinessPhilipp Hagemeister2014-09-131-0/+3
| | | | | | | | This fixes ARD on 2.6