Skip to content

Commit

Permalink
Merge pull request l0o0#19 from smilevent/master
Browse files Browse the repository at this point in the history
更新bilibili作者选择器
  • Loading branch information
l0o0 authored Nov 4, 2020
2 parents 8d096e3 + c4346cd commit ffc92ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion translators/BiliBili.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ function scrape(doc, url) {
if (item.date) {
item.date = ZU.strToISO(item.date);
}
var author = ZU.xpath(doc, "//div[@class='u-info']/div[@class='name']/a[1]");
var author = ZU.xpath(doc, "//div[@class='r-con']//a[contains(@class,'username') or contains(@class,'name-text')]");
if (!author.length) {
author = ZU.xpath(doc, "./div/div[3]/span[4]");
}
Expand Down

0 comments on commit ffc92ba

Please sign in to comment.