From 4ffe2e428473c7a362f3c5578ee861c95261aee2 Mon Sep 17 00:00:00 2001 From: Hamid Reza Mohammadi Date: Mon, 11 Dec 2023 18:38:33 +0330 Subject: [PATCH] #415 bug fix --- GanjooRazor/Pages/Index.cshtml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/GanjooRazor/Pages/Index.cshtml b/GanjooRazor/Pages/Index.cshtml index 410313e6..67dd4b3e 100644 --- a/GanjooRazor/Pages/Index.cshtml +++ b/GanjooRazor/Pages/Index.cshtml @@ -163,10 +163,13 @@ var audioxmlfiles = []; @foreach (var recitation in Model.GanjoorPage.Poem.Recitations) { - - narrators.push('@Html.Raw(recitation.AudioArtist)'); - audioxmlfiles.push('@($"{GanjooRazor.APIRoot.InternetUrl}/api/audio/file/{recitation.Id}.xml")'); - + if (recitation.InSyncWithText) + { + + narrators.push('@Html.Raw(recitation.AudioArtist)'); + audioxmlfiles.push('@($"{GanjooRazor.APIRoot.InternetUrl}/api/audio/file/{recitation.Id}.xml")'); + + } } }