rollback
parent
ca7f55a9aa
commit
1015a4c326
|
|
@ -16,8 +16,7 @@ export default class e621 implements ScrapeEngine {
|
||||||
|
|
||||||
// Set image url
|
// Set image url
|
||||||
const downloadEl = document.querySelector("#image-download-link > a") as HTMLAnchorElement;
|
const downloadEl = document.querySelector("#image-download-link > a") as HTMLAnchorElement;
|
||||||
// e926 doesnt allow downloads from direct links for some reason. so as a workaround we are using the e621 mirror; theirfor replacing
|
post.contentUrl = downloadEl?.href;
|
||||||
post.contentUrl = downloadEl?.href.replace(/\.e926\.net\/data/, '.e621.net/data');
|
|
||||||
|
|
||||||
if (post.contentUrl == undefined) {
|
if (post.contentUrl == undefined) {
|
||||||
return result;
|
return result;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue