gelbooru: fix exception in md5-based post urls.
Fix exception when trying to get the image URL for sources like https://gelbooru.com/index.php?page=post&s=list&md5=04f2767c64593c3030ce74ecc2528704.
This commit is contained in:
@@ -59,7 +59,7 @@ module Source
|
||||
end
|
||||
|
||||
memoize def post_id_from_md5
|
||||
return nil unless parsed_url.image_url? && parsed_url.page_url.present?
|
||||
return nil unless parsed_url.page_url.present?
|
||||
|
||||
response = http.cache(1.minute).head(parsed_url.page_url)
|
||||
return nil unless response.status == 200
|
||||
|
||||
Reference in New Issue
Block a user