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