added error handling for missing group name

This commit is contained in:
Schnitzel5
2025-04-12 19:29:39 +02:00
parent 0ab6b5f05b
commit 6436b7e3f1

View File

@@ -146,7 +146,7 @@ class DefaultExtension extends MProvider {
title = chapter.title; title = chapter.title;
} }
if (chapter.group_name !== "null") { if (chapter.group_name && chapter.group_name !== "null") {
scanlator = chapter.group_name scanlator = chapter.group_name
.toString() .toString()
.replace(/]/g, "") .replace(/]/g, "")