Skip to content

Commit

Permalink
Skip admin notices when parsing system errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Deer-Spangle authored Aug 29, 2024
1 parent 35a9cdd commit 439c409
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/faexport/scraper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1416,7 +1416,7 @@ def check_errors(html, url)
end

# Handle "system message" type errors
maintable_head = html.at_css("table.maintable td.cat")
maintable_head = html.at_css("table.maintable:not(#admin_notice_do_not_adblock) td.cat")
if !maintable_head.nil? && maintable_head.content.strip == "System Message"
maintable_content = html.at_css("table.maintable td.alt1").content
# Handle disabled accounts
Expand Down

0 comments on commit 439c409

Please sign in to comment.