Alfanous-team / alfanous

Alfanous is an Arabic search engine API provides the simple and advanced search in Quran , more features and many interfaces...
http://www.alfanous.org/
GNU Affero General Public License v3.0
251 stars 89 forks source link

There is big problem most of keys in API including sura keys return as null #532

Closed iTarek closed 3 years ago

iTarek commented 3 years ago

There is big problem most of keys in API including sura keys return as null I hope you fixing this soon

"ayas": {
      "1": {
        "position": {},
        "aya": {
          "next_aya": {
            "text": "اللَّهُ الصَّمَدُ",
            "sura_arabic": "الإخلاص",
            "id": 2,
            "sura": "Al-Ikhlas"
          },
          "text": "قُلْ هُوَ اللَّهُ <span class=\"match term0\">أَحَدٌ</span>",
          "recitation": "https://www.everyayah.com/data/Abdul_Basit_Murattal_64kbps/112001.mp3",
          "prev_aya": {
            "text": "فِي جِيدِهَا حَبْلٌ مِنْ مَسَدٍ",
            "sura_arabic": "المسد",
            "id": 5,
            "sura": "Al-Masadd"
          },
          "translation": null,
          "id": 1,
          "text_no_highlight": "قل هو الله أحد"
        },
        "sura": {},
        "annotations": {},
        "sajda": {
          "id": null,
          "type": null,
          "exist": false
        },
ghost commented 3 years ago

can you explain what issue here?

iTarek commented 3 years ago

can you explain what issue here?

Go yo https://www.alfanous.org/ar/aya/?query=الله

you will find there is no sura detail

The sura information is empty

iTarek commented 3 years ago

can you explain what issue here?

Go yo https://www.alfanous.org/ar/aya/?query=الله

you will find there is no sura detail

The sura information is empty

The keys that have information about the sura like sura type guza and details are gone

iTarek commented 3 years ago

Please try fix this as soon as possible as I am working on the iOS app

ghost commented 3 years ago

it's not a bug, it is just we dont show sura info by default. You can add view=normal to get it or sura_info=true https://www.alfanous.org/ar/aya/?view=normal&query=%D8%A7%D9%84%D9%84%D9%87

iTarek commented 3 years ago

view=normal

Why the website dose not show the view as normal by default , it was like that and something happened made it not show the sura info, also this was the case with API

ghost commented 3 years ago

there was latest changes that not merged into the donation button change, please check again

iTarek commented 3 years ago

there was latest changes that not merged into the donation button change, please check again

Thank you, everything back yo normal, I will add the view=normal to my code just in case this happen again