Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

get poster images 2x as wide for Retina displays

  • Loading branch information...
commit 68d95244f4295eeaf89f14536cb3a1bbfa52fd69 1 parent a7d37d5
@mislav authored
Showing with 3 additions and 3 deletions.
  1. +2 −2 lib/tmdb.rb
  2. +1 −1  spec/lib/tmdb_spec.rb
View
4 lib/tmdb.rb
@@ -141,14 +141,14 @@ def release_date=(date)
def poster_cover
if poster_path
config = Tmdb.configuration
- config.poster_url 185, poster_path
+ config.poster_url 185 * 2, poster_path
end
end
def poster_thumb
if poster_path
config = Tmdb.configuration
- config.poster_url 92, poster_path
+ config.poster_url 92 * 2, poster_path
end
end
View
2  spec/lib/tmdb_spec.rb
@@ -17,7 +17,7 @@
its(:url) { should == 'http://www.themoviedb.org/movie/1075' }
its(:year) { should == 1998 }
its(:poster_cover) {
- should == 'http://cf2.imgobject.com/t/p/w185/7q96evV2xWjvkO4fMdqe8vixKb8.jpg'
+ should == 'http://cf2.imgobject.com/t/p/w500/7q96evV2xWjvkO4fMdqe8vixKb8.jpg'
}
end
Please sign in to comment.
Something went wrong with that request. Please try again.