Update streamingunity/streamingunity.js
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
async function searchResults(keyword) {
|
async function searchResults(keyword) {
|
||||||
const response = await soraFetch(
|
const response = await soraFetch(
|
||||||
`https://streamingunity.co/it/archive?search=${keyword}`
|
`https://streamingcommunityz.kitchen/it/archive?search=${keyword}`
|
||||||
);
|
);
|
||||||
const html = await response.text();
|
const html = await response.text();
|
||||||
|
|
||||||
@@ -23,9 +23,9 @@ async function searchResults(keyword) {
|
|||||||
title:
|
title:
|
||||||
item.name?.replaceAll("amp;", "").replaceAll("'", "'") || "",
|
item.name?.replaceAll("amp;", "").replaceAll("'", "'") || "",
|
||||||
image: posterImage?.filename
|
image: posterImage?.filename
|
||||||
? `https://cdn.streamingunity.co/images/${posterImage.filename}`
|
? `https://cdn.streamingcommunityz.kitchen/images/${posterImage.filename}`
|
||||||
: "",
|
: "",
|
||||||
href: `https://streamingunity.co/it/titles/${item.id}-${item.slug}`,
|
href: `https://streamingcommunityz.kitchen/it/titles/${item.id}-${item.slug}`,
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
.filter((item) => item.image) || [];
|
.filter((item) => item.image) || [];
|
||||||
@@ -103,7 +103,7 @@ async function extractEpisodes(url) {
|
|||||||
hasEpisodes = true;
|
hasEpisodes = true;
|
||||||
seasonEpisodes.forEach((episode) => {
|
seasonEpisodes.forEach((episode) => {
|
||||||
episodes.push({
|
episodes.push({
|
||||||
href: `https://streamingunity.co/it/iframe/${titleId}?episode_id=${episode.id}`,
|
href: `https://streamingcommunityz.kitchen/it/iframe/${titleId}?episode_id=${episode.id}`,
|
||||||
number: episode.number || episodes.length + 1,
|
number: episode.number || episodes.length + 1,
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
@@ -116,7 +116,7 @@ async function extractEpisodes(url) {
|
|||||||
|
|
||||||
if (!hasEpisodes) {
|
if (!hasEpisodes) {
|
||||||
episodes.push({
|
episodes.push({
|
||||||
href: `https://streamingunity.co/it/iframe/${titleId}`,
|
href: `https://streamingcommunityz.kitchen/it/iframe/${titleId}`,
|
||||||
number: 1,
|
number: 1,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user