Spaces:
Paused
Paused
Update commons/queryBuilder.js
Browse files- commons/queryBuilder.js +6 -0
commons/queryBuilder.js
CHANGED
|
@@ -35,6 +35,9 @@ const Catalog = (dependencies) => {
|
|
| 35 |
subject: genre,
|
| 36 |
});
|
| 37 |
|
|
|
|
|
|
|
|
|
|
| 38 |
// Make the API request
|
| 39 |
const response = await httpClient.get(env.url.search, {
|
| 40 |
params: {
|
|
@@ -46,6 +49,9 @@ const Catalog = (dependencies) => {
|
|
| 46 |
},
|
| 47 |
});
|
| 48 |
|
|
|
|
|
|
|
|
|
|
| 49 |
// Format the results for Stremio
|
| 50 |
const catalogItems = response.data.response.docs.map((doc) => ({
|
| 51 |
id: `archorg.addon:${doc.identifier}`,
|
|
|
|
| 35 |
subject: genre,
|
| 36 |
});
|
| 37 |
|
| 38 |
+
// Log the query for debugging
|
| 39 |
+
console.log("Generated query:", query);
|
| 40 |
+
|
| 41 |
// Make the API request
|
| 42 |
const response = await httpClient.get(env.url.search, {
|
| 43 |
params: {
|
|
|
|
| 49 |
},
|
| 50 |
});
|
| 51 |
|
| 52 |
+
// Log the response data for debugging
|
| 53 |
+
console.log("Archive.org Response:", response.data);
|
| 54 |
+
|
| 55 |
// Format the results for Stremio
|
| 56 |
const catalogItems = response.data.response.docs.map((doc) => ({
|
| 57 |
id: `archorg.addon:${doc.identifier}`,
|