mirror of
https://github.com/ThaUnknown/miru.git
synced 2026-04-18 00:51:30 +00:00
fix: throw no entries error sooner
This commit is contained in:
parent
468d857225
commit
d40df8a1ff
2 changed files with 3 additions and 3 deletions
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "Miru",
|
||||
"version": "4.4.0",
|
||||
"version": "4.4.1",
|
||||
"author": "ThaUnknown_ <ThaUnknown@users.noreply.github.com>",
|
||||
"description": "Stream anime torrents, real-time with no waiting for downloads.",
|
||||
"main": "build/main.js",
|
||||
|
|
|
|||
|
|
@ -22,6 +22,8 @@ export default async function ({ media, episode }) {
|
|||
|
||||
const mapped = mapBestRelease(mapTosho2dDeDupedEntry(entries))
|
||||
|
||||
if (!mapped?.length) throw new Error('No entries found.')
|
||||
|
||||
const parseObjects = await anitomyscript(mapped.map(({ title }) => title))
|
||||
|
||||
for (const i in parseObjects) mapped[i].parseObject = parseObjects[i]
|
||||
|
|
@ -45,8 +47,6 @@ export default async function ({ media, episode }) {
|
|||
found.seeders = complete
|
||||
}
|
||||
|
||||
if (!mapped?.length) throw new Error('No entries found.')
|
||||
|
||||
return mapped
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue