From 4e7211672d2551a0b6fcb764eef7d8585d9d6f55 Mon Sep 17 00:00:00 2001 From: ZTL-UwU Date: Sun, 8 Sep 2024 18:13:07 +0800 Subject: [PATCH] fix: use linolabs/qq-music-api for music searching Signed-off-by: ZTL-UwU --- components/MusicPlayerCard.vue | 4 +-- pages/manage/review.vue | 19 ++++------- server/api/search/song.ts | 48 +++++++++++++++++++++++++++ server/api/stream.ts | 9 +++++ server/lib/song.ts | 60 ++++++++++++++++++++++++++++++++++ types/index.ts | 2 ++ types/search.ts | 33 +++++++++++++++++++ types/stream.ts | 20 ++++++++++++ 8 files changed, 180 insertions(+), 15 deletions(-) create mode 100644 server/api/search/song.ts create mode 100644 server/api/stream.ts create mode 100644 server/lib/song.ts create mode 100644 types/search.ts create mode 100644 types/stream.ts diff --git a/components/MusicPlayerCard.vue b/components/MusicPlayerCard.vue index f364f14..6ec2f4a 100644 --- a/components/MusicPlayerCard.vue +++ b/components/MusicPlayerCard.vue @@ -52,7 +52,7 @@ onMounted(() => {
- {{ song.title }} + {{ song.name }}
@@ -78,7 +78,7 @@ onMounted(() => {
- {{ song.author }} + {{ song.singer }}