OmarKhled / Tafakor

Programmatically Creating Quran Clips
MIT License
11 stars 2 forks source link

DB to store publishes data #2

Closed OmarKhled closed 9 months ago

OmarKhled commented 11 months ago

Tafakor currently sources its ayat (verses) and data from the Quran Reflect API. This entails selecting a random aya from a random post with each request. However, an issue arises when the same ayah is picked randomly more than once, potentially leading to redundancy.

To address this issue and ensure the uniqueness of published ayat, it's proposed the creation of a database (DB) that will keep track of the ayat that have been previously published. This way, we can avoid duplication and provide a diverse set of ayat to our users.

It's worth noting that a similar challenge exists with stock videos. We can apply the same solution to prevent the repetition of stock videos. By maintaining a record of previously used videos, we ensure a wide variety of content.