fix le shit

This commit is contained in:
janisslsm committed 2026-07-20 17:45:06 +03:00
1 parent 231392a428
commit c78941a39a
3 files changed
+10 -4

No files matched your search

+2 -2
View File
@@ -1,12 +1,12 @@
{ {
"name": "Nuvio Providers", "name": "Nuvio Providers",
"version": "1.0.8", "version": "1.0.9",
"scrapers": [ "scrapers": [
{ {
"id": "miruro", "id": "miruro",
"name": "Miruro", "name": "Miruro",
"description": "Anime streams from Miruro with subbed and dubbed sources.", "description": "Anime streams from Miruro with subbed and dubbed sources.",
"version": "1.0.2", "version": "1.0.3",
"author": "Jānis L", "author": "Jānis L",
"supportedTypes": [ "supportedTypes": [
"movie", "movie",
+2 -1
View File
@@ -579,7 +579,8 @@ function recordMatchesIdentifier(record, identifier, mediaType) {
} }
function getAniListIds(records, identifier, mediaType) { function getAniListIds(records, identifier, mediaType) {
const ids = []; const ids = [];
for (const record of Array.isArray(records) ? records : []) { const normalizedRecords = Array.isArray(records) ? records : records && typeof records === "object" ? [records] : [];
for (const record of normalizedRecords) {
if (!recordMatchesIdentifier(record, identifier, mediaType)) { if (!recordMatchesIdentifier(record, identifier, mediaType)) {
continue; continue;
} }
+6 -1
View File
@@ -59,8 +59,13 @@ function recordMatchesIdentifier(record, identifier, mediaType) {
function getAniListIds(records, identifier, mediaType) { function getAniListIds(records, identifier, mediaType) {
const ids = []; const ids = [];
const normalizedRecords = Array.isArray(records)
? records
: records && typeof records === 'object'
? [records]
: [];
for (const record of Array.isArray(records) ? records : []) { for (const record of normalizedRecords) {
if (!recordMatchesIdentifier(record, identifier, mediaType)) { if (!recordMatchesIdentifier(record, identifier, mediaType)) {
continue; continue;
} }