mirror of
https://github.com/librespot-org/librespot.git
synced 2025-10-03 01:39:28 +02:00
Update protobuf files (#1424)
* update protobuf definitions * add additionally required proto files * update version.rs * adjust code to protobuf changes * fix formatting * apply suggestions, improve errors
This commit is contained in:
parent
0ad1f7249b
commit
2a574267ae
335 changed files with 3331 additions and 1204 deletions
|
@ -32,7 +32,6 @@ pub struct Album {
|
|||
pub label: String,
|
||||
pub date: Date,
|
||||
pub popularity: i32,
|
||||
pub genres: Vec<String>,
|
||||
pub covers: Images,
|
||||
pub external_ids: ExternalIds,
|
||||
pub discs: Discs,
|
||||
|
@ -95,7 +94,6 @@ impl TryFrom<&<Self as Metadata>::Message> for Album {
|
|||
label: album.label().to_owned(),
|
||||
date: album.date.get_or_default().try_into()?,
|
||||
popularity: album.popularity(),
|
||||
genres: album.genre.to_vec(),
|
||||
covers: album.cover_group.get_or_default().into(),
|
||||
external_ids: album.external_id.as_slice().into(),
|
||||
discs: album.disc.as_slice().try_into()?,
|
||||
|
|
|
@ -37,7 +37,6 @@ pub struct Artist {
|
|||
pub singles: AlbumGroups,
|
||||
pub compilations: AlbumGroups,
|
||||
pub appears_on_albums: AlbumGroups,
|
||||
pub genre: Vec<String>,
|
||||
pub external_ids: ExternalIds,
|
||||
pub portraits: Images,
|
||||
pub biographies: Biographies,
|
||||
|
@ -193,7 +192,6 @@ impl TryFrom<&<Self as Metadata>::Message> for Artist {
|
|||
singles: artist.single_group.as_slice().try_into()?,
|
||||
compilations: artist.compilation_group.as_slice().try_into()?,
|
||||
appears_on_albums: artist.appears_on_group.as_slice().try_into()?,
|
||||
genre: artist.genre.to_vec(),
|
||||
external_ids: artist.external_id.as_slice().into(),
|
||||
portraits: artist.portrait.as_slice().into(),
|
||||
biographies: artist.biography.as_slice().into(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue