mirror of
https://github.com/venera-app/venera-configs.git
synced 2025-09-27 16:37:23 +00:00
[ehentai] handle comments without username
This commit is contained in:
@@ -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) {
|
||||
|
@@ -45,7 +45,7 @@
|
||||
"name": "ehentai",
|
||||
"fileName": "ehentai.js",
|
||||
"key": "ehentai",
|
||||
"version": "1.1.0"
|
||||
"version": "1.1.1"
|
||||
},
|
||||
{
|
||||
"name": "禁漫天堂",
|
||||
|
Reference in New Issue
Block a user