fix: match 'completed' download state and prefer format over quality

The API returns download.state='completed' but convert_album only
matched 'downloaded', causing monitored+downloaded albums to display
as Wanted with 0 tracks. Also prefer download.format ('FLAC') over
download.quality (empty) for the quality display.
This commit is contained in:
Alexander
2026-05-09 23:23:43 +02:00
parent 7a35958c42
commit 1232b76fff
2 changed files with 13 additions and 8 deletions
+4
View File
@@ -16,6 +16,10 @@ pub struct IndexerOptions {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MonitorAlbumResponse {
#[prost(message, optional, tag = "1")]
pub album: ::core::option::Option<AlbumDetail>,
#[prost(message, optional, tag = "2")]
pub artist: ::core::option::Option<ArtistSummary>,
#[prost(message, optional, tag = "3")]
pub release: ::core::option::Option<MonitoredRelease>,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]