This commit is contained in:
Hamid Reza Mohammadi 2023-12-11 18:38:33 +03:30
parent adf95cf9a2
commit 4ffe2e4284

View File

@ -163,10 +163,13 @@
var audioxmlfiles = [];
@foreach (var recitation in Model.GanjoorPage.Poem.Recitations)
{
<text>
narrators.push('@Html.Raw(recitation.AudioArtist)');
audioxmlfiles.push('@($"{GanjooRazor.APIRoot.InternetUrl}/api/audio/file/{recitation.Id}.xml")');
</text>
if (recitation.InSyncWithText)
{
<text>
narrators.push('@Html.Raw(recitation.AudioArtist)');
audioxmlfiles.push('@($"{GanjooRazor.APIRoot.InternetUrl}/api/audio/file/{recitation.Id}.xml")');
</text>
}
}
</script>
}