Update kick.js
Browse files
kick.js
CHANGED
|
@@ -30,7 +30,7 @@ function cleanQuery(query) {
|
|
| 30 |
// ✅ Caches results to prevent duplicate requests
|
| 31 |
const cache = new Map();
|
| 32 |
|
| 33 |
-
// ✅ Fetch data from Jackett API (
|
| 34 |
async function fetchRSSFeeds(searchQuery, type = 'movie') {
|
| 35 |
const cleanedQuery = cleanQuery(searchQuery);
|
| 36 |
console.log(`🔄 Fetching RSS feed for: "${cleanedQuery}"`);
|
|
@@ -40,7 +40,7 @@ async function fetchRSSFeeds(searchQuery, type = 'movie') {
|
|
| 40 |
return cache.get(cleanedQuery);
|
| 41 |
}
|
| 42 |
|
| 43 |
-
const API_URL = `http://
|
| 44 |
|
| 45 |
try {
|
| 46 |
await new Promise(resolve => setTimeout(resolve, 2000)); // Prevents bot detection
|
|
|
|
| 30 |
// ✅ Caches results to prevent duplicate requests
|
| 31 |
const cache = new Map();
|
| 32 |
|
| 33 |
+
// ✅ Fetch data from Jackett API (The Pirate Bay)
|
| 34 |
async function fetchRSSFeeds(searchQuery, type = 'movie') {
|
| 35 |
const cleanedQuery = cleanQuery(searchQuery);
|
| 36 |
console.log(`🔄 Fetching RSS feed for: "${cleanedQuery}"`);
|
|
|
|
| 40 |
return cache.get(cleanedQuery);
|
| 41 |
}
|
| 42 |
|
| 43 |
+
const API_URL = `http://81.150.31.153:9117/api/v2.0/indexers/all/results?apikey=1c99yaajym29qbrb715q3me1qwj2d42g&Query=${encodeURIComponent(cleanedQuery)}&Category%5B%5D=2000&Category%5B%5D=2030&Category%5B%5D=2040&Category%5B%5D=2045&Category%5B%5D=5000&Category%5B%5D=5040&Category%5B%5D=5045&Category%5B%5D=5050&Category%5B%5D=8000&Category%5B%5D=100201&Category%5B%5D=100202&Category%5B%5D=100205&Category%5B%5D=100207&Category%5B%5D=100208&Category%5B%5D=100211&Category%5B%5D=100212&Category%5B%5D=100501&Category%5B%5D=100502&Category%5B%5D=100505&Category%5B%5D=100507&Tracker%5B%5D=thepiratebay&_=1741639126439`;
|
| 44 |
|
| 45 |
try {
|
| 46 |
await new Promise(resolve => setTimeout(resolve, 2000)); // Prevents bot detection
|