Commit Graph

219 Commits (7455832f311843663b416968b9e5a0a0c6134d8d)

Author SHA1 Message Date
Jouke Waleson 8bcc875676 PEP8: more applied 10 years ago
Jouke Waleson 5f6a1245ff PEP8 applied 10 years ago
Philipp Hagemeister 7d4111ed14 Provide guidance when called with a YouTube ID starting with a dash.
Reported at https://news.ycombinator.com/item?id=8648121
10 years ago
Philipp Hagemeister 6a68bb574a [eporner] Fix duration (Closes #4188) 10 years ago
Philipp Hagemeister 609a61e3e6 [npo] Improve npo.nl (Fixes #4173) 10 years ago
Philipp Hagemeister 4c0924bb24 [utils] Fix intlist_to_bytes in Python 2 (#4181) 10 years ago
Philipp Hagemeister e4bdb37ec6 [spiegel] Add support for embeds 10 years ago
Philipp Hagemeister 12ea2f30cf [utils] Remove unused get_meta_content function 10 years ago
Philipp Hagemeister 8c25f81bee [util] Move compatibility functions out of util
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 .
10 years ago
Philipp Hagemeister 7d11297f3f Merge branch 'master' of github.com:rg3/youtube-dl 10 years ago
Philipp Hagemeister 6ad4013d40 [drtv] Allow fractional timestamps (Fixes #4059) 10 years ago
Jaime Marquínez Ferrándiz 8abec2c8bb [test_utils] Fix compat_getenv and compat_expanduser tests on python 3.x 10 years ago
Sergey M․ f889cea109 Merge branch 'compat-getenv-and-expanduser' of https://github.com/dstftw/youtube-dl into dstftw-compat-getenv-and-expanduser
Conflicts:
	test/test_utils.py
	youtube_dl/__init__.py
10 years ago
Philipp Hagemeister e7b6d12254 [utils] Improve and test js_to_json 10 years ago
Philipp Hagemeister 410f3e73ab [utils] Fix js_to_json 10 years ago
Sergey M․ 4644ac5527 [core] Decode environment variables with filesystem encoding (Fixes #3854, Fixes #3217, Fixes #2918)
Introduces compat versions of os.getenv and os.path.expanduser
10 years ago
Philipp Hagemeister 99b67fecc5 [arte] Fix upload date extraction 10 years ago
Philipp Hagemeister 9c44d2429b [vimeo:likes] Support large like lists (Fixes #3847) 10 years ago
Philipp Hagemeister 0003a5c416 Merge remote-tracking branch 'dstftw/escape-non-ascii-in-urls'
Conflicts:
	test/test_utils.py
10 years ago
Philipp Hagemeister a020a0dc20 [facebook] Fix support for untitled videos (Fixes #3757) 10 years ago
Sergey M․ d05cfe0600 [YoutubeDL/utils] Clarify rationale for URL escaping in comment, move escape routines to utils and add some tests 10 years ago
Sergey M․ ca7b3246b6 [utils] Improve parse_duration 10 years ago
Philipp Hagemeister 4e408e479b [utils] Modernize tests 10 years ago
Philipp Hagemeister 7adcbe7594 [rtlnl] Extract duration 10 years ago
Jaime Marquínez Ferrándiz 173a7026d5 [test/test_utils] Fix typo in method name 10 years ago
Philipp Hagemeister 676eb3f2dd Fix unicode_escape (Fixes #2695) 11 years ago
Philipp Hagemeister fac55558ad [washingtonpost] Add extractor (Fixes #2622) 11 years ago
Philipp Hagemeister 912b38b428 [instagram] Fix info_dict key name 11 years ago
Jaime Marquínez Ferrándiz b74fa8cd2c [facebook] Fix login process
It was broken and didn't work in python 3.
And use `_download_webpage` instead of `compat_urllib_request.urlopen`.
11 years ago
Philipp Hagemeister 62e609ab77 Ignore BOM in batch files (Fixes #2450) 11 years ago
Sergey M. 2db806b4aa Improve parse_duration 11 years ago
Philipp Hagemeister b53466e168 Fix f4m downloading on Python 2.6 11 years ago
Philipp Hagemeister 026fcc0495 Fix #2355 (date parsing with dashes) 11 years ago
Philipp Hagemeister 65697b3bf3 Merge branch 'paged-lists'
Conflicts:
	test/test_utils.py
	youtube_dl/extractor/youtube.py
11 years ago
Philipp Hagemeister 5aafe895fc Correct XML ampersand fixup 11 years ago
Philipp Hagemeister b7ab059084 Add infrastructure for paged lists
This commit allows to download pages in playlists as needed instead of all at once.
Before this commit,
    youtube-dl http://www.youtube.com/user/ANNnewsCH/videos --playlist-end 2 --skip-download
took quite some time - now it's almost instantaneous.
As an example, the youtube:user extractor has been converted.
Fixes #2175
11 years ago
Philipp Hagemeister 608d11f515 [cnn] Add multiple formats, duration, and upload_date 11 years ago
Philipp Hagemeister d6c7a367e8 [utils] Fix url_basename 11 years ago
Philipp Hagemeister 29eb517403 Add webpage_url_basename info_dict field (Fixes #1938) 11 years ago
Jaime Marquínez Ferrándiz f53c966a73 [dailymotion] Extract view count (#1895) 11 years ago
Jaime Marquínez Ferrándiz a6a173c2fd utils.shell_quote: Convert the args to unicode strings
The youtube test video failed with `UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 34: ordinal not in range(128)`, the problem was with the filenames being encoded.
11 years ago
Philipp Hagemeister 9d4660cab1 [generic] Support embedded vimeo videos (#1602) 11 years ago
Philipp Hagemeister 44a5f1718a Simplify tests
* Make them directly executable again
* Move common stuff (md5, parameters) to helper
* Never import *
* General clean up
11 years ago
Jaime Marquínez Ferrándiz d7e66d39a0 Add an extractor for internetvideoarchive.com videos
It's used by videodetective.com
11 years ago
Jaime Marquínez Ferrándiz a921f40799 [ustream] Simplify channel extraction
the ChannelParser has been moved to a new function in utils get_meta_content
Instead of the SocialStreamParser now it uses a regex
11 years ago
Philipp Hagemeister 59ae56fad5 Add helper function find_path_attr 11 years ago
Jaime Marquínez Ferrándiz 37254abc36 Allow to use relative dates in the format (now|today)[+-][0-9](day|week|month|year)(s)? (Closes #137)
Also fix DateRange not accepting ranges of one day.
12 years ago
Jaime Marquínez Ferrándiz bf50b0383e Fix some IEs that didn't return the uploade_date in the YYYYMMDD format
Create a function unified_strdate in utils.py to fix these problems
12 years ago
Jaime Marquínez Ferrándiz bd55852517 Allow to select videos to download by their upload dates (related #137)
Only absolute dates.
12 years ago
Philipp Hagemeister 314d506b96 Do not use deprecated method 12 years ago
Philipp Hagemeister e387eb5aba Let youtube IE handle IDs starting with PL (Closes #572) 12 years ago
Philipp Hagemeister 796173d08b Keep video IDs verbatim if possible (Closes #571) 12 years ago
Philipp Hagemeister 627dcfff39 Restrict more characters (Closes #566) 12 years ago
Philipp Hagemeister 59ae15a507 Convert all tabs to 4 spaces (PEP8) 12 years ago
Philipp Hagemeister 8cd10ac4ef Fix printing title etc. 12 years ago
Philipp Hagemeister dae7c920f6 Make test_utils.py run on Python 3 12 years ago
Philipp Hagemeister dffe658bac Remove exclamation mark in --restrict-filenames mode 12 years ago
Philipp Hagemeister 1a911e60a4 Add test for asian characters (#551) 12 years ago
Philipp Hagemeister 46cbda0be4 Minor filename encoding improvement in a common case 12 years ago
Philipp Hagemeister c7032546f1 Clean up test 12 years ago
Philipp Hagemeister 56781d3d2e Switch back to underline for invalid characters, and make restricted ASCII-only 12 years ago
Philipp Hagemeister 1c469a9480 New optoin --restrict-filenames 12 years ago
Philipp Hagemeister 156a59e7a9 Additional tests in file name sanitation 12 years ago
Filippo Valsorda 42cb53fcfa modified filename escaping to a "smarter" one 12 years ago
gcmalloc 4279a0ca98 correcting test to be compatible with python2.6 12 years ago
gcmalloc 137c5803c3 some changes to keep the same standard 12 years ago
gcmalloc 80a846e119 correction on the test for the utils.py 12 years ago
gcmalloc 44fb345437 adding TestCase class and corresponding test 12 years ago
gcmalloc 9993976ae4 correction on the sanitize title method, change in title resulting 12 years ago