Commit Graph

61 Commits (5a63454b3637b3603434026cddfeac509218b90e)

Author SHA1 Message Date
pukkandan cd810afe2a
[extractor/youtube] Improve nsig function name extraction
pukkandan ad54c9130e
[cleanup] Misc
Closes , Closes , Closes , Closes , Closes 
Authored by: mikf, freezboltz, pukkandan
pukkandan 01aba2519a
[jsinterp] Fix global object extraction
Closes 
bashonly b4a252fba8
[jsinterp] Fix division ()
* Fixes nsig decryption for Youtube JS player `8c7583ff`

Authored by: bashonly
pukkandan 1d7656184c
[jsinterp] Handle `NaN` in bitwise operators
Closes 
pukkandan 7cf51f2191
[jsinterp] Handle negative numbers better
Closes 
pukkandan 9acf1ee25f
[jsinterp] Handle `Date` at epoch 0
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 1a7c9fad9f
[jsinterp] Workaround operator associativity issue
https://github.com/yt-dlp/yt-dlp/issues/4635#issuecomment-1235384480
pukkandan 05deb747bb
[jsinterp] Fix escape in regex
pukkandan c4b2df872d
[jsinterp] Fix `_separate`
Ref: https://github.com/yt-dlp/yt-dlp/issues/4635#issuecomment-1231126941
pukkandan 164b03c486
[jsinterp] Fix bug in operator precedence
Fixes https://github.com/yt-dlp/yt-dlp/issues/4635#issuecomment-1226659543
pukkandan 90a1df305b
[test] Fix test_youtube_signature
pukkandan f6ca640b12
[jsinterp] Fix for youtube player 1f7d5369
Closes  again
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 14f25df2b6
[compat] Remove deprecated functions from core code
pukkandan 54007a45f1
[cleanup] Consistent style for file heads
pukkandan 19a0394044
[cleanup] Misc cleanup and refactor ()
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 f9934b9614
[cleanup] Mark some compat variables for removal ()
Authored by fstirlitz, pukkandan
MinePlayersPE c571b3a6ab
[youtube] Fix n-sig extraction for phone player JS ()
Authored by: MinePlayersPE
pukkandan d5a398988b
Update to ytdl-commit-78ce962
[youtube] Support channel search
78ce962f4f
pukkandan 48416bc4a8
[youtube] Fix n-sig for player e06dea74
pukkandan b69fd25c25
[cleanup] Misc cleanup
Closes     
pukkandan 57dbe8077f
[jsinterp] Fix splice to handle float
Needed for new youtube js player f1ca6900
Closes 
pukkandan 9222c38182
[cleanup] Minor cleanup
Closes , Closes 
pukkandan a1fc7ca074
[jsinterp] Handle default in switch better
pukkandan 404f611f1c
[youtube] Fix throttling by decrypting n-sig ()
pukkandan 060ac76257
[test] Use `pytest` instead of `nosetests` ()
`nosetests` is no longer being maintained : https://github.com/nose-devs/nose/issues/1099
and will stop working in py 3.10 as can be seen in 
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
pukkandan cc2db87805 Update to ytdl-2021.02.10
Except: [archiveorg] Fix and improve extraction (5fc53690cbe6abb11941a3f4846b566a7472753e)
pukkandan 545cc85d11 [youtube] Update to ytdl-2021.02.04.1
Unknown cefecac12c [skip travis] renaming
to avoid using same folder when using pip install for example
Sergey M․ e40c758c2a
[youtube] Improve player id extraction and add tests
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
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 6a78740211 [test/test_youtube_signature] Use fake YDL
Michael Käufl 498942f187 [test_youtube_signature] Fix import
Broken in commit 8c25f81bee
Philipp Hagemeister 6be451f422 [youtube] Remove swf signature test cases
These files are now 0 Bytes
Philipp Hagemeister 4bc7009e8a [jsinterp] Add new testcase
Philipp Hagemeister 42f4dcfe41 [test_youtube_signatures] Modernize
Jaime Marquínez Ferrándiz ebe832dc37 [jsinterp] 'reverse' modifies the array in place (fixes )
Philipp Hagemeister 9f43890bcd [jsinterp] Allow digits in function names
Philipp Hagemeister b6ea11b967 [youtube] Add swf signature test case ()
Philipp Hagemeister 7fd48d0413 [youtube] Correct signature testcase