mirror of
https://github.com/danbulant/Mangades
synced 2026-06-20 23:01:28 +00:00
exclude mangadex external links
This commit is contained in:
parent
7c46ff0f13
commit
22fc75b710
1 changed files with 3 additions and 1 deletions
|
|
@ -21,7 +21,9 @@
|
|||
async function getMangaChapters(id) {
|
||||
const data = await request("manga/" + id + "/feed?limit=500&translatedLanguage[]=en");
|
||||
console.log(data);
|
||||
data.data.sort((a, b) => a.attributes.chapter - b.attributes.chapter);
|
||||
data.data = data.data
|
||||
.filter(datum => !datum.attributes?.externalUrl)
|
||||
.sort((a, b) => a.attributes.chapter - b.attributes.chapter);
|
||||
return data;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue