Spaces:
Running
Running
Upload index.html
Browse files- index.html +2 -2
index.html
CHANGED
|
@@ -1605,7 +1605,7 @@ const RPC_CACHE = { // op -> [ttl ms, hifadhi localStorage?]; movies.play haihif
|
|
| 1605 |
function fetchAllLiveItems() { return jmCached('live', 300000, fetchAllLiveItemsRaw, { persist: false }); }
|
| 1606 |
function fetchAllSportsItems() { return jmCached('sports', 120000, fetchAllSportsItemsRaw, { persist: false }); }
|
| 1607 |
function fetchTranslatedList() { return jmCached('translated', 300000, fetchTranslatedListRaw, { persist: false }); }
|
| 1608 |
-
function searchMovieBox(keyword) { return
|
| 1609 |
function getHomeConfig() { return jmCached('homecfg', 600000, getHomeConfigRaw, { persist: false, ok: v => v && v !== HOME_CFG_DEFAULT }); }
|
| 1610 |
async function fetchTrailerJson(subjectId) {
|
| 1611 |
return jmCached('trailer:' + subjectId, 86400000, async () => {
|
|
@@ -3144,7 +3144,7 @@ function safeImgHTML(urls, alt, lazy){
|
|
| 3144 |
*/
|
| 3145 |
async function searchMovieBoxRaw(keyword) {
|
| 3146 |
const url = SEARCH_FN_URL + '?keyword=' + encodeURIComponent(keyword);
|
| 3147 |
-
const res = await fetch(url, { headers: { 'apikey': SUPABASE_ANON_KEY } });
|
| 3148 |
const arr = await res.json();
|
| 3149 |
if (!Array.isArray(arr)) return [];
|
| 3150 |
return arr.map(x => {
|
|
|
|
| 1605 |
function fetchAllLiveItems() { return jmCached('live', 300000, fetchAllLiveItemsRaw, { persist: false }); }
|
| 1606 |
function fetchAllSportsItems() { return jmCached('sports', 120000, fetchAllSportsItemsRaw, { persist: false }); }
|
| 1607 |
function fetchTranslatedList() { return jmCached('translated', 300000, fetchTranslatedListRaw, { persist: false }); }
|
| 1608 |
+
function searchMovieBox(keyword) { return searchMovieBoxRaw(keyword); } // search haina cache: kila utafutaji unaenda seva moja kwa moja
|
| 1609 |
function getHomeConfig() { return jmCached('homecfg', 600000, getHomeConfigRaw, { persist: false, ok: v => v && v !== HOME_CFG_DEFAULT }); }
|
| 1610 |
async function fetchTrailerJson(subjectId) {
|
| 1611 |
return jmCached('trailer:' + subjectId, 86400000, async () => {
|
|
|
|
| 3144 |
*/
|
| 3145 |
async function searchMovieBoxRaw(keyword) {
|
| 3146 |
const url = SEARCH_FN_URL + '?keyword=' + encodeURIComponent(keyword);
|
| 3147 |
+
const res = await fetch(url, { headers: { 'apikey': SUPABASE_ANON_KEY }, cache: 'no-store' });
|
| 3148 |
const arr = await res.json();
|
| 3149 |
if (!Array.isArray(arr)) return [];
|
| 3150 |
return arr.map(x => {
|