diff --git a/API/ThriveChurchOfficialAPI/ThriveChurchOfficialAPI.Core/Responses/SitemapMessageData.cs b/API/ThriveChurchOfficialAPI/ThriveChurchOfficialAPI.Core/Responses/SitemapMessageData.cs
index 86e2e62..86c96df 100644
--- a/API/ThriveChurchOfficialAPI/ThriveChurchOfficialAPI.Core/Responses/SitemapMessageData.cs
+++ b/API/ThriveChurchOfficialAPI/ThriveChurchOfficialAPI.Core/Responses/SitemapMessageData.cs
@@ -16,6 +16,11 @@ public class SitemapMessageData
/// The date this message was given
///
public DateTime? Date { get; set; }
+
+ ///
+ /// Whether this message has a video available
+ ///
+ public bool HasVideo { get; set; }
}
}
diff --git a/API/ThriveChurchOfficialAPI/ThriveChurchOfficialAPI.Services/Services/SermonsService.cs b/API/ThriveChurchOfficialAPI/ThriveChurchOfficialAPI.Services/Services/SermonsService.cs
index 02798bb..0caefae 100644
--- a/API/ThriveChurchOfficialAPI/ThriveChurchOfficialAPI.Services/Services/SermonsService.cs
+++ b/API/ThriveChurchOfficialAPI/ThriveChurchOfficialAPI.Services/Services/SermonsService.cs
@@ -1918,7 +1918,8 @@ public async Task> GetSitemapData()
Messages = series.Messages?.Select(msg => new SitemapMessageData
{
Id = msg.MessageId,
- Date = msg.Date
+ Date = msg.Date,
+ HasVideo = !string.IsNullOrEmpty(msg.VideoUrl)
}).ToList() ?? new List()
}).ToList()
};