Fix for New e621 Download Button and e6ai Domain Addition
Co-authored-by: Kaias Blackwood <kaias.blackwood@gmail.com>master
parent
eda941d889
commit
fccd1d7cbb
|
|
@ -5,11 +5,11 @@ Scrape a booru-like post object from the DOM.
|
||||||
## Supported sites
|
## Supported sites
|
||||||
|
|
||||||
| Engine | Sites | Features | Notes |
|
| Engine | Sites | Features | Notes |
|
||||||
|---|---|---|---|---|
|
|---|---|---|---|
|
||||||
| animepictures | anime-pictures.net | content, resolution, tags, tag_category | Rating is assumed to be safe. |
|
| animepictures | anime-pictures.net | content, resolution, tags, tag_category | Rating is assumed to be safe. |
|
||||||
| bluesky | bsky.app | content | |
|
| bluesky | bsky.app | content | |
|
||||||
| danbooru | danbooru.donmai.us, safebooru.donmai.us, sonohara.donmai.us, hijiribe.donmai.us | content, rating, resolution, tags, tag_category, source, notes | |
|
| danbooru | danbooru.donmai.us, safebooru.donmai.us, sonohara.donmai.us, hijiribe.donmai.us | content, rating, resolution, tags, tag_category, source, notes | |
|
||||||
| e621 | e621.net, e926.net | content, rating, resolution, tags, tag_category, source | |
|
| e621 | e621.net, e926.net, e6ai.net | content, rating, resolution, tags, tag_category, source | |
|
||||||
| E-hentai | e-hentai.org, exhentai.org | content, resolution, extra_content, cookies | Rating is assumed to be unsafe. |
|
| E-hentai | e-hentai.org, exhentai.org | content, resolution, extra_content, cookies | Rating is assumed to be unsafe. |
|
||||||
| furaffinity | furaffinity.net | content, rating, resolution, tags, tag_category | |
|
| furaffinity | furaffinity.net | content, rating, resolution, tags, tag_category | |
|
||||||
| gelbooru | safebooru.org, gelbooru.com, rule34.xxx, tbib.org, xbooru.com, mspabooru.com, hypnohub.net | content, rating, resolution, tags, tag_category, source, notes | Supported features might vary between hosts. |
|
| gelbooru | safebooru.org, gelbooru.com, rule34.xxx, tbib.org, xbooru.com, mspabooru.com, hypnohub.net | content, rating, resolution, tags, tag_category, source, notes | Supported features might vary between hosts. |
|
||||||
|
|
|
||||||
|
|
@ -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-button") as HTMLAnchorElement;
|
||||||
post.contentUrl = downloadEl?.href;
|
post.contentUrl = downloadEl?.href;
|
||||||
|
|
||||||
// Set content type
|
// Set content type
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue