Fix bug where exhentai full resolution picture would not be found
parent
fa6baa75b7
commit
56c3e78afd
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "neo-scraper",
|
"name": "neo-scraper",
|
||||||
"version": "0.7.2",
|
"version": "0.7.3",
|
||||||
"description": "Scrape a booru-like post object from the DOM.",
|
"description": "Scrape a booru-like post object from the DOM.",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ export default class Ehentai extends ScrapeEngineBase {
|
||||||
post.contentUrl = imgUrl.src;
|
post.contentUrl = imgUrl.src;
|
||||||
}
|
}
|
||||||
|
|
||||||
const originalSourceUrl = document.querySelector("a[href*='fullimg.php']") as HTMLAnchorElement;
|
const originalSourceUrl = document.querySelector("a[href*='fullimg']") as HTMLAnchorElement;
|
||||||
if (originalSourceUrl) {
|
if (originalSourceUrl) {
|
||||||
// Set "extra" image url. This URL only gives a good response if the cookies are included.
|
// Set "extra" image url. This URL only gives a good response if the cookies are included.
|
||||||
// This might also only work on certain accounts.
|
// This might also only work on certain accounts.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue