13921 Commits

Author SHA1 Message Date
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
Sergey M․
8b0d3ee64e
[liveleak] Simplify and PEP 8 2016-11-29 23:42:19 +07:00
Varun
3779d524df [liveleak] Add support for youtube embeds 2016-11-29 23:37:30 +07:00
Mark Lee
6303fc8204 [spike] Fix full episodes extraction 2016-11-29 23:06:01 +07:00
Philipp Hagemeister
cc61fc3934 [comedycentral] Add new extractor for full-episodes
CC seems to have added yet another indirection for full episodes - the mgid is now only in a linked feed.
This may be a little brittle, but it's better than failing outright.
Plus, the current The Daily Show episode now works :)
2016-11-29 10:12:18 +01:00
Sergey M․
c2530d3319
[teamfourstar] Simplify _VALID_URL and relax regexes 2016-11-28 23:22:29 +07:00
felix
8953319916 [screenwavemedia] Remove extractor
Rewrite TeamFourStar and Normalboots extractors in terms of JWPlatform
2016-11-28 23:17:56 +07:00
sulyi
9bd5dee5ce [jsinterp] Value parsing 2016-11-28 13:14:37 +01:00
sulyi
b089388f26 [jsinterp] Lexer overhaul 2016-11-28 06:53:28 +01:00
Yen Chi Hsuan
51b1378eed
Ignore and clean .swf files
Some videos on NicoNico are swf
2016-11-27 22:01:07 +08:00
Sergey M․
2b380fc299
release 2016.11.27 2016.11.27 2016-11-27 20:05:32 +07:00
Sergey M․
294d4926d7
[ChangeLog] Actualize 2016-11-27 20:04:03 +07:00