diff --git a/RMuseum/Controllers/RecitationController.cs b/RMuseum/Controllers/RecitationController.cs index af4fe509..2eb5fdef 100644 --- a/RMuseum/Controllers/RecitationController.cs +++ b/RMuseum/Controllers/RecitationController.cs @@ -58,7 +58,7 @@ namespace RMuseum.Controllers [AllowAnonymous] [ProducesResponseType((int)HttpStatusCode.OK, Type = typeof(FileStreamResult))] [ProducesResponseType((int)HttpStatusCode.BadRequest, Type = typeof(string))] - public async Task GetRssFeed(int count = 100) + public async Task GetRssFeed(int count) { var res = await _audioService.GetPublishedRecitations(new PagingParameterModel() { PageNumber = 1, PageSize = count}, ""); if (!string.IsNullOrEmpty(res.ExceptionString)) diff --git a/RMuseum/Services/Implementation/RecitationsRssBuilder.cs b/RMuseum/Services/Implementation/RecitationsRssBuilder.cs index 5586d6fd..b5ee5494 100644 --- a/RMuseum/Services/Implementation/RecitationsRssBuilder.cs +++ b/RMuseum/Services/Implementation/RecitationsRssBuilder.cs @@ -16,9 +16,10 @@ namespace RMuseum.Services.Implementation /// /// build rss /// + /// /// /// - public static string Build(PublicRecitationViewModel[] recitations) + public static string Build(int requestCount, PublicRecitationViewModel[] recitations) { StringBuilder builder = new StringBuilder(); @@ -38,7 +39,7 @@ namespace RMuseum.Services.Implementation builder.AppendLine(""); builder.AppendLine(" خوانش‌های گنجور"); - builder.AppendLine(" "); + builder.AppendLine($" "); builder.AppendLine(" https://ganjoor.net"); builder.AppendLine(" دکلمه‌های صوتی اشعار گنجور"); @@ -90,7 +91,7 @@ namespace RMuseum.Services.Implementation .Replace("
", "") .Replace("
", "") .Replace("
", ""); - builder.AppendLine($" {poemDescription} را با خوانش {artist} بشنوید.

{Environment.NewLine}" + + builder.AppendLine($" {poemDescription} را با خوانش {artist} بشنوید.

{Environment.NewLine}" + $"

فایل صوتی متناظر را می‌توانید در قالب mp3 از این نشانی (اندازه {(recitation.Mp3SizeInBytes / (1024 * 1024.0f)) : 0.00} مگابایت) دریافت کنید.

{Environment.NewLine}" + $"

متن خوانش:

{Environment.NewLine}" + $" {htmlText}]]>
");