LuanRT
3bdcdf7cf1
chore(docs): add more info about the parser
2022-07-03 04:28:46 -03:00
LuanRT
1d62e469a9
refactor: rewrite Comments Section logic ( #88 )
...
* feat: add core comments section classes
* chore: update type declarations
* chore: fix linter warnings
* style: fix linter
* chore: update tests
* chore(tests): fix typo
* chore(tests): fix typo x2
* fix(tests): `getReplies()` method is only present in `CommentThread` and not `Comment`
* chore(tests): fix comment id path
* chore(tests): remove outdated code
* chore(tests): fix results path
* chore: enforce code style
* chore: update type declarations
* docs: add examples and documentation
* chore(docs): fix paths
* chore(docs): fix more paths
* chore(docs): fix `Comments.js` path
* chore(docs): fix typo
* chore(docs): mention example file
* chore(examples): fix imports
* chore(examples): fix typo
2022-07-02 19:55:33 -03:00
Bob Varioa
0a851bde31
refactor: remove confusing code practices ( #87 )
...
* Prefer `c ? x : y` over `c && x || y`
* Avoid unnecessary asssignment expressions
* Prefer switch statements over object lookup tables
* Add an .editorconfig
* Fix style issues
* Fix mentioned issues
Co-authored-by: bob <bob.varioa@gmail.com >
2022-07-01 19:37:59 -03:00
LuanRT
3e2b932844
style: format code
2022-06-29 20:57:16 -03:00
LuanRT
263b4887c3
feat(livechat): add LiveChatPaidSticker action
2022-06-29 19:44:33 -03:00
LuanRT
4f994c338b
refactor: rewrite Live Chat logic ( #85 )
...
* dev: start LiveChat refactor
* dev: implement simple module system to separate classes
+ add a few Live Chat actions
* dev: add fundamental Live Chat classes
* chore: update type declarations
* feat: finalize Live Chat
Now supporting almost all kinds of messages! Next up: add a ability to send messages.
* chore: update type declarations
* chore: update contributors list
* feat(livechat): add `sendMessage()` method
* chore: remove unneeded files
* style: format code
* chore: remove outdated examples
* chore: update tests
* chore: remove trailing spaces
* chore: remove trailing spaces x2
2022-06-29 16:51:51 -03:00
Daniel Krásný
ef9a22e85a
feat(ytmusic): multiple video authors ( #83 )
...
Parse all `authors` from a music video. For legacy reasons, `author` key is kept returning the first entry. Definitions updated respectively.
2022-06-27 19:15:47 -03:00
Daniel Krásný
8849a01ecf
fix(ytmusic): Multiple authors/artists ( #82 )
...
(legacy parser)
Changed return types of SongResultItem's key artist and VideoResultItem's key author to array of strings instead of string.
2022-06-27 14:15:42 -03:00
LuanRT
a948c2e480
chore: update issue templates
2022-06-25 03:58:35 -03:00
LuanRT
f5c6dbc63e
fix: add PlaylistHeader renderer
...
#81
2022-06-24 04:26:39 -03:00
LuanRT
829181ba6f
chore: remove unneeded code
2022-06-23 15:30:11 -03:00
LuanRT
7ec6d6dd21
feat: add YouTube livechat renderers
...
Next up: refactor old livechat parser
2022-06-23 03:46:53 -03:00
LuanRT
d2b3eead41
fix: ItemSection target_id not being parsed
2022-06-23 03:13:15 -03:00
LuanRT
96857ccadf
feat(ytmusic): expose additional segments in albums
2022-06-23 02:47:03 -03:00
LuanRT
c24e6256c5
chore: fix typo
2022-06-22 19:11:16 -03:00
LuanRT
00c2db791f
style: format & remove unneeded code
2022-06-22 19:05:08 -03:00
LuanRT
20556970a7
feat(ytmusic): add support for stations in search results, #78
2022-06-22 05:46:33 -03:00
Daniel Wykerd
1681a9b84c
feat(player): improved decipher logic ( #79 )
...
* feat(player): improved decipher logic
- Improve the deciphering logic for Signatures and NTokens.
- This makes NToken transforms more than 20x faster
- It also improves caching of the player drastically, by only keeping
the processed responses in binary format. Bringing down the cache
per player from 1.8MB to less than 400 bytes
* fix: linting errors
* fix: tests
* refactor: replace TS enum with ordinary JS objects
2022-06-21 14:29:13 -03:00
LuanRT
bb3f3cc584
fix(ytmusic): check if id is valid before proceeding
2022-06-21 03:59:44 -03:00
LuanRT
86291fe1f9
chore: fix typo
2022-06-21 03:35:49 -03:00
LuanRT
6eef4b746b
fix(ytmusic): parse nav endpoints only if they exist
...
#78
2022-06-21 03:34:56 -03:00
王超毅
4088ef59c6
fix(VideoInfo): Fix the problem that chooseFormat still returns empty even though there are videos to adapt.
...
when the video exists in 2160p and the default format is mp4, the selected format output is empty
2022-06-21 01:17:55 -03:00
LuanRT
36f02cdcdb
chore(ytmusic): use optional chaining on duration text
2022-06-20 18:10:35 -03:00
LuanRT
97d4cc1056
feat(ytmusic): add support for retrieving albums
2022-06-20 16:33:51 -03:00
LuanRT
7fc9b526b0
feat(ytmusic): add support for artists
...
Available through `Innertube#music.getArtist(id: string)`
#78
2022-06-20 06:08:24 -03:00
LuanRT
748e34758f
feat: tidy things up and implement more renderers
...
- Finished Library parser
- Fixed search continuations
- Improved channel parser
- Improved playlist parser
- Added support for posts of type poll
- Improved History parser
- Removed redundant code
2022-06-20 03:02:42 -03:00
LuanRT
9ffaaacb3e
style: format code
2022-06-18 05:22:54 -03:00
LuanRT
4c7a42d8d4
fix: search continuations should return a Search class
...
Why? To keep things consistent.
2022-06-18 05:16:21 -03:00
LuanRT
5af2a9972e
chore: remove unused var
2022-06-17 16:34:05 -03:00
LuanRT
1efbef6f49
chore(ytmusic): simplify home feed
2022-06-17 16:32:13 -03:00
LuanRT
4e1f6af736
chore: update jsdoc comments
2022-06-17 16:19:52 -03:00
LuanRT
98e7afda87
feat: add suppory for YouTube Music's “Explore” tab
2022-06-17 16:17:24 -03:00
LuanRT
58809c2280
chore: remove unused URLs
2022-06-16 20:58:08 -03:00
LuanRT
1484e3c2aa
dev: always use InnerTube prod url
2022-06-16 20:52:00 -03:00
LuanRT
e0546944a8
chore: fix typo
2022-06-16 20:14:31 -03:00
LuanRT
d246008eab
chore: add other InnerTube API urls
2022-06-16 20:10:11 -03:00
LuanRT
455556ba89
feat: add all watch history feed action renderers
2022-06-16 16:09:29 -03:00
LuanRT
eaa16244d2
fix(analytics): rename old Thumbnail module path
2022-06-16 15:26:00 -03:00
LuanRT
919a35d024
feat: wrap Library sections around Proxy trap
2022-06-16 15:06:31 -03:00
LuanRT
d54fc282ad
chore: remove a few deprecated methods
2022-06-16 14:59:58 -03:00
LuanRT
51f7adf397
fix: rename YouTube Music renderers
2022-06-16 14:51:50 -03:00
Daniel Wykerd
60075f8726
fix: chooseFormat filtering improvements
2022-06-16 13:46:43 -03:00
Daniel Wykerd
41aa54b8d9
fix: download to use getBasicInfo
2022-06-16 13:46:43 -03:00
LuanRT
d6bbe8f183
fix(linter): remove unneeded vars and add jsdoc
2022-06-15 23:29:30 -03:00
LuanRT
28d51fcc4f
perf: use getBasicInfo()
2022-06-15 23:29:30 -03:00
LuanRT
e8a81084e6
fix(ytmusic): rename old class types
2022-06-15 23:29:30 -03:00
Daniel Wykerd
4ef546b3f0
fix: emit info Innertube.download
2022-06-15 23:29:30 -03:00
Daniel Wykerd
ec5a2aa7fd
fix: decipher
2022-06-15 23:29:30 -03:00
Daniel Wykerd
2cbb0179ae
fix: Innertube.download
2022-06-15 23:29:30 -03:00
Daniel Wykerd
b594dad510
fix: missing import
2022-06-15 23:29:30 -03:00