Compare commits

..

No commits in common. "7a1239ae5a144f43b824019fe413ad1bbd680113" and "0bbbe679536b529ac7d7027153d18f8c2477d993" have entirely different histories.

2 changed files with 1 additions and 5 deletions

View file

@ -9,7 +9,3 @@ body.alt_styles-index
.alt-style .alt-style
text-align: center text-align: center
width: 80px width: 80px
.alt-style-thumbnail
width: 80px
height: 80px

View file

@ -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.gsub(/\s+/, '').downcase}_#{species.name.downcase}.gif" "#{color.name.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}