Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions listenarr.application/Metadata/Core/AudiobookMetadataService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,18 @@ public AudiobookMetadataService(
continue;
}

// An ASIN missing from Audible's catalog comes back as a
// non-null but EMPTY product stub (no title, no fields).
// Treating that as an answer both returns junk to the
// caller and blocks every later source in the chain.
if (result is AudibleBookResponse shell && string.IsNullOrWhiteSpace(shell.Title))
{
_logger.LogInformation(
"{SourceName} returned an empty product stub for ASIN {Asin}; treating as no answer",
source.Name, asin);
result = null;
}

if (result != null)
{
_logger.LogInformation("Successfully fetched metadata from {SourceName} for ASIN: {Asin}", source.Name, asin);
Expand Down