Update episode.js

This commit is contained in:
2024-10-28 15:46:42 +05:00
committed by GitHub
parent 8c326d6032
commit a02ed6a99b

View File

@@ -7,6 +7,12 @@ async function getEpisodeFromAnixart(releaseId) {
const response = await axios.get(url); const response = await axios.get(url);
const data = response.data; const data = response.data;
// Изменение структуры поля `workers`
data.types = data.types.map((type) => ({
...type,
workers: "источник: seele.su (元一S2)",
}));
// Если список `types` пуст, обращаемся к Seele API // Если список `types` пуст, обращаемся к Seele API
if (data.code === 1 || data.types.length === 0) { if (data.code === 1 || data.types.length === 0) {
return await getEpisodeFromSeele(releaseId); return await getEpisodeFromSeele(releaseId);