Strip spaces from thumbnail URLs for colors like Usukiboy
This commit is contained in:
parent
fd729916d7
commit
7a1239ae5a
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@ class AltStyle < ApplicationRecord
|
||||||
# HACK: Just assume this is a Nostalgic Alt Style, and that the thumbnail
|
# HACK: Just assume this is a Nostalgic Alt Style, and that the thumbnail
|
||||||
# is named reliably!
|
# is named reliably!
|
||||||
"https://images.neopets.com/items/nostalgic_" +
|
"https://images.neopets.com/items/nostalgic_" +
|
||||||
"#{color.name.downcase}_#{species.name.downcase}.gif"
|
"#{color.name.gsub(/\s+/, '').downcase}_#{species.name.downcase}.gif"
|
||||||
end
|
end
|
||||||
|
|
||||||
MANIFEST_PATTERN = %r{^https://images.neopets.com/(?<prefix>.+)/(?<id>[0-9]+)(?<hash_part>_[^/]+)?/manifest\.json}
|
MANIFEST_PATTERN = %r{^https://images.neopets.com/(?<prefix>.+)/(?<id>[0-9]+)(?<hash_part>_[^/]+)?/manifest\.json}
|
||||||
|
|
Loading…
Reference in a new issue