fix: mycomment null when custom tags

This commit is contained in:
niracler 2024-10-01 09:34:50 +08:00
parent 3ff2b8f4db
commit fa1d6faed9
No known key found for this signature in database

@ -133,7 +133,7 @@ export default class DoubanBookLoadHandler extends DoubanAbstractLoadHandler<Dou
} }
private getComment(html: CheerioAPI) { private getComment(html: CheerioAPI) {
let comment = html('span#rating').next().next().next().text().trim(); const comment = html("#interest_sect_level > div > span:last-child").text().trim();
if (comment) { if (comment) {
return comment; return comment;
} }