LuanRT
3a7e58d2b9
chore(eslint): enforce the use of import type
2023-04-28 22:35:09 -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
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
absidue
bd35faa597
fix(parser): Make Video.is_live work on channel pages ( #368 )
2023-03-22 18:02:21 -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
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
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
Patrick Kan
9cb4530299
feat(parser): add view_playlist to Playlist ( #348 )
2023-03-12 18:10:48 -03:00
Patrick Kan
cb9a0c5410
Add status to SearchFilter and fix endpoint ( #347 )
...
* feat(parser): add `status` to `SearchFilter`
* fix(parser): `SearchFilter` endpoint parsing
2023-03-12 18:07:59 -03:00
Patrick Kan
427db5bbc2
feat(parser): Add play_all_button to Shelf ( #345 )
2023-03-12 18:04:35 -03:00
LuanRT
b2253df802
feat(parser): add ConversationBar node
2023-03-08 18:09:21 -03:00
LuanRT
f3517708ff
fix(MultiMarkersPlayerBar): avoid observing undefined objects
2023-03-08 17:43:20 -03:00
Patrick Kan
0d35fe0ca5
feat(VideoInfo): support get by endpoint + more info ( #342 )
...
* feat(VideoInfo): get by endpoint + more info
* chore: fix param description for `getInfo()`
2023-03-08 16:42:41 -03:00
LuanRT
3e3dc351bb
fix(SharedPost): import Menu node directly (oops)
2023-03-08 11:29:39 -03:00
LuanRT
c76b24b3f4
chore(parser): import YTNodes directly to reduce web bundle size
2023-03-08 07:18:01 -03:00
absidue
574b67a1f7
feat: Add support for descriptive audio tracks ( #338 )
2023-03-08 05:36:01 -03:00
LuanRT
9b2738f128
fix(SegmentedLikeDislikeButton): like/dislike buttons can also be a simple Button
2023-03-07 05:43:32 -03:00
LuanRT
95f1d4077f
fix(YouTube): fix warnings when retrieving members-only content ( #341 )
2023-03-07 05:15:46 -03:00
LuanRT
a511608f18
feat(YouTube/Search): add SearchSubMenu node ( #340 )
2023-03-07 04:17:58 -03:00
Chinmay Kumar
cfc1a183e0
refactor(parser): type YTNodes' data arg as RawNode (wip) ( #339 )
...
* replaced YTNode's data arg as RawNode
* updated documentation
* removed unused import
---- Note that there are still many nodes that need to be updated, hence the WIP status.
2023-03-07 02:02:07 -03:00
Patrick Kan
95033e723e
feat(parser): add banner to PlaylistHeader ( #337 )
2023-03-05 22:44:09 -03:00
Patrick Kan
2cc7b8bcd6
feat(yt): add getGuide() ( #335 )
...
* feat(yt): add `getGuide()`
* chore: lint
* fix(Guide): wrong prop
* fix(Guide): include subscription section
* fix(Guide): wrong import
* feat(Guide): add `page`
2023-03-04 06:23:17 -03:00
Nico K
214aa147ce
feat(VideoInfo): add game_info and category ( #333 )
2023-03-03 03:47:20 -03:00
Daniel Wykerd
ce53ac1843
feat(parser): SharedPost ( #332 )
...
Add support for SharedPost in community tab.
Related to issue #331
2023-03-03 03:41:04 -03:00
ChunkyProgrammer
4c7b8a3403
fix(Channel): getting community continuations ( #329 )
2023-03-01 16:28:26 -03:00
LuanRT
200632f374
fix(parser): export YTNodes individually so they can be used as types
...
Related: #321
2023-02-26 18:56:04 -03:00