diff --git a/src/engines/Moebooru.ts b/src/engines/Moebooru.ts index ff45163..606c66e 100644 --- a/src/engines/Moebooru.ts +++ b/src/engines/Moebooru.ts @@ -67,8 +67,10 @@ export default class Moebooru extends ScrapeEngineBase { if (tagNameElements.length > 1) { // First is "?" - // Second is "actual_tag_name" - tagName = tagNameElements[1].innerText; + // (opt) Second is "+" (when logged in) + // (opt) Third is "-" (when logged in) + // Last is the actual tag name + tagName = tagNameElements[tagNameElements.length - 1].innerText; } else { // Skip if no tag name is found continue;