Skip to content

Commit

Permalink
[ehentai] handle comments without username
Browse files Browse the repository at this point in the history
  • Loading branch information
wgh136 committed Dec 12, 2024
1 parent 2e89146 commit 53d7641
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ehentai.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion index.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"name": "ehentai",
"fileName": "ehentai.js",
"key": "ehentai",
"version": "1.1.0"
"version": "1.1.1"
},
{
"name": "禁漫天堂",
Expand Down

0 comments on commit 53d7641

Please sign in to comment.