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
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
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
LuanRT
f933cb45bc
feat(VideoSecondaryInfo): add support for attributed descriptions ( #325 )
2023-02-26 16:47:47 -03:00
absidue
a0e6cef00f
fix(PlayerMicroformat): Make the embed field optional ( #320 )
2023-02-25 12:11:03 -03:00
absidue
a0bfe16427
feat: Add upcoming and live info to playlist videos ( #317 )
2023-02-20 18:25:53 -03:00
LuanRT
251ed74bba
chore(ChannelAgeGate): fix node type
...
channelAgeGate ---> ChannelAgeGate
2023-02-16 07:15:52 -03:00
LuanRT
1cdf701c84
feat(parser): add ChannelAgeGate node
2023-02-16 07:07:34 -03:00
LuanRT
bf12740333
feat: add support for hashtag feeds ( #312 )
...
* feat: add hashtag params proto
* feat: add support for hashtags
* chore: add test
* docs: update API ref
* fix(tests): remove unneeded `#` from param
* fix: do not throw when missing the header
2023-02-16 06:46:20 -03:00
ChunkyProgrammer
e37cf62732
fix: assign MetadataBadge's label ( #311 )
2023-02-13 03:15:06 -03:00
LuanRT
eb72c2f6ef
refactor(parser): improve typings and do some refactoring ( #305 )
...
* dev: add response types
* dev: refactor `Parser#parseResponse()`
* dev: update YouTube parsers
* dev: update YouTube Music classes
* dev: update YouTube Kids classes
* dev: update core classes
* dev(Parser): fix some inconsistencies
* chore: update docs
* chore: update docs x2
* fix: export response types
* chore(docs): update parser example
2023-02-12 07:04:17 -03:00
Daniel Wykerd
2ccbe2ce62
refactor!: cleanup platform support ( #306 )
...
* refactor!: cleanup platform support
* chore: lint
* fix: web platform
* feat: provide UniversalCache
Provide UniversalCache as a wrapper around Platform.shim.Cache.
* fix: invalid import
* refactor: remove isolated-vm support
* fix: type info
* refactor: cleanup exports
* fix: mark jintr as external dependency
In the bundled CJS node build, mark jintr as external.
* chore: add additional exports
web exports provide a way to select web implementation manually without
relying on the bundler to select it correctly from the "exports" field
web points to src/platform/web.js
web.bundle points to bundle/browser.js
web.bundle.browser points to bundle/browser.min.js
agnostic exports provide users of the library to provide their own
platform implementation without first importing the default one.
agnostic points to src/platform/lib.ts
* fix: toDash on web
* revert: eval is synchronous
* fix: use serializeDOM in FormatUtils
* ci: automate releases with `release-please`
* chore: clean up workflow files
* ci: fix NPM publish action
---------
Co-authored-by: LuanRT <luan.lrt4@gmail.com >
2023-02-12 04:21:44 -03:00
absidue
d612590530
fix(TopicChannelDetails): avatar and subtitle parsing ( #302 )
2023-02-01 17:17:31 -03:00
Daniel Wykerd
e82e23dfbb
feat(parser): Text#toHTML ( #300 )
...
Added support to render Text nodes as HTML for use in web applications.
2023-02-01 16:27:59 -03:00
absidue
f62c66db39
fix(ChannelAboutFullMetadata): fix error when there are no primary links ( #299 )
2023-01-29 21:28:19 -03:00
ChunkyProgrammer
de61782f1a
feat: add parser support for MultiImage community posts ( #298 )
2023-01-29 14:39:46 -03:00
LuanRT
2ea3602b61
Merge branch 'main' of https://github.com/LuanRT/YouTube.js
2023-01-29 01:55:17 -03:00
LuanRT
b7df3d6df4
refactor: clean up backstage post nodes
2023-01-29 01:54:24 -03:00
ChunkyProgrammer
2acb7da019
feat: parse isLive in CompactVideo ( #294 )
...
* Feat: parse isLive in CompactVideo
* Use 3 equal signs
Co-authored-by: absidue <48293849+absidue@users.noreply.github.com >
* use parse array for badges
add is_premiere, is_new, is_fundraiser
---------
Co-authored-by: absidue <48293849+absidue@users.noreply.github.com >
2023-01-27 14:44:32 -03:00
LuanRT
0b991800a5
feat: extract channel error alert
2023-01-27 07:15:17 -03:00
LuanRT
50ef71284d
feat(Channel): add support for sorting the playlist tab ( #295 )
2023-01-27 06:37:35 -03:00
LuanRT
d6c5a9b971
feat: improve support for dubbed content ( #293 )
...
* feat(Format): add `language`, `is_dubbed` and `is_original`
* feat: add a format filtering option to the DASH function
> And a simple language option to VideoInfo's download method.
* chore: update docs
* feat: improve audio track info parsing
* feat(Format): parse `audioTrack` prop
2023-01-27 00:42:20 -03:00
LuanRT
0fc29f0bbf
feat(ytkids): add getChannel() ( #292 )
2023-01-23 05:38:53 -03:00