semarketir / quranjson

Quran JSON ~ 6236 verses, 114 surah, 30 Juz
https://semarketir.github.io/quranjson-web
MIT License
573 stars 229 forks source link

Juz isn't always complete in surah json files #36

Open alrayyes opened 4 years ago

alrayyes commented 4 years ago

For example:

{
    "index": "110",
    "name": "an-Nashr",
    "verse": {
        "verse_0": "بسم الله الرحمن الرحيم",
        "verse_1": "إذا جاء نصر ٱلله وٱلفتح",
        "verse_2": "ورأيت ٱلناس يدخلون فى دين ٱلله أفواجا",
        "verse_3": "فسبح بحمد ربك وٱستغفره  إنهۥ كان توابا"
    },
    "count": 3,
    "juz": [
        {
            "index": "30",
            "verse": {
                "start": "verse_1",
                "end": "verse_3"
            }
        }
    ]
}

verse_0 has juz index 29. There's no way to parse this from the file besides subtracting 1 from 30, which is a bit hacky. Can this be easily added?

takasurazeem commented 1 year ago

You can create a PR for this.