Skip to content

Commit

Permalink
Handle scrapers disappearing
Browse files Browse the repository at this point in the history
Closes #98
  • Loading branch information
Earlopain committed Sep 30, 2023
1 parent 33534be commit f208874
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
16 changes: 0 additions & 16 deletions app/logical/sites/manual_definition.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,6 @@ def submission_url(submission)
submission.identifier_on_site
end

def missing_config_keys
[]
end

def cached_values
{}
end

def manually_disabled?
false
end

def scraper_enabled?
false
end

def match_for_gallery(_uri)
# Do nothing
end
Expand Down
16 changes: 16 additions & 0 deletions app/logical/sites/simple_definition.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,21 @@ def icon_class
def gallery_url(identifier)
"https://#{gallery_templates.first.expand(site_artist_identifier: identifier)}"
end

def missing_config_keys
[]
end

def cached_values
{}
end

def manually_disabled?
false
end

def scraper_enabled?
false
end
end
end

0 comments on commit f208874

Please sign in to comment.