Update for the "full flow"

This commit is contained in:
Connor Johnstone
2026-03-17 21:39:08 -04:00
parent 5583bc21fe
commit 0572722184
4 changed files with 118 additions and 44 deletions

View File

@@ -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>,
}