Sergey M․
364cf465dd
[test_utils] PEP 8
2016-05-14 20:46:33 +06:00
Sergey M․
89ac4a19e6
[utils] Process non-base 10 integers in js_to_json
2016-05-14 20:39:58 +06:00
felix
bd1e484448
[utils] js_to_json: various improvements
...
now JS object literals like { /* " */ 0: ",]\xaa<\/p>", } will be correctly converted to JSON.
2016-05-14 20:12:39 +06:00
Yen Chi Hsuan
98d560f205
[test/test_socks] Skip SOCKS tests
...
They occasional trigger errors or blocks
(https://travis-ci.org/rg3/youtube-dl/jobs/130184883 )
2016-05-14 18:48:36 +08:00
Yen Chi Hsuan
778a1ccca7
[utils] Add Œ and œ found in French to ACCENT_CHARS
...
Fixes #9463
2016-05-12 19:48:48 +08:00
Gilles Habran
79c92a5fa7
Merge branch 'master' of https://github.com/rg3/youtube-dl
2016-05-10 09:41:55 +02:00
Yen Chi Hsuan
c2876afafe
[test/test_socks] Use a different port range
...
Seems on Travis CI, ports in the original range are often used.
2016-05-10 14:51:38 +08:00
Yen Chi Hsuan
e21f17fc86
[test/test_socks] Test with local SOCKS servers
2016-05-10 14:51:38 +08:00
Yen Chi Hsuan
edaa23f822
[compat] Rename struct_(un)pack to compat_struct_(un)pack
2016-05-10 14:51:38 +08:00
Yen Chi Hsuan
72f3289ac4
[test/test_socks] Add tests for SOCKS proxies
2016-05-10 14:51:38 +08:00
Yen Chi Hsuan
dab0daeeb0
[utils,compat] Move struct_pack and struct_unpack to compat.py
2016-05-10 14:51:38 +08:00
Sergey M․
fad7bbec3a
[test_compat] Remove unused import
2016-05-09 22:15:55 +06:00
Sergey M․
20cfdcc910
[test_compat] Avoid None values for compat_setenv
2016-05-09 22:00:14 +06:00
Sergey M․
1292638754
[test_compat] Use compat_setenv
2016-05-09 21:58:38 +06:00
Sergey M․
fe40f9eef2
[compat] Add compat_setenv
2016-05-09 21:55:03 +06:00
Gilles Habran
d9d23ba68a
Merge branch 'master' of https://github.com/rg3/youtube-dl
2016-05-06 08:43:44 +02:00
Adam Thalhammer
31c4448f6e
Instead of replacing accented characters with an underscore when sanitizing file names in restricted mode, replace them with their non-accented equivalents fixes #9347
2016-05-02 13:25:12 +10:00
Adam Thalhammer
79a2e94e79
Instead of replacing accented characters with an underscore when sanitizing file names in restricted mode, replace them with their non-accented equivalents fixes #9347
2016-05-02 13:21:39 +10:00
Gilles Habran
f896739541
Merge branch 'master' of https://github.com/rg3/youtube-dl
2016-04-22 16:38:40 +02:00
Sergey M
b6c0d4f431
Merge pull request #9110 from remitamine/parse_duration
...
[utils] imporove parse_duration to handle more formats
2016-04-21 22:53:16 +07:00
remitamine
acaff49575
[utils] imporove parse_duration to handle more formats
2016-04-21 16:34:54 +01:00
Gilles Habran
d742440e82
Merge branch 'master' of https://github.com/rg3/youtube-dl
2016-04-18 14:05:18 +02:00
Jaime Marquínez Ferrándiz
1b6182d8f7
[youtube:playlist] Fetch all the videos in a mix ( fixes #3837 )
...
Since there doesn't seem to be any indication, it stops when there aren't new videos in the webpage.
2016-04-17 17:07:57 +02:00
Gilles Habran
a00c9e7242
Merge branch 'master' of https://github.com/rg3/youtube-dl
2016-04-11 09:40:01 +02:00
Jaime Marquínez Ferrándiz
6a801f4470
[test/InfoExtractors] add test for _download_json
2016-04-09 23:18:41 +02:00
Jaime Marquínez Ferrándiz
eb9c3edd5e
[test/utils] Add test for date_from_str
2016-04-09 22:40:05 +02:00
Yen Chi Hsuan
6c4c7539f2
[test/helper] Check got values to be strings for md5: fields
...
Seen in PBSIE tests
2016-04-09 22:04:48 +08:00
Gilles Habran
0111ba8755
Merge branch 'master' of https://github.com/rg3/youtube-dl
2016-04-08 18:28:27 +02:00
Yen Chi Hsuan
92d5477d84
[compat] Handle tuples properly in urlencode()
...
Fixes #9055
2016-04-06 18:29:54 +08:00
Gilles Habran
05db7b8fbb
Merge branch 'master' of https://github.com/rg3/youtube-dl
2016-03-31 09:10:53 +02:00
Sergey M․
e289d6d62c
[test_compat] Add tests for compat_urllib_parse_urlencode
2016-03-26 02:38:33 +06:00
Gilles Habran
ef94573770
Merge branch 'master' of https://github.com/rg3/youtube-dl
2016-03-25 11:37:11 +01:00
Yen Chi Hsuan
81f36eba88
[test/test_utils] Update for escape_url change (again)
2016-03-23 23:23:26 +08:00
Yen Chi Hsuan
2d60465e44
[test/test_utils] Update for escape_url change
2016-03-23 23:20:28 +08:00
Yen Chi Hsuan
efbed08dc2
[utils] Encode hostnames before passing to urllib
...
With IDN (Internationalized Domain Name) and a proxy, non-ascii URLs
are passed down to urllib/urllib2, causing UnicodeEncodeError
Fixes #8890
2016-03-23 22:24:52 +08:00
Jaime Marquínez Ferrándiz
782b1b5bd1
[utils] lookup_unit_table: Match word boundary instead of end of string
2016-03-19 11:44:49 +01:00
Sergey M․
4c3b16d5d1
[test_YoutubeDL] Add test for format_id format selection
2016-03-19 00:04:26 +06:00
Sergey M․
c5229f3926
[utils] PEP 8
2016-03-16 21:50:04 +06:00
remitamine
83548824c2
Merge pull request #8092 from bpfoley/twitter-thumbnail
...
[utils] Add extract_attributes for extracting html tag attributes
2016-03-16 13:16:27 +01:00
Sergey M․
fb47597b09
[bbc] Generalize unit table lookup and add parse_count
2016-03-13 16:27:20 +06:00
Sergey M․
e0dccdd398
[test_YoutubeDL] PEP 8
2016-03-10 09:04:48 +06:00
Sergey M․
5d583bdf6c
[YoutubeDL] Improve _format_note
2016-03-10 01:03:18 +06:00
remitamine
1255733945
Merge pull request #8739 from remitamine/update_url_params
...
[utils] add update_url_query function to create or update query string params
2016-03-03 19:24:04 +01:00
remitamine
3201a67f61
[test/test_utils] add more tests for update_url_query
2016-03-03 19:18:57 +01:00
remitamine
fb640d0a3d
[test/test_utils] add tests for update_url_query
2016-03-03 18:40:05 +01:00
Yen Chi Hsuan
429491f531
[test/http] Fix failure in Jython
...
make offlinetest passed on the latest Jython hg version with patched
lib-python/2.7/urllib2.py pulled from CPython 2.7.11
2016-03-03 21:55:17 +08:00
Yen Chi Hsuan
e9c0cdd389
[jython] Introduce compat_os_name
...
os.name is always 'java' on Jython
2016-03-03 19:24:24 +08:00
Brian Foley
8bb56eeeea
[utils] Add extract_attributes for extracting html tag attributes
...
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-03 10:11:37 +00:00
Gilles Habran
49abafd765
adds almost all valid characters for a valid youtube playlist name to the match filter options
2016-03-03 09:21:23 +01:00
gillouche
9fe112c222
prevents wrong matching results because of trailing spaces for the match-filter options
2016-03-02 22:38:55 +01:00