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