Skip to content

Commit

Permalink
fix: clean useless words
Browse files Browse the repository at this point in the history
  • Loading branch information
IITII committed Dec 5, 2023
1 parent 4e1fc1b commit 7a8d88e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion libs/download/sites/Eveira.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module.exports = class Eveira extends AbsDownloader {
return {url: el.attribs.href, text: $(el).text()}
}).get(),
tags = urlTextsToAbs(tagsR, original)
const rawImgs = $("#content figure img").map((i, el) => el.attribs['data-src'] || el.attribs['src']).get()
const rawImgs = $("#content .entry-content figure img").map((i, el) => el.attribs['data-src'] || el.attribs['src']).get()
const absImgs = arrToAbsUrl(rawImgs, original),
imgs = uniq(absImgs)
// const imgs = await zipUrlExt(absImgs, getSaveDir(title))
Expand Down
1 change: 1 addition & 0 deletions libs/download/sites/EveiraTags.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ module.exports = class EveiraTags extends AbsDownloader {
const poster = $(el).find('img').get(0)?.attribs['data-src'] || $(el).find('img').get(0)?.attribs.src
let text = $(el).find('img').get(0)
text = text?.attribs.title || text?.attribs.alt
text = text.replace(/Read more about the article/, '').trim()
return {url: el.attribs.href, text, poster}
}).get()
images = uniqUrlTexts(images)
Expand Down

0 comments on commit 7a8d88e

Please sign in to comment.