SAROND
9b30a9e5f6
hotfix: correct traversal paths and improve test assertions
...
Fixed incorrect object traversal paths in `YTMusic.getHome` method to properly navigate through nested JSON. Enhanced `getHome.spec.ts` by adding a check for non-empty array of `HomePageContent` and logging the length of the retrieved contents.
2024-01-16 17:26:53 +04:00
zS1L3NT Mac
f1eaeb7143
🔖 5.2.0
2024-01-16 09:34:37 +08:00
Zechariah
86eda39ff4
🔀 Merge pull request #26 from SAROND-DEV/feat/get-dinamic-content
...
feat: Implement HomePageContent Retrieval and Parsing in YTMusic ✨
2024-01-16 09:32:47 +08:00
SAROND
f9664fe267
feat(YTMusic): implement continuous pagination in getHome method
...
This commit introduces the ability to fetch and parse additional pages of content in the `getHome` method of the `YTMusic` class by utilizing a continuation token. The previous implementation only fetched the initial page of content. Now, after parsing the initial page, the method checks for a continuation token and continues to fetch and parse subsequent pages until no continuation token is found, allowing for complete retrieval of home page content.
Additionally, there has been a minor change in the `SongParser.parseSearchResult` method where the logic to identify the title and artist from search results has been simplified due to the impossibility of distinguishing them with the current data structure. The new approach uses fixed positions in the columns array to assign title and artist.
2024-01-16 04:05:42 +04:00
SAROND
b428f87321
patch: add comments
2024-01-15 19:53:02 +04:00
SAROND
6ed8230448
feat(YTMusic): implement HomePageContent retrieval and parsing
...
Added functionality to retrieve and parse the home page content in YTMusic class. The `getHome` method fetches home page data and uses the new `Parser.parseMixedContent` method to parse the content into `HomePageContent` type. Also, updated AlbumParser to handle potential null values more gracefully and added PlaylistWatch type parsing.
- Added `FE_MUSIC_HOME` constant for home page ID.
- Implemented `getHome` method in `YTMusic` class.
- Created `parseMixedContent` in `Parser` class.
- Updated `AlbumParser` and `SongParser` to handle nullable fields.
- Added `PlaylistWatch` type and parsing in `PlaylistParser`.
- Added tests for the new home page content feature.
2024-01-15 19:34:51 +04:00
zS1L3NT Mac
f59cfc7f29
✨ add ability to change locale
2024-01-13 12:18:09 +08:00
zS1L3NT Mac
0c9137a5af
⬆️ upgrade arktype to v1.0.29-alpha
2024-01-13 12:01:43 +08:00
zS1L3NT Mac
320cecf949
🐛 fix cjs support gone issue
2024-01-13 00:08:32 +08:00
zS1L3NT Mac
ff4480fc38
🔖 5.0.1
2023-12-28 04:42:10 +08:00
zS1L3NT Mac
eea7becbe8
📝 simplify documentation
2023-12-28 04:35:45 +08:00
zS1L3NT Mac
7cb39bca6a
♻️ refactor traverse utilities functions
2023-12-28 02:31:09 +08:00
zS1L3NT Mac
6be353b46f
🐛 fix null artists bugs
2023-12-28 02:31:09 +08:00
zS1L3NT Mac
aca523a303
✨ make artists singular and delete descriptions
2023-12-28 01:16:20 +08:00
zS1L3NT Mac
dd06c5ac65
✨ mostly complete testing, preparing for data type change
2023-12-27 23:25:22 +08:00
zS1L3NT Mac
2178137c29
✨ add lyrics fetching
2023-12-27 14:54:25 +08:00
zS1L3NT Mac
bfdceea12d
✨ use arktype instead of zod
2023-12-22 03:25:11 +08:00
zS1L3NT Mac
d4d6fa1662
✨ timely update
...
use bunjs instead of pnpm
remove mocha and use bun test
import my latest eslint config
2023-12-22 03:25:11 +08:00
Zechariah
1053ccc036
🔀 Merge pull request #18 from zS1L3NT/dependabot/npm_and_yarn/postcss-8.4.31
...
Bump postcss from 8.4.14 to 8.4.31
2023-10-04 10:29:05 +08:00
Zechariah
9de541fbcf
🔀 Merge pull request #17 from zS1L3NT/dependabot/npm_and_yarn/zod-3.22.3
...
Bump zod from 3.20.2 to 3.22.3
2023-10-04 10:28:43 +08:00
dependabot[bot]
69b988727c
Bump postcss from 8.4.14 to 8.4.31
...
Bumps [postcss](https://github.com/postcss/postcss ) from 8.4.14 to 8.4.31.
- [Release notes](https://github.com/postcss/postcss/releases )
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md )
- [Commits](https://github.com/postcss/postcss/compare/8.4.14...8.4.31 )
---
updated-dependencies:
- dependency-name: postcss
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-10-04 02:24:11 +00:00
dependabot[bot]
6e83b6fd07
Bump zod from 3.20.2 to 3.22.3
...
Bumps [zod](https://github.com/colinhacks/zod ) from 3.20.2 to 3.22.3.
- [Release notes](https://github.com/colinhacks/zod/releases )
- [Changelog](https://github.com/colinhacks/zod/blob/master/CHANGELOG.md )
- [Commits](https://github.com/colinhacks/zod/compare/v3.20.2...v3.22.3 )
---
updated-dependencies:
- dependency-name: zod
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-10-04 02:24:03 +00:00
Zechariah
a17cd2b66a
🔖 4.4.0
2023-10-04 10:23:14 +08:00
Zechariah
e765141d60
🔀 Merge pull request #16 from sunwize/feat/artist@featureOn-similarArtists
...
Feature: Add featured on playlists and similar artists parsers
2023-10-04 10:21:24 +08:00
Colin
2dcd98409e
fix: indent
2023-10-03 20:02:21 -04:00
Clisson
0331126508
feat: add featured on and similar artists parsers
2023-10-03 19:46:41 -04:00
zS1L3NT Windows
efb17791e6
🔖 4.3.0
...
add back video count only to PlaylistFull
2023-08-08 05:19:05 +08:00
Zechariah
57c1c37dcd
Merge pull request #15 from zS1L3NT/dependabot/npm_and_yarn/json5-1.0.2
...
Bump json5 from 1.0.1 to 1.0.2
2023-08-03 17:35:30 +08:00
Zechariah
00d445d3ac
Merge pull request #14 from zS1L3NT/dependabot/npm_and_yarn/vite-2.9.16
...
Bump vite from 2.9.9 to 2.9.16
2023-08-03 17:35:22 +08:00
Zechariah
56727908f3
Merge pull request #13 from zS1L3NT/dependabot/npm_and_yarn/tough-cookie-4.1.3
...
Bump tough-cookie from 4.1.2 to 4.1.3
2023-08-03 17:35:12 +08:00
dependabot[bot]
29eb0a0892
Bump json5 from 1.0.1 to 1.0.2
...
Bumps [json5](https://github.com/json5/json5 ) from 1.0.1 to 1.0.2.
- [Release notes](https://github.com/json5/json5/releases )
- [Changelog](https://github.com/json5/json5/blob/main/CHANGELOG.md )
- [Commits](https://github.com/json5/json5/compare/v1.0.1...v1.0.2 )
---
updated-dependencies:
- dependency-name: json5
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-08-03 05:33:59 +00:00
dependabot[bot]
635ff10c93
Bump vite from 2.9.9 to 2.9.16
...
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite ) from 2.9.9 to 2.9.16.
- [Release notes](https://github.com/vitejs/vite/releases )
- [Changelog](https://github.com/vitejs/vite/blob/v2.9.16/packages/vite/CHANGELOG.md )
- [Commits](https://github.com/vitejs/vite/commits/v2.9.16/packages/vite )
---
updated-dependencies:
- dependency-name: vite
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-08-03 05:33:24 +00:00
dependabot[bot]
19497f1054
Bump tough-cookie from 4.1.2 to 4.1.3
...
Bumps [tough-cookie](https://github.com/salesforce/tough-cookie ) from 4.1.2 to 4.1.3.
- [Release notes](https://github.com/salesforce/tough-cookie/releases )
- [Changelog](https://github.com/salesforce/tough-cookie/blob/master/CHANGELOG.md )
- [Commits](https://github.com/salesforce/tough-cookie/compare/v4.1.2...v4.1.3 )
---
updated-dependencies:
- dependency-name: tough-cookie
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-08-03 05:32:59 +00:00
zS1L3NT Windows
6511fc1090
🐛 add back publish step and update readme.md
2023-07-30 00:28:06 +08:00
zS1L3NT Windows
99474b93e0
🐛 fix workflow errors
...
use latest pnpm version
2023-07-30 00:20:27 +08:00
zS1L3NT Windows
d88d87e3f8
🔖 4.2.0
2023-07-30 00:09:26 +08:00
zS1L3NT Windows
ab7aaaee8c
🚨 fix linting
2023-07-30 00:09:26 +08:00
zS1L3NT Windows
df173dfe47
✨ allow injecting custom cookies
2023-07-29 23:55:56 +08:00
zS1L3NT Windows
8def009b73
🔀 Merge branch 'fix/tests-breaking' into main
2023-07-29 23:52:23 +08:00
zS1L3NT Windows
8aac182764
🐛 fix typescript errors
2023-07-29 23:31:06 +08:00
zS1L3NT Windows
de2b653fa6
🐛 fix album artists
2023-07-29 23:23:53 +08:00
zS1L3NT Windows
eccf197dcb
🐛 fix search results
2023-07-29 23:12:09 +08:00
zS1L3NT Windows
1cd1459c92
🐛 fix playlist search artist name wrong
2023-07-29 23:06:38 +08:00
zS1L3NT Windows
2e77adfa52
🔥 remove playlist video count
2023-07-29 20:15:01 +08:00
Zechariah
27df842c98
✨ get top singles and videos when fetching an artist
2022-12-29 13:04:45 +08:00
Zechariah
d60878c8ac
🐛 fix no albums bug
2022-12-29 10:19:02 +08:00
zS1L3NT
be872ecf5b
🐛 forgot to include index.ts
2022-12-28 03:27:14 +08:00
Zechariah
b67bdfdbde
📝 update readme.md
...
make more consistent with other readmes
2022-12-26 03:53:00 +08:00
Zechariah
89af69cd41
🔥 remove deploying to github pages
2022-12-25 02:16:55 +08:00
zS1L3NT
ed3b4127f8
✨ new version of ytmusic-api abandoning validate-any
2022-12-25 01:53:42 +08:00