13932 Commits

Author SHA1 Message Date
sulyi
4f55fe7da2 [jsinterp] Adding if parser (test needed) 2016-12-11 09:40:43 +01:00
sulyi
86de1e89db [jsinterp] Adding function declaration and fixing block statement parser 2016-12-10 22:57:02 +01:00
sulyi
aa6e7525bd [jsinterp] Fixing Reference repr 2016-12-10 17:31:29 +01:00
sulyi
9b5e55a45a [jsinterp] Mozilla-central test first try 2016-12-10 16:25:51 +01:00
sulyi
f942bb3fa6 [jsinterp] Refactoring getvalue and putvalue
Previously deokenization and value lookup was handled tandem
Moved methods from JSInterpreter into Reference
2016-12-10 14:36:32 +01:00
sulyi
9d1f75667c [jsinterp] Fixing deep copy zip in test_jsinterp_parse 2016-12-10 13:58:26 +01:00
sulyi
200903cee8 [jsinterp] Fixing py3 zip generator issues in parser tests 2016-12-10 11:41:59 +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
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
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
sulyi
7864078bfa [jsinterp] Preliminary fixes after some testing of ast 2016-12-05 11:44:32 +01: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
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
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
Laneone
98b08f94b1 [README.md] Fix typo
Just a minor spelling mistake in the readme
2016-12-01 01:31:21 +07:00
Sergey M․
73ec479c7d
release 2016.12.01 2016.12.01 2016-12-01 00:15:12 +07:00
Sergey M․
f150530f4d
[ChangeLog] Actualize 2016-12-01 00:13:06 +07:00
Sergey M․
4c4765dba2
[soundcloud] Update client id (closes #11327) 2016-11-30 23:17:30 +07:00
Philipp Hagemeister
f882554815 [comedcycentral] Give /shows/.+/full-episodes URLs to the COmedyCentralFullEpisodesIE 2016-11-30 11:52:19 +01:00
sulyi
67d56532e3 [jsinterp] Minor quick fixes
- missing enumerate in op_ids and aop_ids
- order of relation and operator regex in input_element
2016-11-30 08:04:08 +01:00
sulyi
a0fa6bf88e [jsinterp] Parser mock up 2016-11-30 07:49:47 +01:00
sulyi
aa7eb3d6c1 [jsinterp] No OrderedDict 2016-11-30 07:37:47 +01:00
Sergey M․
db75f14d8a
[ruutu] Detect DRM videos 2016-11-30 04:19:38 +07:00