[ehentai] handle comments without username

This commit is contained in:
2024-12-12 18:38:41 +08:00
parent 2e89146754
commit 53d7641151
2 changed files with 3 additions and 3 deletions

View File

@@ -7,7 +7,7 @@ class Ehentai extends ComicSource {
// unique id of the source
key = "ehentai"
version = "1.1.0"
version = "1.1.1"
minAppVersion = "1.0.0"
@@ -962,7 +962,7 @@ class Ehentai extends ComicSource {
parseComments: (document) => {
let comments = []
for(let c of document.querySelectorAll('div.c1')) {
let name = c.querySelector('div.c3 > a').text
let name = c.querySelector('div.c3 > a')?.text ?? ""
let time = c.querySelector('div.c3')?.text?.split("Posted on")?.at(1)?.split('by')?.at(0)?.trim() ?? 'unknown'
let content = ''
if(typeof appVersion) {

View File

@@ -45,7 +45,7 @@
"name": "ehentai",
"fileName": "ehentai.js",
"key": "ehentai",
"version": "1.1.0"
"version": "1.1.1"
},
{
"name": "禁漫天堂",