Commit Graph

8 Commits

Author SHA1 Message Date
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 7cb39bca6a
♻️ refactor traverse utilities functions 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 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
zS1L3NT Windows ab7aaaee8c 🚨 fix linting 2023-07-30 00:09:26 +08:00
Zechariah 59c6458738 Moved from jest to mocha 2022-03-28 03:28:37 +08:00