Luan
94bc596048
refactor: Migrate to ts-proto ( #752 )
...
* refactor: Add extracted protos
* refactor: Remove old stuff and update affected code
* chore(package): Update `build:proto` script
* chore(ClientInfo): Rename `androidSdkVersion` to `android_sdk_version`
* chore: remove refs to old proto file
* refactor(sabr_request): Rename `Gw` to `media_type`
* chore(sabr_request): Fix typo in field num
* feat(parser): Parse `video_playback_ustreamer_config` and `server_abr_streaming_url`
* refactor: update protos
* chore(package): streamline clean and build scripts
* chore: update package.json
* chore: update npmignore
* chore(protos): Remove unneeded definitions
See https://github.com/LuanRT/googlevideo for video playback proto definitions.
* chore(package): add `rimraf` dependency
2024-09-16 06:54:29 -03:00
absidue
e1e76ee616
feat(parser): Add ShortsLockupView and BadgeView nodes ( #746 )
2024-09-13 00:19:46 -03:00
Dave Nicolson
bf6cc00699
fix(ItemSection): FeedFilterChipBar parse error ( #741 )
2024-09-11 02:28:33 -03:00
absidue
094a96fb5d
fix(parser): The icon_name property does not always exist in ThumbnailBadgeView ( #745 )
2024-09-11 02:26:58 -03:00
github-actions[bot]
4fca6c354e
chore(main): release 10.4.0 ( #721 )
...
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
v10.4.0
2024-08-26 23:41:20 -03:00
Luan
93906e0539
chore(docs): Mention BgUtils for generating PoTokens
...
https://github.com/LuanRT/BgUtils
2024-08-26 23:37:35 -03:00
dependabot[bot]
aaebcca90b
chore(deps-dev): bump vite from 3.2.8 to 3.2.10 in /examples/browser/web ( #739 )
...
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite ) from 3.2.8 to 3.2.10.
- [Release notes](https://github.com/vitejs/vite/releases )
- [Changelog](https://github.com/vitejs/vite/blob/v3.2.10/packages/vite/CHANGELOG.md )
- [Commits](https://github.com/vitejs/vite/commits/v3.2.10/packages/vite )
---
updated-dependencies:
- dependency-name: vite
dependency-type: direct:development
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-26 21:52:34 -03:00
Luan
36121878b1
chore(examples): Fix proxy
2024-08-26 20:32:30 -03:00
Luan
d89909a19a
fix(examples): Use BgUtils to generate pot [skip ci]
...
+ Improve readme.
2024-08-26 18:42:14 -03:00
Luan
367a6f7ec5
chore(package): Revert last commit
...
This reverts commit 05a663710d .
2024-08-23 14:44:00 -03:00
Luan
05a663710d
chore(package): Use prepack instead of prepare
2024-08-23 14:22:54 -03:00
Luan
cc0fc7145a
chore(package): Fix typo in exports
2024-08-23 13:17:50 -03:00
Luan
bdff3eae1c
chore: lint [skip ci]
2024-08-23 02:07:41 -03:00
Luan
5a66d0ba93
chore: clean up some types [skip ci]
2024-08-23 02:04:28 -03:00
Luan
370cb0b29e
chore(eslint): Update ignores
2024-08-23 01:12:17 -03:00
Luan
fcd00b0fb0
fix(FormatOptions): client missing some values
2024-08-23 01:05:37 -03:00
Luan
2dae5634f3
chore(docs): Minor rewording
2024-08-23 00:51:52 -03:00
Luan
2c43a5705f
chore: update tests
2024-08-22 22:40:42 -03:00
Luan
83801ebc37
chore: fix linter config
2024-08-22 22:36:55 -03:00
Luan
c14a687e65
chore: bump eslint to v9
2024-08-22 15:43:59 -03:00
Dave Nicolson
f9ccba4af5
fix(ThumbnailOverlayResumePlayback): Update percent_duration_watched type ( #737 )
2024-08-19 20:18:06 -03:00
absidue
4b60b97132
feat(parser): Add VideoAttributesSectionView node ( #732 )
2024-08-12 14:49:20 -03:00
absidue
7afc3da80e
fix(Session): Fix remote visitor data not gettting used ( #731 )
2024-08-12 00:21:02 -03:00
슈리튬
bb6e647b8c
fix(Session): PoToken not being set correctly ( #729 )
2024-08-11 04:10:23 -03:00
Luan
f1973c11d9
fix(Session): Visitor data not being used properly
2024-08-10 11:12:13 -03:00
Luan
4942992630
refactor: Throw an error if an invalid client is specified
2024-08-08 10:11:38 -03:00
Luan
0e91a08ae2
fix(PlayerEndpoint): Don't set undefined fields
2024-08-08 09:01:14 -03:00
Luan
261f2ac12b
feat(Utils): Add UMP parser
...
Currently not used anywhere in the project, but I figured I'd add it in case anyone wants to make their playback requests look more genuine by using UMP/SABR.
2024-08-08 07:57:14 -03:00
Luan
041aebc358
chore: Rephrase PoToken description
2024-08-08 07:42:20 -03:00
Émilien (perso)
c9f0ddd573
feat(Player): Add support for Proof of Identity tokens ( #708 )
...
* Fix different usages of potoken.
* Fix linting.
* Add mention about invidious youtube-trusted-session-generator.
---------
Co-authored-by: Luan <luan.lrt4@gmail.com >
2024-08-08 07:28:42 -03:00
Luan
25d268beba
chore: update livechat example
2024-08-06 18:48:34 -03:00
absidue
2c0bb237e1
fix(Search): Fix it occasionally returning only a small number of results ( #720 )
2024-08-03 09:40:02 -03:00
github-actions[bot]
4f5635ad07
chore(main): release 10.3.0 ( #704 )
...
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
v10.3.0
2024-08-01 06:21:32 -03:00
Luan
3b3cf1b2aa
refactor(Player): Generate and parse player script's AST ( #713 )
...
Notes:
- The Syntax Tree is generated by Jinter (which is built on top of `Acorn`).
- While doing this may be slightly slower than using a regular exp, it is much more reliable (plus we already cache the player functions anyway).
2024-08-01 06:09:27 -03:00
Dave Nicolson
d85fbc56cf
feat(PlaylistManager): Add ability to remove videos by set ID ( #715 )
2024-08-01 06:07:47 -03:00
Luan
e55d4af100
chore: lint
2024-08-01 06:03:51 -03:00
Armel Chesnais
04369be620
fix(Player): Address changes introduced by player id 20dfca59 ( #712 )
...
Fixes the nSig extract for YT player id `20dfca59 `
Handles:
String.prototype.split.call(a,("",""))
and
Array.prototype.join.call(b,
("",""))};
Note the newline
Co-authored-by: Luan <luan.lrt4@gmail.com >
2024-07-31 06:38:32 -03:00
Luan
a89a5ac2dd
refactor(Player.ts): Handle nsig failure gracefully
...
Preping for future changes.
2024-07-31 06:18:18 -03:00
Luan
5529a6aca0
chore(Player): Don't throw an error if nsig extraction fails
...
This is called when an InnerTube instance is created, so throwing here breaks the entire library.
2024-07-30 19:05:29 -03:00
Luan
94a6765c97
chore: update tests
2024-07-30 18:50:03 -03:00
Luan
9b9fb82131
refactor: Clean up & fix old code
...
Other changes:
- Renamed "getShortsWatchItem" to "getShortsVideoInfo".
- Fixed `ShortFormVideoInfo`. This never worked for me ever since it was introduced. Turned out it was just implemented incorrectly.
- Moved `basic_info` extraction to `MediaInfo`. Less of a pain to maintain as we only have to modify one file.
- Removed unneeded tsdoc comments.
- Fixed `Innertube#getStreamingData()`. Now it actually returns a deciphered format.
- Simplified some types.
2024-07-30 18:49:24 -03:00
absidue
3153375bca
fix(HTTPClient): Adjust more context fields for the iOS client ( #705 )
2024-07-26 11:15:12 -03:00
Dave Nicolson
a9bf225a62
feat(parser): Add EomSettingsDisclaimer node ( #703 )
2024-07-25 22:12:57 -03:00
github-actions[bot]
1e29019a07
chore(main): release 10.2.0 ( #688 )
...
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
v10.2.0
2024-07-25 10:52:50 -03:00
Luan
6765f4e0d7
fix(Player): Bump cache version ( #702 )
...
We should always do this after updating the sig/nsig code, it's so that the old cache gets ignored : ).
2024-07-25 10:48:24 -03:00
absidue
3048f70f60
fix(Player): Fix extracting the n-token decipher algorithm again ( #701 )
2024-07-25 10:07:00 -03:00
Brahim Hadriche
090539b28f
feat(parser): add classdata to unhandled parse errors ( #691 )
2024-07-24 15:55:20 -03:00
Brahim Hadriche
6d0bc89be1
fix(parser): ignore MiniGameCardView node ( #692 )
2024-07-24 15:54:37 -03:00
GurumNyang
a5f62093a1
feature(proto): Add comment_id to commentSectionParams ( #693 )
2024-07-24 15:54:14 -03:00
absidue
a352ddeb9d
feat(Format): Add is_secondary for detecting secondary audio tracks ( #697 )
2024-07-24 15:53:27 -03:00