Fixed image download link issue. Added support for e9ai domain.
parent
c1f8399416
commit
7b3ac61156
|
|
@ -5,7 +5,7 @@ export default class e621 extends ScrapeEngineBase {
|
||||||
name = "e621";
|
name = "e621";
|
||||||
features: ScrapeEngineFeature[] = ["content", "rating", "resolution", "tags", "tag_category", "source"];
|
features: ScrapeEngineFeature[] = ["content", "rating", "resolution", "tags", "tag_category", "source"];
|
||||||
notes = [];
|
notes = [];
|
||||||
supportedHosts = ["e621.net", "e926.net"];
|
supportedHosts = ["e621.net", "e926.net", "e6ai.net"];
|
||||||
|
|
||||||
scrapeDocument(document: Document): ScrapeResult {
|
scrapeDocument(document: Document): ScrapeResult {
|
||||||
const result = new ScrapeResult(this.name);
|
const result = new ScrapeResult(this.name);
|
||||||
|
|
@ -13,7 +13,7 @@ export default class e621 extends ScrapeEngineBase {
|
||||||
post.pageUrl = document.location.href;
|
post.pageUrl = document.location.href;
|
||||||
|
|
||||||
// Set image url
|
// Set image url
|
||||||
const downloadEl = document.querySelector("#image-download-link > a") as HTMLAnchorElement;
|
const downloadEl = document.querySelector(".ptbr-fullscreen > a") as HTMLAnchorElement;
|
||||||
post.contentUrl = downloadEl?.href;
|
post.contentUrl = downloadEl?.href;
|
||||||
|
|
||||||
// Set content type
|
// Set content type
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue