Commit Graph

32 Commits (c168d8791d0974a8a8fcb3b4a4bc2d830df51622)

Author SHA1 Message Date
pukkandan 42f2d40b47
Update to ytdl-commit-07af47
[YouTube] Improve fix for ae8ba2c
07af47960f
pukkandan ad54c9130e
[cleanup] Misc
Closes , Closes , Closes , Closes , Closes 
Authored by: mikf, freezboltz, pukkandan
bashonly b4a252fba8
[jsinterp] Fix division ()
* Fixes nsig decryption for Youtube JS player `8c7583ff`

Authored by: bashonly
pukkandan 7aeda6cc9e
[jsinterp] Do not compile regex
pukkandan 4823ec9f46
Update to ytdl-commit-d1c6c5
[YouTube] [core] Improve platform debug log, based on yt-dlp
d1c6c5c4d6

Except:
    * 6ed34338285f722d0da312ce0af3a15a077a3e2a [jsinterp] Add short-cut evaluation for common expression
        * There was no performance improvement when tested with https://github.com/ytdl-org/youtube-dl/issues/30641
    * e8de54bce50f6f77a4d7e8e80675f7003d5bf630 [core] Handle `/../` sequences in HTTP URLs
        * We plan to implement this differently
pukkandan 6f2287cb18
[cleanup] Misc
Closes , closes 
pukkandan 1d7656184c
[jsinterp] Handle `NaN` in bitwise operators
Closes 
pukkandan 7cf51f2191
[jsinterp] Handle negative numbers better
Closes 
pukkandan 8b008d6254
[jsinterp] Support `if` statements
Closes 
pukkandan 0468a3b325
[jsinterp] Improve separating regex
Fixes https://github.com/yt-dlp/yt-dlp/issues/4635#issuecomment-1273974909
pukkandan d2c8aadf79
[cleanup] Misc
Closes , Closes , Closes 
Authored by: pukkandan, MrRawes, DavidH-2022
pukkandan 1ac7f46184
Update to ytdl-commit-ed5c44e7
[compat] Replace deficient ChainMap class in Py3.3 and earlier
ed5c44e7b7
pukkandan 05deb747bb
[jsinterp] Fix escape in regex
Elyse f26af78a8a
[jsinterp] Add `charcodeAt` and bitwise overflow ()
Authored by: elyse0
pukkandan d81ba7d491
[jsinterp, extractor/youtube] Minor fixes
pukkandan be13a6e525
[jsinterp] Bring on-par with youtube-dl
Code from: https://github.com/ytdl-org/youtube-dl/pull/31175, https://github.com/ytdl-org/youtube-dl/pull/31182

Authored by pukkandan, dirkf
pukkandan 6d3e7424bf
[jsinterp] Fix for youtube player c81bbb4a
pukkandan 49b4ceaedf
[jsinterp] Bring or-par with youtube-dl
Partially cherry-picked from: d231b56717

Authored by pukkandan, dirkf
pukkandan 8f53dc44a0
[jsinterp] Handle new youtube signature functions
Closes 
pukkandan 54007a45f1
[cleanup] Consistent style for file heads
pukkandan f82711587c
[cleanup] Sort imports
Using https://github.com/PyCQA/isort

    isort -m VERTICAL_HANGING_INDENT --py 36 -l 80 --rr -n --tc .
pukkandan 86e5f3ed2e
[cleanup] Upgrade syntax
Using https://github.com/asottile/pyupgrade

1. `__future__` imports and `coding: utf-8` were removed
2. Files were rewritten with `pyupgrade --py36-plus --keep-percent-format`
3. f-strings were cherry-picked from `pyupgrade --py36-plus`

Extractors are left untouched (except removing header) to avoid unnecessary merge conflicts
pukkandan a1fc7ca074
[jsinterp] Handle default in switch better
pukkandan 404f611f1c
[youtube] Fix throttling by decrypting n-sig ()
felix cc52de4356
[cleanup] Point all shebang to `python3` ()
Authored by: fstirlitz
Pccode66 7a5c1cfe93
Completely change project name to yt-dlp ()
* All modules and binary names are changed
* All documentation references changed
* yt-dlp no longer loads youtube-dlc config files
* All URLs changed to point to organization account

Co-authored-by: Pccode66
Co-authored-by: pukkandan
Unknown cefecac12c [skip travis] renaming
to avoid using same folder when using pip install for example
Yen Chi Hsuan 582be35847
Update coding style after pycodestyle 2.1.0
In pycodestyle 2.1.0, E305 was introduced, which requires two blank
lines after top level declarations, too.

See https://github.com/PyCQA/pycodestyle/issues/400

See also ; thanks @stepshal for first mentioning this issue and
initial patches
Kacper Michajłow 189935f159 [jsinterp] Fix function calls without arguments.
Yen Chi Hsuan ff29bf81f8 [jsinterp] Support alternative function definition form
Philipp Hagemeister 3eff81fbf7 [jsinterp] Disable comment support
We need a proper lexer to be able to understand YouTube's code, which contains /* inside of strings.
For now it's sufficient to just disable comment support altogether.

Fixes , fixes , fixes , fixes , fixes .
Closes .
Philipp Hagemeister 9e3f19919a [jsinterp] Beef up and add tests
In preparation for , extend jsinterp by a lot. (We may even have to/want to write a proper interpreter with actual parsing)