Fix bug where exhentai full resolution picture would not be found

pull/17/head
neobooru 2023-12-01 23:00:38 +01:00
parent fa6baa75b7
commit 56c3e78afd
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{
"name": "neo-scraper",
"version": "0.7.2",
"version": "0.7.3",
"description": "Scrape a booru-like post object from the DOM.",
"type": "module",
"main": "dist/index.js",

View File

@ -19,7 +19,7 @@ export default class Ehentai extends ScrapeEngineBase {
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) {
// Set "extra" image url. This URL only gives a good response if the cookies are included.
// This might also only work on certain accounts.