feat: add music search suggested items
This commit is contained in:
parent
331a13568a
commit
1d56b9c9a0
8 changed files with 1016 additions and 150 deletions
|
|
@ -2,12 +2,76 @@
|
|||
source: src/client/music_search.rs
|
||||
expression: map_res.c
|
||||
---
|
||||
[
|
||||
"taylor swift",
|
||||
"tkkg",
|
||||
"techno",
|
||||
"t low",
|
||||
"the weeknd",
|
||||
"tiktok songs",
|
||||
"toten hosen",
|
||||
]
|
||||
MusicSearchSuggestion(
|
||||
terms: [
|
||||
"taylor swift",
|
||||
"tkkg",
|
||||
"theo mach mir ein bananenbrot",
|
||||
"techno",
|
||||
],
|
||||
items: [
|
||||
Artist(ArtistItem(
|
||||
id: "UCPC0L1d253x-KuMNwa05TpA",
|
||||
name: "Taylor Swift",
|
||||
avatar: [
|
||||
Thumbnail(
|
||||
url: "https://lh3.googleusercontent.com/U1cI80giSCUuNYx3zkRPt_AWytN1qFMlQoL5F7kTZeFzfIMmfHJYLJchX3BxeDLglE9MeVYp4OlN5Xc=w60-h60-p-l90-rj",
|
||||
width: 60,
|
||||
height: 60,
|
||||
),
|
||||
Thumbnail(
|
||||
url: "https://lh3.googleusercontent.com/U1cI80giSCUuNYx3zkRPt_AWytN1qFMlQoL5F7kTZeFzfIMmfHJYLJchX3BxeDLglE9MeVYp4OlN5Xc=w120-h120-p-l90-rj",
|
||||
width: 120,
|
||||
height: 120,
|
||||
),
|
||||
],
|
||||
subscriber_count: None,
|
||||
)),
|
||||
Artist(ArtistItem(
|
||||
id: "UCyiY-0Af0O6emoI3YvCEDaA",
|
||||
name: "TKKG",
|
||||
avatar: [
|
||||
Thumbnail(
|
||||
url: "https://lh3.googleusercontent.com/Y6iWyltVsuHYON5C7CvByIWYccxq_ZAw2UZiEMfYY4PlwzcNb54EmP3xHSFRn6ZWpLftvbXGTNkTchjq=w60-h60-l90-rj",
|
||||
width: 60,
|
||||
height: 60,
|
||||
),
|
||||
Thumbnail(
|
||||
url: "https://lh3.googleusercontent.com/Y6iWyltVsuHYON5C7CvByIWYccxq_ZAw2UZiEMfYY4PlwzcNb54EmP3xHSFRn6ZWpLftvbXGTNkTchjq=w120-h120-l90-rj",
|
||||
width: 120,
|
||||
height: 120,
|
||||
),
|
||||
],
|
||||
subscriber_count: None,
|
||||
)),
|
||||
Track(TrackItem(
|
||||
id: "0pnFvmuXwgg",
|
||||
name: "Theo (Der Bananenbrot-Song)",
|
||||
duration: None,
|
||||
cover: [
|
||||
Thumbnail(
|
||||
url: "https://lh3.googleusercontent.com/x3Hn5hbqoPgf7D_JXotEAyUFTvdG_QwbfDqMqT-zdBgArAlqLlbYMN2FAWO5iwKkmcm-l_hUL4WtZd9u=w60-h60-s-l90-rj",
|
||||
width: 60,
|
||||
height: 60,
|
||||
),
|
||||
Thumbnail(
|
||||
url: "https://lh3.googleusercontent.com/x3Hn5hbqoPgf7D_JXotEAyUFTvdG_QwbfDqMqT-zdBgArAlqLlbYMN2FAWO5iwKkmcm-l_hUL4WtZd9u=w120-h120-s-l90-rj",
|
||||
width: 120,
|
||||
height: 120,
|
||||
),
|
||||
],
|
||||
artists: [
|
||||
ArtistId(
|
||||
id: Some("UC56hLMPuEsERdmTBbR_JGHA"),
|
||||
name: "Rolf Zuckowski & seine Freunde",
|
||||
),
|
||||
],
|
||||
artist_id: Some("UC56hLMPuEsERdmTBbR_JGHA"),
|
||||
album: None,
|
||||
view_count: None,
|
||||
is_video: false,
|
||||
track_nr: None,
|
||||
by_va: false,
|
||||
)),
|
||||
],
|
||||
)
|
||||
|
|
|
|||
|
|
@ -2,4 +2,7 @@
|
|||
source: src/client/music_search.rs
|
||||
expression: map_res.c
|
||||
---
|
||||
[]
|
||||
MusicSearchSuggestion(
|
||||
terms: [],
|
||||
items: [],
|
||||
)
|
||||
|
|
|
|||
Reference in a new issue