mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-09-24 23:12:34 +08:00
fix: Fix the Dribbble urls so that they always work properly, e… (#3580)
This commit is contained in:
@@ -31,11 +31,11 @@ async function ProcessFeed(list, caches) {
|
||||
list.map(async (item) => {
|
||||
const $ = cheerio.load(item);
|
||||
|
||||
const itemUrlPath =
|
||||
$('.animated-target').attr('href') ||
|
||||
$('.extras > a')
|
||||
.attr('href')
|
||||
.replace('/rebounds', '');
|
||||
// the rebounds link is used because all other links in the html could
|
||||
// possibly point to /signup/new when loading the site while not logged in.
|
||||
const itemUrlPath = $('.extras > a')
|
||||
.attr('href')
|
||||
.replace('/rebounds', '');
|
||||
const itemUrl = url.resolve(host, itemUrlPath);
|
||||
|
||||
const team = $('.attribution-team').text() ? ' for ' + $('.attribution-team a.url').text() : '';
|
||||
|
||||
Reference in New Issue
Block a user