Update for the "full flow"
This commit is contained in:
@@ -99,4 +99,19 @@ pub trait MetadataProvider: Send + Sync {
|
||||
artist_mbid: &str,
|
||||
limit: u32,
|
||||
) -> impl std::future::Future<Output = TagResult<Vec<DiscographyEntry>>> + Send;
|
||||
|
||||
fn get_release_tracks(
|
||||
&self,
|
||||
release_mbid: &str,
|
||||
) -> impl std::future::Future<Output = TagResult<Vec<ReleaseTrack>>> + Send;
|
||||
}
|
||||
|
||||
/// A track within a release.
|
||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||
pub struct ReleaseTrack {
|
||||
pub recording_mbid: String,
|
||||
pub title: String,
|
||||
pub track_number: Option<i32>,
|
||||
pub disc_number: Option<i32>,
|
||||
pub duration_ms: Option<u64>,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user