fix missing author
This commit is contained in:
@@ -97,9 +97,18 @@ public class AudioCoveService {
|
||||
combinedContent.append("\n");
|
||||
}
|
||||
|
||||
List<String> authors = collectionStories.stream()
|
||||
.map(cs -> cs.getStory().getAuthor())
|
||||
.filter(a -> a != null)
|
||||
.map(a -> a.getName())
|
||||
.distinct()
|
||||
.toList();
|
||||
String authorValue = String.join(", ", authors);
|
||||
|
||||
AudioCoveIngestRequest request = new AudioCoveIngestRequest();
|
||||
request.setStoryId(collectionId.toString());
|
||||
request.setTitle(collection.getName());
|
||||
request.setAuthor(authorValue.isBlank() ? null : authorValue);
|
||||
request.setContentHtml(combinedContent.toString());
|
||||
request.setContentHash(computeContentHash(combinedContent.toString()));
|
||||
request.setCollection(collection.getName());
|
||||
|
||||
Reference in New Issue
Block a user