fix: use same visitor data for fetching artist album continuations

This commit is contained in:
ThetaDev 2024-10-24 02:02:22 +02:00
parent 512223fd83
commit 7b0499f6b7
No known key found for this signature in database
GPG key ID: E319D3C5148D65B6

View file

@ -111,6 +111,7 @@ impl RustyPipeQuery {
&request_body,
MapRespCtxSource {
artist: Some(first_page.artist.clone()),
visitor_data: first_page.visitor_data.as_deref(),
..Default::default()
},
)
@ -319,6 +320,7 @@ struct FirstAlbumPage {
albums: Vec<AlbumItem>,
ctoken: Option<String>,
artist: ArtistId,
visitor_data: Option<String>,
}
impl MapResponse<FirstAlbumPage> for response::MusicArtistAlbums {
@ -372,6 +374,7 @@ impl MapResponse<FirstAlbumPage> for response::MusicArtistAlbums {
albums: mapped.c.albums,
ctoken,
artist: artist_id,
visitor_data: ctx.visitor_data.map(str::to_owned),
},
warnings: mapped.warnings,
})