23515 Commits

Author SHA1 Message Date
sulyi
9d1f75667c [jsinterp] Fixing deep copy zip in test_jsinterp_parse 2016-12-10 13:58:26 +01:00
Remita Amine
f41db40596 [prosiebensat1] extract dash formats 2016-12-10 13:29:51 +01:00
sulyi
200903cee8 [jsinterp] Fixing py3 zip generator issues in parser tests 2016-12-10 11:41:59 +01:00
Remita Amine
68601ef3ac [rts,srgssr] improve extraction for geo restricted videos(fixes #11089)(closes #4989) 2016-12-10 10:47:56 +01:00
sulyi
88d2a4ed40 [jsinterp] Unittest2 in reqs 2016-12-10 09:41:39 +01:00
sulyi
e392f7897d [jsinterp] Formatting code 2016-12-10 02:59:32 +01:00
sulyi
a9c7310950 [jsinterp] Adding context handling 2016-12-10 02:01:19 +01:00
sulyi
6fa4eb6208 [jsinterp] Fixing compatibility
- compat_str
- unittest2
2016-12-10 00:52:04 +01:00
sulyi
c5c1273ba5 Merge branch 'master' into jsinterp
# Conflicts:
#	youtube_dl/extractor/openload.py
2016-12-09 23:54:33 +01:00
sulyi
dd6a2b5b49 [jsinterp] Clean up
- Fixing test_jsinterp_parse test_empty_return
- Fixing test_call and test_complex_call not testing statements (ast still needed)
- Adding class Reference and Context to jsinterp
- Fixing JSInterpreter interpret_statement and interpret_expression
2016-12-09 23:38:48 +01:00
Sergey M․
18ece70c4d
release 2016.12.09 2016.12.09 2016-12-09 02:46:18 +07:00
Sergey M․
9ed3495eae
[ChangeLog] Actualize 2016-12-09 02:41:49 +07:00
Yen Chi Hsuan
6c20a0bb99
[openload] Fix extraction (closes #10408) 2016-12-09 02:15:16 +08:00
sulyi
651a1e7aa8 [jsinterp] Coding convention fixes 2016-12-08 13:22:28 +01:00
sulyi
4999fcc646 [jsinterp] More test and str fix 2016-12-08 09:20:14 +01:00
sulyi
70a5e31014 [jsinterp] Parentheses fix (test and parser) 2016-12-08 08:29:12 +01:00
sulyi
599b9db878 [jsinterp] First parser tests 2016-12-08 04:00:00 +01:00
sulyi
8ff8a706ed [jsinterp] Str tokens are easier to deal with 2016-12-07 21:03:57 +01:00
sulyi
c2f280d5cc [jsinterp] Compatibility fix 2016-12-07 19:47:10 +01:00
Sergey M․
f43795e56b
[pandoratv] PEP 8 and simplify 2016-12-07 23:50:10 +07:00
Serkora
7441915b1e [pandoratv] Fix extraction (closes #11023) 2016-12-07 23:46:42 +07:00
Corey Nicholson
d3ac433e6f [vlive] Update extraction 2016-12-07 13:49:59 +00:00
sulyi
c426efd5b5 [jsinterp] More tokens 2016-12-07 12:33:07 +01:00
sulyi
ce4a616c4a [jsinterp] Token class for tokens 2016-12-07 07:28:09 +01:00
Remita Amine
283d1c6a8b [telebruxelles] extract all formats and add support for emission urls 2016-12-06 19:01:17 +01:00
sulyi
d422aefc03 [jsinterp] Very basic interpreter
Supports:
- variable declaration
- expression
- variable assignment

Lacks:
- call
- array access
- property access
- property declaration
2016-12-06 18:42:59 +01:00
arichi
50b6909db6 use _download_json to get play_url 2016-12-07 00:09:05 +08:00
arichi
6033d40011 refactor a bit 2016-12-06 21:33:30 +08:00
arichi
ac6e69cde4 added correct hash retrieval 2016-12-06 21:16:06 +08:00
Sergey M․
875ddd7409
[bloomberg] Add another video id regex (closes #11371) 2016-12-06 00:41:03 +07:00
Sergey M․
4afa4ff223
[1tv] Fix video id extraction 2016-12-05 23:28:57 +07:00
vordep
3ed81714d8
[fusion] Update ooyala id regex 2016-12-05 22:43:36 +07:00
Michael Hsin (ytd.l)
31bbd6b91b Skip downloads for now. 2016-12-05 20:00:26 +08:00
sulyi
7864078bfa [jsinterp] Preliminary fixes after some testing of ast 2016-12-05 11:44:32 +01:00
Joshua McKinney
d9218ed9a8 Add extractor for NHL TV 2016-12-05 02:51:46 -06:00
Michael Hsin (ytd.l)
7aeb868f58 Use a shorter video as test case. 2016-12-05 13:46:18 +08:00
vordep
825bfa1698 fix fusion extractor 2016-12-04 23:53:49 +00:00
sulyi
f6ad8db133 [jsinterp] Refactoring and minor fixes 2016-12-04 19:15:35 +01:00
Yen Chi Hsuan
4bd7d9d4ae
[socks] Refine exception model for better error handling
1. ProxyError now inherits from socket.error instead of IOError

The only functions socks.py overrides are connect and connect_ex. In
Python 2.x and Python <= 3.2, socket functions raises socket.error. In
newer Python versions, those functions raises OSError instead. The name
socket.error is preserved as an alias of OSError for backward
compability. To keep socks.py compatible with Python's standard library,
it should raise the same exception as raw sockets.

See PEP 3151 (https://www.python.org/dev/peps/pep-3151/) for more
information about the change in Python 3.3.

2. Raise EOFError instead of IOError when the socket receives less data
than it expects

There's no common convention, but both ftplib and telnetlib raises
EOFError for similar situations. socks.py follows them.

Closes #11355

In #11355, only Python 2 is affected. In Python 3, both socket.error and
IOError are alias of OSError, so AbstractHTTPHandler.do_open correctly
catches the error and thus InfoExtractor._is_valid_url works fine.
2016-12-05 00:43:37 +08:00
Sergey M․
9b5288c92a
[1tv] Improve extraction and add support for playlists (closes #11335) 2016-12-04 23:35:21 +07:00
Michael Hsin (ytd.l)
a6e4b1121f Add TODO. Remove debug messages. 2016-12-04 23:14:33 +08:00
sulyi
f605783764 [jsinterp] Parser - take one (untested)
Supports:
  - arrays
  - expressions
  - calls
  - assignment
  - variable declaration
  - blocks
  - return statement
  - element and property access

  Semantics not yet implemented, tho.
2016-12-04 12:49:30 +01:00
Michael Hsin (ytd.l)
910239c2b7 Use a smaller test case. 2016-12-04 08:00:09 +08:00
Michael Hsin (ytd.l)
8091303b7b First version. Handles archived videos only. 2016-12-04 07:29:26 +08:00
Yen Chi Hsuan
8344296619
[socks] Fix error reporting (#11355) 2016-12-03 21:53:41 +08:00
sulyi
f6005dc652 [jsinterp] Adding _operator_expression using reversed polish notation 2016-12-03 13:21:03 +01:00
sulyi
a89d4906e7 [jsinterp] TokenStream, expression mock up
- new class TokenStream with peek and pop methods
 - _assign_expression handling precedence
 - new logical, unary, equality and relation operators
 - yet another try replacing OrderedDict
 - minor change in lexical grammar
    allowing identifiers to match reserved words
    _chk_id staticmethod has been added to handle it
    in syntactic grammar
2016-12-03 06:32:11 +01:00
Remita Amine
a94e7f4a0c [aenetworks] extract more formats(closes #11321) 2016-12-01 12:15:35 +01:00
Yen Chi Hsuan
d17bfe4095
[thisoldhouse] Recognize /tv-episode/ URLs and update _TESTS
Closes #11271
2016-12-01 14:56:52 +08:00
mcjevans
655a74585b Fixed test case for richannel.py 2016-11-30 21:08:41 -05:00