absidue
66b026bf49
fix(Utils): Circular dependency introduced in 38a83c3c2a ( #400 )
2023-05-10 15:32:00 -03:00
absidue
38a83c3c2a
fix(Utils): Use instanceof in deepCompare instead of the constructor name ( #398 )
2023-05-06 15:47:51 -03:00
absidue
b1f19f16ac
refactor(constants): Use namespace import internally ( #396 )
2023-05-06 15:46:20 -03:00
LuanRT
d4adb9eb6b
chore(PlayerEndpoint.ts): add back attestationRequest field
...
This was accidentally removed in a recent PR. It tells InnerTube to omit the botguard program data.
2023-05-03 19:31:59 -03:00
LuanRT
3b0498b68b
fix(Video): typo causing node parsing to fail
2023-05-02 03:21:02 -03:00
absidue
7c0abfccd7
fix(VideoInfo): Use microformat view_count when videoDetails view_count is NaN ( #393 )
2023-04-30 17:21:57 -03:00
LuanRT
4f7ec07c3f
fix(web): slow downloads due to visitor data ( #391 )
...
* fix(web): slow downloads due to visitor data
It seems that YouTube will throttle clients if a shared visitor id is used.
* dev: include `params` for `/player` reqs
2023-04-30 00:50:08 -03:00
LuanRT
dd21f8c75a
feat(NavigationEndpoint): parse content prop
...
This usually has dialog nodes.
2023-04-29 01:54:34 -03:00
LuanRT
3a7e58d2b9
chore(eslint): enforce the use of import type
2023-04-28 22:35:09 -03:00
LuanRT
75ea09dde8
fix(android): workaround streaming URLs returning 403 ( #390 )
2023-04-28 22:02:45 -03:00
LuanRT
95e0294eab
refactor!: overhaul core classes and remove redundant code ( #388 )
...
* feat(Player.ts): append `cver` to deciphered URLs
* refactor(Actions.ts): remove redundant `getVideoInfo` function
This is leftover code from previous versions. It had many problems and it is no longer required.
* fix(Kids.ts): remove unneeded `await` keywords
* dev: add more endpoints
* chore: update deps
* refactor: separate endpoints into files
* dev: improve types
* dev: add more endpoints
* refactor: put clients in a separate directory inside `core`
* chore: lint
* refactor: move mixins and managers to separate folders
* chore: fix tests
* dev: add `CreateVideoEndpoint`
* chore: clean up
* chore: lint
* chore: add some comments
* chore: remove unnecessary test
* dev: add `playlist/CreateEndpoint`
* dev: add `playlist/DeleteEndpoint`
* dev: add `browse/EditPlaylistEndpoint`
* fix(parser): add a few checks to avoid parsing errors
2023-04-28 19:01:04 -03:00
LuanRT
257bd475a0
refactor: clean up parser and tests ( #387 )
...
* tests: improve coverage
* refactor: clean up nodes
* chore: lint
* feat(parser): ignore `BrandVideoShelf`
Seems to be used for ads.
* feat(parser): ignore `BrandVideoSingleton` too
2023-04-23 06:37:33 -03:00
LuanRT
05de3ec97a
feat(GridVideo): add upcoming, upcoming_text, is_reminder_set and buttons
...
Closes : #380
2023-04-13 07:50:18 -03:00
LuanRT
a0566969ba
feat(ToggleMenuServiceItem): parse default nav endpoint
2023-04-13 06:10:17 -03:00
LuanRT
a9cad49333
feat(ytmusic): add taste builder nodes ( #383 )
...
Adds MusicTastebuilderShelf and MusicTastebuilderShelfThumbnail. These usually appear on new accounts.
2023-04-13 05:37:49 -03:00
LuanRT
096bf362c9
feat(MusicResponsiveListItem): make flex/fixed cols public ( #382 )
...
Plus refactor a few things.
2023-04-13 05:35:46 -03:00
LuanRT
ec9c0979f5
refactor: fix inconsistencies in the guide nodes ( #379 )
2023-04-11 05:52:47 -03:00
LuanRT
ce9d9c56b4
feat(parser): ignore PrimetimePromo node
...
This node is used to display advertisements.
2023-04-09 02:51:29 -03:00
LuanRT
3b6ccfa3d8
chore: fix cjs build
2023-04-09 02:18:53 -03:00
LuanRT
3c94c9da4b
deps: bump Jinter to v1.0.0
2023-04-08 23:53:59 -03:00
absidue
c9135e66d3
feat(PlaylistVideo): Extract video_info and accessibility_label texts ( #376 )
2023-04-07 20:43:20 -03:00
LuanRT
be71d7c937
chore: fix some inconsistencies
2023-03-28 21:22:12 -03:00
LuanRT
470d8d9406
fix(PlayerCaptionsTracklist): parse props only if they exist in the node
...
Fixes #372
2023-03-28 20:50:50 -03:00
absidue
2c5907f80f
fix(Search): Return search results even if there are ads ( #373 )
2023-03-27 15:00:57 -03:00
LuanRT
13ebf0a039
feat(Session): allow setting a custom visitor data token ( #371 )
...
* feat(Session): allow setting a custom visitor data token
* docs: update init options
* chore: lint
2023-03-24 01:30:24 -03:00
Araxeus
cb8fafe94b
fix(http): android tv http client missing clientName ( #370 )
2023-03-22 19:45:37 -03:00
absidue
bd35faa597
fix(parser): Make Video.is_live work on channel pages ( #368 )
2023-03-22 18:02:21 -03:00
absidue
a8b507ee65
fix(toDash): Generate unique Representation ids ( #366 )
2023-03-22 17:48:09 -03:00
Araxeus
e7eacd9742
fix(node) Electron apps crashing ( #367 )
...
Inside a `app.asar` file, the package.json might get trimmed and the `bugs_url` might be missing
`repo_url` conditional check was added for good measure
* fix(node) resolve `bugs_url` from repo_url
2023-03-22 17:13:40 -03:00
absidue
1c72a41675
fix(Utils): Properly parse timestamps with thousands separators ( #363 )
2023-03-22 03:48:01 -03:00
LuanRT
62a68b207c
chore(docs): fix typo
2023-03-17 18:19:10 -03:00
LuanRT
1d9587e8c1
feat(ShowingResultsFor): parse all props
2023-03-17 07:27:00 -03:00
LuanRT
955c8010a6
chore: lint
2023-03-16 04:53:48 -03:00
LuanRT
b2269deb79
chore: add Button type
...
Oops :D
2023-03-16 04:52:07 -03:00
LuanRT
573c8643aa
fix(Channel): type mismatch in subscribe_button prop
...
The `subscribe_button` property can also be of type `Button`.
2023-03-16 04:48:59 -03:00
LuanRT
9d912e5938
refactor: use getters instead of props in the Innertube class
2023-03-15 20:34:58 -03:00
LuanRT
7ca0607004
refactor(ytmusic): rename SearchFilters interface to MusicSearchFilters
...
This allows us to expose the types from the InnerTube class as there is another interface there named `SearchFilters`
2023-03-15 19:24:17 -03:00
Daniel Wykerd
b13bf6e992
refactor(Parser)!: general refactoring of parsers ( #344 )
...
* refactor: move common info into MediaInfo
* refactor: better inference on Memo
* refactor: improved typesafety in parser methods
* refactor: remove PlaylistAuthor in favor of Author
* refactor: cleanup live chat parsers
- Replace non standard author type with Author class
- Remove redundant code
* fix: new errors due to changes
* fix: pass actions to FormatUtils#toDash
* refactor!: merge NavigatableText and Text into single class
2023-03-15 18:25:12 -03:00
LuanRT
3d3436472f
refactor(parser): fix many minor inconsistencies
2023-03-15 06:43:04 -03:00
LuanRT
8ef4b42d44
feat(parser): add GridShow and ShowCustomThumbnail
...
Closes #459
2023-03-15 05:15:16 -03:00
LuanRT
b71f03caf2
chore(docs): oops, fix a typo
2023-03-15 04:15:35 -03:00
LuanRT
dae7d6e40c
chore: update parser docs to reflect latest changes
2023-03-15 04:12:21 -03:00
Daniel Wykerd
2cee59024c
feat(Parser): just-in-time YTNode generation ( #310 )
...
* refactor: merge NavigatableText into Text
* fix(Text): data might not be object
* refactor: remove GetParserByName from map
* feat(Parser): just-in-time YTNode generation
* refactor: cleanup YTNodeGenerator
* fix: YTNode map imports
* feat(YTNodeGenerator): primative types
Add support for inferring primatives types
* fix(YTNodeGenerator): NavigationEndpoint detection
* fix(YTNodeGenerator): fix generated typescript
Correct types and linting for generated typescript class
* chore: update parsers after merge
* feat: add support for object type inference
* fix: object type def
* docs: basic YTNodeGenerator explanation
* docs: tsdoc for YTNodeGenerator
* docs: update parser updating guide
* fix: apply suggested changes
* docs: accessing generated nodes
2023-03-15 03:39:36 -03:00
absidue
ffd7d79308
refactor(shim): Move node CustomEvent polyfill to Platform.shim ( #357 )
2023-03-15 00:49:33 -03:00
LuanRT
9b005d62d6
feat(parser): add MusicCardShelf ( #358 )
2023-03-14 20:16:31 -03:00
Patrick Kan
a8e7e644ec
feat(parser): add GridMix ( #356 )
2023-03-14 06:19:22 -03:00
LuanRT
ad1d3dbf91
chore(docs): overhaul parser documentation
...
[skip ci]
2023-03-14 05:57:37 -03:00
LuanRT
4784dfa563
feat(parser): add InfoPanelContent and InfoPanelContainer nodes
...
These are usually used to add more context to videos that discuss misinformation.
Fixes : #326
2023-03-13 01:04:03 -03:00
absidue
3e4d41bf06
feat!: Add support for OTF format streams ( #351 )
2023-03-12 23:48:58 -03:00
Patrick Kan
9f1c31d7a0
feat(yt): add support for movie items and trailers ( #349 )
2023-03-12 18:15:21 -03:00