Fix image for mp3 URL

This commit is contained in:
Fergal Moran
2018-03-07 22:21:16 +00:00
parent ff1a9d2d7a
commit 35840b7337

View File

@@ -69,6 +69,9 @@ namespace PodNoms.Api.Controllers {
var podcast = await _podcastRepository.GetAsync(item.PodcastId);
if (podcast != null && await _processor.GetInformation(entry)) {
if (entry.ProcessingStatus == ProcessingStatus.Processing) {
if (string.IsNullOrEmpty(entry.ImageUrl)) {
entry.ImageUrl = $"{_storageSettings.CdnUrl}static/images/default-entry.png";
}
entry.Podcast = podcast;
entry.Processed = false;
await _repository.AddOrUpdateAsync(entry);