Skip to content

Commit

Permalink
修复豆列抓取电影和读书。
Browse files Browse the repository at this point in the history
  • Loading branch information
018 committed Aug 5, 2020
1 parent d327019 commit 848b8f1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Douban.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"inRepository": true,
"translatorType": 4,
"browserSupport": "gcsibv",
"lastUpdated": "2020-08-03 18:34:25"
"lastUpdated": "2020-08-05 09:11:31"
}

/*
Expand Down Expand Up @@ -197,7 +197,8 @@ function getSearchResults(doc, url, checkOnly) {
}, (row) => {
return (text(row, 'span.rating_nums+span')||'').match(/\d+/);
}, (row) => {
return text(row, 'div.source').includes('豆瓣读书');
let source = text(row, 'div.source');
return source.includes('豆瓣读书') || source.includes('豆瓣电影');
});
}
else if (url.includes('book.douban.com/tag')
Expand Down

0 comments on commit 848b8f1

Please sign in to comment.