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")'); + + } } }