Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
alrayyes opened this issue Jan 9, 2020 · 1 comment
Open

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

alrayyes opened this issue Jan 9, 2020 · 1 comment

Comments

@alrayyes
Copy link

alrayyes commented Jan 9, 2020

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
Copy link

You can create a PR for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants