Commit Graph

20 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 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 bfdceea12d
use arktype instead of zod 2023-12-22 03:25:11 +08:00
zS1L3NT Windows ab7aaaee8c 🚨 fix linting 2023-07-30 00:09:26 +08:00
Zechariah 27df842c98 get top singles and videos when fetching an artist 2022-12-29 13:04:45 +08:00
zS1L3NT ed3b4127f8 new version of ytmusic-api abandoning validate-any 2022-12-25 01:53:42 +08:00
Zechariah 149fc48a00 add back year to album detailed 2022-06-28 00:24:19 +08:00
Zechariah e25f7e5546 🐛 error fixes, and removed some returned data 2022-05-31 01:20:57 +08:00
Zechariah dea7d8883b More type safe traversing 2022-03-28 01:11:33 +08:00
Zechariah 45692dcaa8 Validate all types before returning to user 2022-03-28 01:11:14 +08:00
Zechariah 75d85764c3 Moved traverse.ts 2022-02-05 06:23:05 +08:00
Zechariah 08ea5a47b6 Not exporting namespace anymore 2021-12-31 00:54:47 +08:00
Zechariah 5a458d5557 Published types properly 2021-12-31 00:17:00 +08:00
Zechariah e3579a90b5 Fetching album by id works 2021-12-25 12:22:46 +08:00
Zechariah cdbf3da1aa Added more consistency 2021-12-24 22:38:48 +08:00
Zechariah f5b5047c31 Moved methods all over, all artist methods work 2021-12-24 18:11:38 +08:00
Zechariah 779035391c Made tests for search, all works 2021-12-24 13:35:21 +08:00