Skip to content

Commit

Permalink
fix civitai original img
Browse files Browse the repository at this point in the history
  • Loading branch information
fredgido committed Jun 12, 2024
1 parent 637d369 commit afd36dd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/logical/source/extractor/civitai.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ def match?
end

def image_urls
if image_uuid.present? && width.present? && image_name.present?
if image_uuid.present?
["https://image.civitai.com/xG1nkqKTMzGDvpLrqFT7WA/#{image_uuid}/original=true"]
else
[]
Expand Down
2 changes: 1 addition & 1 deletion app/logical/source/url/civitai.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def parse
end

def image_url?
uuid.present? && filename.present?
uuid.present?
end

def page_url
Expand Down

0 comments on commit afd36dd

Please sign in to comment.