mirror of
https://github.com/Wanxp/obsidian-douban.git
synced 2026-04-05 01:28:46 +08:00
fix: mycomment null when custom tags
This commit is contained in:
parent
3ff2b8f4db
commit
fa1d6faed9
@ -133,7 +133,7 @@ export default class DoubanBookLoadHandler extends DoubanAbstractLoadHandler<Dou
|
||||
}
|
||||
|
||||
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) {
|
||||
return comment;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user