play-tmdb 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.gitignore +4 -0
- data/Gemfile +4 -0
- data/README +0 -0
- data/Rakefile +7 -0
- data/lib/play-tmdb/base.rb +86 -0
- data/lib/play-tmdb/movie.rb +30 -0
- data/lib/play-tmdb/version.rb +5 -0
- data/lib/play-tmdb.rb +8 -0
- data/play-tmdb.gemspec +30 -0
- data/spec/fixtures/blank_result.txt +15 -0
- data/spec/fixtures/example_com.txt +25 -0
- data/spec/fixtures/frankenweenie.txt +15 -0
- data/spec/fixtures/image.jpg +0 -0
- data/spec/fixtures/incorrect_api_url.txt +13 -0
- data/spec/fixtures/movie_browse.txt +15 -0
- data/spec/fixtures/movie_get_info.txt +15 -0
- data/spec/fixtures/movie_imdb_lookup.txt +15 -0
- data/spec/fixtures/person_get_info.txt +15 -0
- data/spec/fixtures/person_search.txt +15 -0
- data/spec/lib/play-tmdb/play_tmdb_base_spec.rb +99 -0
- data/spec/lib/play-tmdb/play_tmdb_movie_spec.rb +31 -0
- data/spec/spec_helper.rb +3 -0
- metadata +133 -0
    
        data/.gitignore
    ADDED
    
    
    
        data/Gemfile
    ADDED
    
    
    
        data/README
    ADDED
    
    | 
            File without changes
         | 
    
        data/Rakefile
    ADDED
    
    
| @@ -0,0 +1,86 @@ | |
| 1 | 
            +
            require 'net/http'
         | 
| 2 | 
            +
            require 'uri'
         | 
| 3 | 
            +
            require 'cgi'
         | 
| 4 | 
            +
            require 'json'
         | 
| 5 | 
            +
            require 'deepopenstruct'
         | 
| 6 | 
            +
            require "addressable/uri"
         | 
| 7 | 
            +
             | 
| 8 | 
            +
            module Play
         | 
| 9 | 
            +
              module Tmdb
         | 
| 10 | 
            +
                class Base
         | 
| 11 | 
            +
                  def self.default_options
         | 
| 12 | 
            +
                    {
         | 
| 13 | 
            +
                        api_key: "",
         | 
| 14 | 
            +
                        language: "en"
         | 
| 15 | 
            +
                    }
         | 
| 16 | 
            +
                  end
         | 
| 17 | 
            +
             | 
| 18 | 
            +
                  @@options = Tmdb::Base.default_options
         | 
| 19 | 
            +
                  @@base_url = "http://api.themoviedb.org/3/"
         | 
| 20 | 
            +
             | 
| 21 | 
            +
                  # Injecting accessors to each @@options key
         | 
| 22 | 
            +
             | 
| 23 | 
            +
                  class_eval "default_options.each do |k,v|
         | 
| 24 | 
            +
                    class_eval\"
         | 
| 25 | 
            +
                      def self.\#{k}=(\#{k})
         | 
| 26 | 
            +
                        @@options[:\#{k}]=\#{k}
         | 
| 27 | 
            +
                      end
         | 
| 28 | 
            +
             | 
| 29 | 
            +
                      def self.\#{k}
         | 
| 30 | 
            +
                        @@options[:\#{k}]
         | 
| 31 | 
            +
                      end
         | 
| 32 | 
            +
                    \"
         | 
| 33 | 
            +
                  end"
         | 
| 34 | 
            +
             | 
| 35 | 
            +
                  def self.options=(options)
         | 
| 36 | 
            +
                    @@options=options
         | 
| 37 | 
            +
                  end
         | 
| 38 | 
            +
             | 
| 39 | 
            +
                  def self.options
         | 
| 40 | 
            +
                    @@options
         | 
| 41 | 
            +
                  end
         | 
| 42 | 
            +
             | 
| 43 | 
            +
                  def self.base_url
         | 
| 44 | 
            +
                    @@base_url
         | 
| 45 | 
            +
                  end
         | 
| 46 | 
            +
             | 
| 47 | 
            +
                  # Get a URL and return a response object, follow upto 'limit' re-directs on the way
         | 
| 48 | 
            +
                  def self.get_url(uri_str, limit = 10)
         | 
| 49 | 
            +
                    return false if limit == 0
         | 
| 50 | 
            +
                    begin
         | 
| 51 | 
            +
                      response = Net::HTTP.get_response(URI.parse(uri_str))
         | 
| 52 | 
            +
                    rescue SocketError, Errno::ENETDOWN
         | 
| 53 | 
            +
                      response = Net::HTTPBadRequest.new('404', 404, "Not Found")
         | 
| 54 | 
            +
                      return response
         | 
| 55 | 
            +
                    end
         | 
| 56 | 
            +
                    case response
         | 
| 57 | 
            +
                      when Net::HTTPSuccess then
         | 
| 58 | 
            +
                        response
         | 
| 59 | 
            +
                      when Net::HTTPRedirection then
         | 
| 60 | 
            +
                        get_url(response['location'], limit - 1)
         | 
| 61 | 
            +
                      else
         | 
| 62 | 
            +
                        Net::HTTPBadRequest.new('404', 404, "Not Found")
         | 
| 63 | 
            +
                    end
         | 
| 64 | 
            +
                  end
         | 
| 65 | 
            +
             | 
| 66 | 
            +
                  def self.api_call(method, params = {})
         | 
| 67 | 
            +
                    raise ArgumentError.new("api method is required") if method.empty?
         | 
| 68 | 
            +
             | 
| 69 | 
            +
                    url = build_api_url(method, params)
         | 
| 70 | 
            +
                    response = Play::Tmdb::Base.get_url(url)
         | 
| 71 | 
            +
             | 
| 72 | 
            +
                    body = JSON(response.body)
         | 
| 73 | 
            +
                    OpenStruct.new body
         | 
| 74 | 
            +
                  end
         | 
| 75 | 
            +
             | 
| 76 | 
            +
                  private
         | 
| 77 | 
            +
                  def self.build_api_url(method, params)
         | 
| 78 | 
            +
                    base_url + method + "?" + build_params_of_url(params)
         | 
| 79 | 
            +
                  end
         | 
| 80 | 
            +
             | 
| 81 | 
            +
                  def self.build_params_of_url(params)
         | 
| 82 | 
            +
                    options.merge(params).collect { |key, value| "#{key}=#{value}" }.join("&")
         | 
| 83 | 
            +
                  end
         | 
| 84 | 
            +
                end
         | 
| 85 | 
            +
              end
         | 
| 86 | 
            +
            end
         | 
| @@ -0,0 +1,30 @@ | |
| 1 | 
            +
            module Play
         | 
| 2 | 
            +
              module Tmdb
         | 
| 3 | 
            +
                class Movie
         | 
| 4 | 
            +
                  def self.new(raw_data, fetch_all_data = false, language = nil)
         | 
| 5 | 
            +
                    # expand the result by calling Movie.getInfo unless :expand_results is false or the data is already complete
         | 
| 6 | 
            +
                    # (as determined by checking for the trailer property in the raw data)
         | 
| 7 | 
            +
             | 
| 8 | 
            +
                    if (fetch_all_data)
         | 
| 9 | 
            +
                      #Call getInfo
         | 
| 10 | 
            +
                    end
         | 
| 11 | 
            +
             | 
| 12 | 
            +
                    DeepOpenStruct.load(raw_data)
         | 
| 13 | 
            +
                  end
         | 
| 14 | 
            +
             | 
| 15 | 
            +
                  def self.search(params={})
         | 
| 16 | 
            +
                    if !params[:query] or params[:query].empty?
         | 
| 17 | 
            +
                      raise ArgumentError.new("query param is required")
         | 
| 18 | 
            +
                    end
         | 
| 19 | 
            +
             | 
| 20 | 
            +
                    body = Play::Tmdb::Base.api_call("search/movie", params)
         | 
| 21 | 
            +
             | 
| 22 | 
            +
                    results = body.results.map do |r|
         | 
| 23 | 
            +
                      new(r)
         | 
| 24 | 
            +
                    end
         | 
| 25 | 
            +
             | 
| 26 | 
            +
                    results
         | 
| 27 | 
            +
                  end
         | 
| 28 | 
            +
                end
         | 
| 29 | 
            +
              end
         | 
| 30 | 
            +
            end
         | 
    
        data/lib/play-tmdb.rb
    ADDED
    
    
    
        data/play-tmdb.gemspec
    ADDED
    
    | @@ -0,0 +1,30 @@ | |
| 1 | 
            +
            # -*- encoding: utf-8 -*-
         | 
| 2 | 
            +
            $:.push File.expand_path("../lib", __FILE__)
         | 
| 3 | 
            +
            require 'play-tmdb/version'
         | 
| 4 | 
            +
             | 
| 5 | 
            +
            Gem::Specification.new do |s|
         | 
| 6 | 
            +
              s.name = "play-tmdb"
         | 
| 7 | 
            +
              s.version = Play::Tmdb::VERSION
         | 
| 8 | 
            +
              s.authors = ["Halisson Bruno Vitor"]
         | 
| 9 | 
            +
              s.email = ["halissonvit@gmail.com"]
         | 
| 10 | 
            +
              s.homepage = "http://github.com/halissonvit/play-tmdb"
         | 
| 11 | 
            +
              s.summary = %q{A tmdb api wrapper}
         | 
| 12 | 
            +
              s.description = %q{Play with the tmdb api.}
         | 
| 13 | 
            +
             | 
| 14 | 
            +
              s.rubyforge_project = "play-tmdb"
         | 
| 15 | 
            +
             | 
| 16 | 
            +
              s.files = `git ls-files`.split("\n")
         | 
| 17 | 
            +
              s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
         | 
| 18 | 
            +
              s.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) }
         | 
| 19 | 
            +
              s.require_paths = ["lib"]
         | 
| 20 | 
            +
             | 
| 21 | 
            +
              # specify any dependencies here; for example:
         | 
| 22 | 
            +
              s.add_development_dependency "rake"
         | 
| 23 | 
            +
              s.add_development_dependency "rspec"
         | 
| 24 | 
            +
              # s.add_runtime_dependency "rest-client"
         | 
| 25 | 
            +
             | 
| 26 | 
            +
              s.add_runtime_dependency(%q<deepopenstruct>, [">= 0.1.2"])
         | 
| 27 | 
            +
              s.add_runtime_dependency(%q<json>, [">= 0"])
         | 
| 28 | 
            +
              s.add_runtime_dependency(%q<addressable>, [">= 0"])
         | 
| 29 | 
            +
              s.add_development_dependency(%q<webmock>, [">= 0"])
         | 
| 30 | 
            +
            end
         | 
| @@ -0,0 +1,15 @@ | |
| 1 | 
            +
            HTTP/1.1 200 OK
         | 
| 2 | 
            +
            Server: nginx
         | 
| 3 | 
            +
            Date: Mon, 23 Aug 2010 16:46:40 GMT
         | 
| 4 | 
            +
            Content-Type: text/json; charset=utf-8
         | 
| 5 | 
            +
            Transfer-Encoding: chunked
         | 
| 6 | 
            +
            Connection: keep-alive
         | 
| 7 | 
            +
            Keep-Alive: timeout=20
         | 
| 8 | 
            +
            Status: 200 OK
         | 
| 9 | 
            +
            Cache-Control: public, max-age=21600
         | 
| 10 | 
            +
            X-Varnish: 2542133049
         | 
| 11 | 
            +
            Age: 0
         | 
| 12 | 
            +
            Via: 1.1 varnish
         | 
| 13 | 
            +
            X-Cache: MISS
         | 
| 14 | 
            +
             | 
| 15 | 
            +
            {"page":1,"results":[],"total_pages":0,"total_results":0}
         | 
| @@ -0,0 +1,25 @@ | |
| 1 | 
            +
            HTTP/1.1 200 OK
         | 
| 2 | 
            +
            Server: Apache/2.2.3 (CentOS)
         | 
| 3 | 
            +
            Last-Modified: Tue, 15 Nov 2005 13:24:10 GMT
         | 
| 4 | 
            +
            ETag: "24ec5-1b6-4059a80bfd280"
         | 
| 5 | 
            +
            Accept-Ranges: bytes
         | 
| 6 | 
            +
            Content-Type: text/html; charset=UTF-8
         | 
| 7 | 
            +
            Connection: Keep-Alive
         | 
| 8 | 
            +
            Date: Sun, 16 May 2010 19:01:25 GMT
         | 
| 9 | 
            +
            Age: 6053   
         | 
| 10 | 
            +
            Content-Length: 438
         | 
| 11 | 
            +
             | 
| 12 | 
            +
            <HTML>
         | 
| 13 | 
            +
            <HEAD>
         | 
| 14 | 
            +
              <TITLE>Example Web Page</TITLE>
         | 
| 15 | 
            +
            </HEAD> 
         | 
| 16 | 
            +
            <body>  
         | 
| 17 | 
            +
            <p>You have reached this web page by typing "example.com",
         | 
| 18 | 
            +
            "example.net",
         | 
| 19 | 
            +
              or "example.org" into your web browser.</p>
         | 
| 20 | 
            +
            <p>These domain names are reserved for use in documentation and are not available 
         | 
| 21 | 
            +
              for registration. See <a href="http://www.rfc-editor.org/rfc/rfc2606.txt">RFC 
         | 
| 22 | 
            +
              2606</a>, Section 3.</p>
         | 
| 23 | 
            +
            </BODY>
         | 
| 24 | 
            +
            </HTML>
         | 
| 25 | 
            +
             | 
| @@ -0,0 +1,15 @@ | |
| 1 | 
            +
            HTTP/1.1 200 OK
         | 
| 2 | 
            +
            Server: nginx
         | 
| 3 | 
            +
            Date: Mon, 23 Aug 2010 16:42:39 GMT
         | 
| 4 | 
            +
            Content-Type: text/json; charset=utf-8
         | 
| 5 | 
            +
            Transfer-Encoding: chunked
         | 
| 6 | 
            +
            Connection: keep-alive
         | 
| 7 | 
            +
            Keep-Alive: timeout=20
         | 
| 8 | 
            +
            Status: 200 OK
         | 
| 9 | 
            +
            Cache-Control: public, max-age=21600
         | 
| 10 | 
            +
            X-Varnish: 2542116501
         | 
| 11 | 
            +
            Age: 0
         | 
| 12 | 
            +
            Via: 1.1 varnish
         | 
| 13 | 
            +
            X-Cache: MISS
         | 
| 14 | 
            +
             | 
| 15 | 
            +
            {"page":1,"results":[{"backdrop_path":"/L4SsHfdYkuFNgpjYj8ByjJRAcI.jpg","id":62214,"original_title":"Frankenweenie","release_date":"2012-10-05","popularity":1.686,"poster_path":"/sn5V6z2RRKujHGthAGjdl3Evzj0.jpg","title":"Frankenweenie"},{"backdrop_path":"/Ae2mNjaNPmtvkiorYO9MVY9prdg.jpg","id":33914,"original_title":"Frankenweenie","release_date":"1984-12-14","popularity":0.08,"poster_path":"/gGK2SZX2kExXg4y97FlZ4pvekCz.jpg","title":"Frankenweenie"}],"total_pages":1,"total_results":2}
         | 
| Binary file | 
| @@ -0,0 +1,13 @@ | |
| 1 | 
            +
            HTTP/1.1 404 Not Found
         | 
| 2 | 
            +
            Status: 404 Not Found
         | 
| 3 | 
            +
            Content-Type: text/html
         | 
| 4 | 
            +
            X-Cascade: pass
         | 
| 5 | 
            +
            Content-Length: 18
         | 
| 6 | 
            +
            Date: Sun, 16 May 2010 19:07:32 GMT
         | 
| 7 | 
            +
            X-Varnish: 4026308020 4014879260
         | 
| 8 | 
            +
            Age: 8217
         | 
| 9 | 
            +
            Via: 1.1 varnish
         | 
| 10 | 
            +
            Connection: keep-alive
         | 
| 11 | 
            +
            X-Cache: HIT
         | 
| 12 | 
            +
             | 
| 13 | 
            +
            <h1>Not Found</h1>
         | 
| @@ -0,0 +1,15 @@ | |
| 1 | 
            +
            HTTP/1.1 200 OK
         | 
| 2 | 
            +
            Server: nginx
         | 
| 3 | 
            +
            Date: Mon, 23 Aug 2010 16:42:39 GMT
         | 
| 4 | 
            +
            Content-Type: text/json; charset=utf-8
         | 
| 5 | 
            +
            Transfer-Encoding: chunked
         | 
| 6 | 
            +
            Connection: keep-alive
         | 
| 7 | 
            +
            Keep-Alive: timeout=20
         | 
| 8 | 
            +
            Status: 200 OK
         | 
| 9 | 
            +
            Cache-Control: public, max-age=21600
         | 
| 10 | 
            +
            X-Varnish: 2542116501
         | 
| 11 | 
            +
            Age: 0
         | 
| 12 | 
            +
            Via: 1.1 varnish
         | 
| 13 | 
            +
            X-Cache: MISS
         | 
| 14 | 
            +
             | 
| 15 | 
            +
            [{"score":null,"popularity":3,"translated":true,"adult":false,"language":"en","original_name":"When The Sun Goes Down","name":"When The Sun Goes Down","alternative_name":null,"movie_type":"movie","id":29734,"imdb_id":"tt1525907","url":"http://www.themoviedb.org/movie/29734","votes":5,"rating":9.8,"certification":"","overview":"No overview found.","released":"2005-01-05","posters":[{"image":{"type":"poster","size":"original","height":1500,"width":1000,"url":"http://hwcdn.themoviedb.org/posters/01e/4bc97392017a3c57fe03501e/when-the-sun-goes-down-original.jpg","id":"4bc97392017a3c57fe03501e"}},{"image":{"type":"poster","size":"mid","height":750,"width":500,"url":"http://hwcdn.themoviedb.org/posters/01e/4bc97392017a3c57fe03501e/when-the-sun-goes-down-mid.jpg","id":"4bc97392017a3c57fe03501e"}},{"image":{"type":"poster","size":"cover","height":278,"width":185,"url":"http://hwcdn.themoviedb.org/posters/01e/4bc97392017a3c57fe03501e/when-the-sun-goes-down-cover.jpg","id":"4bc97392017a3c57fe03501e"}},{"image":{"type":"poster","size":"thumb","height":138,"width":92,"url":"http://hwcdn.themoviedb.org/posters/01e/4bc97392017a3c57fe03501e/when-the-sun-goes-down-thumb.jpg","id":"4bc97392017a3c57fe03501e"}}],"backdrops":[{"image":{"type":"backdrop","size":"original","height":720,"width":1280,"url":"http://hwcdn.themoviedb.org/backdrops/01a/4bc97392017a3c57fe03501a/when-the-sun-goes-down-original.jpg","id":"4bc97392017a3c57fe03501a"}},{"image":{"type":"backdrop","size":"poster","height":439,"width":780,"url":"http://hwcdn.themoviedb.org/backdrops/01a/4bc97392017a3c57fe03501a/when-the-sun-goes-down-poster.jpg","id":"4bc97392017a3c57fe03501a"}},{"image":{"type":"backdrop","size":"thumb","height":169,"width":300,"url":"http://hwcdn.themoviedb.org/backdrops/01a/4bc97392017a3c57fe03501a/when-the-sun-goes-down-thumb.jpg","id":"4bc97392017a3c57fe03501a"}}],"version":9,"last_modified_at":"2010-08-27 08:59:58"},{"score":null,"popularity":3,"translated":true,"adult":false,"language":"en","original_name":"Frankie and Johnny","name":"Frankie and Johnny","alternative_name":"Paura d'amare","movie_type":"movie","id":3784,"imdb_id":"tt0101912","url":"http://www.themoviedb.org/movie/3784","votes":5,"rating":9.6,"certification":"","overview":"Garry Marshall (Pretty Woman) directs the screen adaptation of Terence McNally's play Frankie and Johnny at the Clair de Lune, the story of a short-order cook (Al Pacino) who drives a waitress (Michelle Pfeiffer) crazy with his adamant courtship and mixed messages. The film is okay and not much more than that, the major stumbling block being Marshall's failure to scrub away enough star veneer on Pacino and Pfeiffer to accept them as minimum-wage drones with nowhere to go but toward each other. Fortunately, Marshall's feel for the texture offered by supporting players--Hector Elizondo as a caf\u00e9 owner, Nathan Lane as Pfeiffer's inevitably gay neighbour-buddy, Kate Nelligan as another lonely waitress--keeps things interesting enough.","released":"1991-10-18","posters":[{"image":{"type":"poster","size":"original","height":1450,"width":1021,"url":"http://hwcdn.themoviedb.org/posters/051/4c614eaa5e73d63c86000051/frankie-and-johnny-original.jpg","id":"4c614eaa5e73d63c86000051"}},{"image":{"type":"poster","size":"mid","height":710,"width":500,"url":"http://hwcdn.themoviedb.org/posters/051/4c614eaa5e73d63c86000051/frankie-and-johnny-mid.jpg","id":"4c614eaa5e73d63c86000051"}},{"image":{"type":"poster","size":"cover","height":263,"width":185,"url":"http://hwcdn.themoviedb.org/posters/051/4c614eaa5e73d63c86000051/frankie-and-johnny-cover.jpg","id":"4c614eaa5e73d63c86000051"}},{"image":{"type":"poster","size":"thumb","height":131,"width":92,"url":"http://hwcdn.themoviedb.org/posters/051/4c614eaa5e73d63c86000051/frankie-and-johnny-thumb.jpg","id":"4c614eaa5e73d63c86000051"}}],"backdrops":[{"image":{"type":"backdrop","size":"original","height":720,"width":1280,"url":"http://hwcdn.themoviedb.org/backdrops/c9e/4bc9197b017a3c57fe009c9e/frankie-and-johnny-original.jpg","id":"4bc9197b017a3c57fe009c9e"}},{"image":{"type":"backdrop","size":"poster","height":439,"width":780,"url":"http://hwcdn.themoviedb.org/backdrops/c9e/4bc9197b017a3c57fe009c9e/frankie-and-johnny-poster.jpg","id":"4bc9197b017a3c57fe009c9e"}},{"image":{"type":"backdrop","size":"thumb","height":169,"width":300,"url":"http://hwcdn.themoviedb.org/backdrops/c9e/4bc9197b017a3c57fe009c9e/frankie-and-johnny-thumb.jpg","id":"4bc9197b017a3c57fe009c9e"}}],"version":36,"last_modified_at":"2010-08-18 22:47:39"},{"score":null,"popularity":3,"translated":true,"adult":false,"language":"en","original_name":"The Kite Runner","name":"The Kite Runner","alternative_name":"Les Cerfs-volants de Kaboul","movie_type":"movie","id":7979,"imdb_id":"tt0419887","url":"http://www.themoviedb.org/movie/7979","votes":5,"rating":9.6,"certification":"","overview":"The Kite Runner is the story of strained family relationships between a father and a son, and between two brothers, how they deal with guilt and forgiveness, and how they weather the political and social transformations of Afghanistan from the 1970s to 2001. ","released":"2007-10-14","posters":[{"image":{"type":"poster","size":"original","height":1500,"width":1013,"url":"http://hwcdn.themoviedb.org/posters/f30/4bffc4a2017a3c7031000f30/the-kite-runner-original.jpg","id":"4bffc4a2017a3c7031000f30"}},{"image":{"type":"poster","size":"mid","height":740,"width":500,"url":"http://hwcdn.themoviedb.org/posters/f30/4bffc4a2017a3c7031000f30/the-kite-runner-mid.jpg","id":"4bffc4a2017a3c7031000f30"}},{"image":{"type":"poster","size":"cover","height":274,"width":185,"url":"http://hwcdn.themoviedb.org/posters/f30/4bffc4a2017a3c7031000f30/the-kite-runner-cover.jpg","id":"4bffc4a2017a3c7031000f30"}},{"image":{"type":"poster","size":"thumb","height":136,"width":92,"url":"http://hwcdn.themoviedb.org/posters/f30/4bffc4a2017a3c7031000f30/the-kite-runner-thumb.jpg","id":"4bffc4a2017a3c7031000f30"}}],"backdrops":[{"image":{"type":"backdrop","size":"original","height":1080,"width":1920,"url":"http://hwcdn.themoviedb.org/backdrops/9a3/4bc91fd7017a3c57fe00c9a3/the-kite-runner-original.jpg","id":"4bc91fd7017a3c57fe00c9a3"}},{"image":{"type":"backdrop","size":"poster","height":439,"width":780,"url":"http://hwcdn.themoviedb.org/backdrops/9a3/4bc91fd7017a3c57fe00c9a3/the-kite-runner-poster.jpg","id":"4bc91fd7017a3c57fe00c9a3"}},{"image":{"type":"backdrop","size":"thumb","height":169,"width":300,"url":"http://hwcdn.themoviedb.org/backdrops/9a3/4bc91fd7017a3c57fe00c9a3/the-kite-runner-thumb.jpg","id":"4bc91fd7017a3c57fe00c9a3"}}],"version":21,"last_modified_at":"2010-08-18 22:41:46"},{"score":null,"popularity":3,"translated":true,"adult":false,"language":"en","original_name":"The Last Emperor","name":"The Last Emperor","alternative_name":"L'Ultimo Imperatore","movie_type":"movie","id":746,"imdb_id":"tt0093389","url":"http://www.themoviedb.org/movie/746","votes":5,"rating":9.4,"certification":"","overview":"The Last Emeror is a monumental film about the life of the last emperor of the Chinese Quinn dynasty. Director Bertolucci illustrates the life of Pu-Yi who was crowned emperor at the age of two only to loose it at the age of five. The film won a total of nine Oscars in 1987.","released":"1987-10-29","posters":[{"image":{"type":"poster","size":"original","height":1500,"width":1000,"url":"http://hwcdn.themoviedb.org/posters/21c/4bc90bc1017a3c57fe00421c/the-last-emperor-original.jpg","id":"4bc90bc1017a3c57fe00421c"}},{"image":{"type":"poster","size":"mid","height":750,"width":500,"url":"http://hwcdn.themoviedb.org/posters/21c/4bc90bc1017a3c57fe00421c/the-last-emperor-mid.jpg","id":"4bc90bc1017a3c57fe00421c"}},{"image":{"type":"poster","size":"cover","height":278,"width":185,"url":"http://hwcdn.themoviedb.org/posters/21c/4bc90bc1017a3c57fe00421c/the-last-emperor-cover.jpg","id":"4bc90bc1017a3c57fe00421c"}},{"image":{"type":"poster","size":"thumb","height":138,"width":92,"url":"http://hwcdn.themoviedb.org/posters/21c/4bc90bc1017a3c57fe00421c/the-last-emperor-thumb.jpg","id":"4bc90bc1017a3c57fe00421c"}}],"backdrops":[{"image":{"type":"backdrop","size":"original","height":720,"width":1280,"url":"http://hwcdn.themoviedb.org/backdrops/213/4bc90bc0017a3c57fe004213/the-last-emperor-original.jpg","id":"4bc90bc0017a3c57fe004213"}},{"image":{"type":"backdrop","size":"poster","height":439,"width":780,"url":"http://hwcdn.themoviedb.org/backdrops/213/4bc90bc0017a3c57fe004213/the-last-emperor-poster.jpg","id":"4bc90bc0017a3c57fe004213"}},{"image":{"type":"backdrop","size":"thumb","height":169,"width":300,"url":"http://hwcdn.themoviedb.org/backdrops/213/4bc90bc0017a3c57fe004213/the-last-emperor-thumb.jpg","id":"4bc90bc0017a3c57fe004213"}}],"version":37,"last_modified_at":"2010-10-27 02:02:52"},{"score":null,"popularity":3,"translated":true,"adult":false,"language":"en","original_name":"Das Verlangen","name":"Das Verlangen","alternative_name":null,"movie_type":"movie","id":6179,"imdb_id":"tt0328727","url":"http://www.themoviedb.org/movie/6179","votes":5,"rating":9.2,"certification":"","overview":"No overview found.","released":"2002-08-08","posters":[],"backdrops":[],"version":19,"last_modified_at":"2010-08-18 22:50:41"},{"score":null,"popularity":3,"translated":true,"adult":false,"language":"en","original_name":"Elephant","name":"Elephant","alternative_name":null,"movie_type":"movie","id":1807,"imdb_id":"tt0363589","url":"http://www.themoviedb.org/movie/1807","votes":5,"rating":9.2,"certification":"","overview":"Elephant is a Gus Van Sant film depicting the story of a high school just before and after a massive shooting. The film is shot in a way that makes the viewer seem like they are there, in the high school, slowly walking around witnessing ever characters story unfold. The film won the Palme d\u2019Or and Best Director at the 2003 Cannes Film Festival.","released":"2003-05-18","posters":[{"image":{"type":"poster","size":"original","height":1500,"width":1000,"url":"http://hwcdn.themoviedb.org/posters/015/4c1f544a7b9aa13123000015/elephant-original.jpg","id":"4c1f544a7b9aa13123000015"}},{"image":{"type":"poster","size":"mid","height":750,"width":500,"url":"http://hwcdn.themoviedb.org/posters/015/4c1f544a7b9aa13123000015/elephant-mid.jpg","id":"4c1f544a7b9aa13123000015"}},{"image":{"type":"poster","size":"cover","height":278,"width":185,"url":"http://hwcdn.themoviedb.org/posters/015/4c1f544a7b9aa13123000015/elephant-cover.jpg","id":"4c1f544a7b9aa13123000015"}},{"image":{"type":"poster","size":"thumb","height":138,"width":92,"url":"http://hwcdn.themoviedb.org/posters/015/4c1f544a7b9aa13123000015/elephant-thumb.jpg","id":"4c1f544a7b9aa13123000015"}}],"backdrops":[{"image":{"type":"backdrop","size":"original","height":720,"width":1280,"url":"http://hwcdn.themoviedb.org/backdrops/0e0/4bc912ef017a3c57fe0070e0/elephant-original.jpg","id":"4bc912ef017a3c57fe0070e0"}},{"image":{"type":"backdrop","size":"poster","height":439,"width":780,"url":"http://hwcdn.themoviedb.org/backdrops/0e0/4bc912ef017a3c57fe0070e0/elephant-poster.jpg","id":"4bc912ef017a3c57fe0070e0"}},{"image":{"type":"backdrop","size":"thumb","height":169,"width":300,"url":"http://hwcdn.themoviedb.org/backdrops/0e0/4bc912ef017a3c57fe0070e0/elephant-thumb.jpg","id":"4bc912ef017a3c57fe0070e0"}}],"version":29,"last_modified_at":"2010-08-18 22:51:06"},{"score":null,"popularity":3,"translated":true,"adult":false,"language":"en","original_name":"Infernal Affairs","name":"Infernal Affairs","alternative_name":"Wu Jian Dao","movie_type":"movie","id":10775,"imdb_id":"tt0338564","url":"http://www.themoviedb.org/movie/10775","votes":5,"rating":9.2,"certification":"","overview":"Chan Wing Yan, a young police officer, has been sent undercover as a mole in the local mafia. Lau Kin Ming, a young mafia member, infiltrates the police force. Years later, their older counterparts, Chen Wing Yan and Inspector Lau Kin Ming, respectively, race against time to expose the mole within their midst. ","released":"2002-12-12","posters":[{"image":{"type":"poster","size":"original","height":1290,"width":900,"url":"http://hwcdn.themoviedb.org/posters/31c/4bf4736a017a3c6d9200031c/10775-original.jpg","id":"4bf4736a017a3c6d9200031c"}},{"image":{"type":"poster","size":"mid","height":717,"width":500,"url":"http://hwcdn.themoviedb.org/posters/31c/4bf4736a017a3c6d9200031c/10775-mid.jpg","id":"4bf4736a017a3c6d9200031c"}},{"image":{"type":"poster","size":"cover","height":265,"width":185,"url":"http://hwcdn.themoviedb.org/posters/31c/4bf4736a017a3c6d9200031c/10775-cover.jpg","id":"4bf4736a017a3c6d9200031c"}},{"image":{"type":"poster","size":"thumb","height":132,"width":92,"url":"http://hwcdn.themoviedb.org/posters/31c/4bf4736a017a3c6d9200031c/10775-thumb.jpg","id":"4bf4736a017a3c6d9200031c"}}],"backdrops":[{"image":{"type":"backdrop","size":"original","height":720,"width":1280,"url":"http://hwcdn.themoviedb.org/backdrops/438/4cc966d75e73d65024000438/infernal-affairs-original.jpg","id":"4cc966d75e73d65024000438"}},{"image":{"type":"backdrop","size":"poster","height":439,"width":780,"url":"http://hwcdn.themoviedb.org/backdrops/438/4cc966d75e73d65024000438/infernal-affairs-poster.jpg","id":"4cc966d75e73d65024000438"}},{"image":{"type":"backdrop","size":"thumb","height":169,"width":300,"url":"http://hwcdn.themoviedb.org/backdrops/438/4cc966d75e73d65024000438/infernal-affairs-thumb.jpg","id":"4cc966d75e73d65024000438"}}],"version":38,"last_modified_at":"2010-10-29 14:17:00"},{"score":null,"popularity":3,"translated":true,"adult":false,"language":"en","original_name":"Bride of Frankenstein","name":"Bride of Frankenstein","alternative_name":"Frankensteins R\u00fcckkehr","movie_type":"movie","id":229,"imdb_id":"tt0026138","url":"http://www.themoviedb.org/movie/229","votes":6,"rating":9.2,"certification":"PG","overview":"Bride of Frankenstein begins where James Whale's Frankenstein from 1931 ended. Dr. Frankenstein has not been killed as previously portrayed and now he wants to get away from the mad experiments. Yet when his wife is kidnapped by his creation, Frankenstein agrees to help him create a new monster, this time a woman.","released":"1935-04-22","posters":[{"image":{"type":"poster","size":"original","height":1785,"width":1200,"url":"http://hwcdn.themoviedb.org/posters/9be/4bc9056b017a3c57fe0019be/bride-of-frankenstein-original.jpg","id":"4bc9056b017a3c57fe0019be"}},{"image":{"type":"poster","size":"mid","height":744,"width":500,"url":"http://hwcdn.themoviedb.org/posters/9be/4bc9056b017a3c57fe0019be/bride-of-frankenstein-mid.jpg","id":"4bc9056b017a3c57fe0019be"}},{"image":{"type":"poster","size":"cover","height":275,"width":185,"url":"http://hwcdn.themoviedb.org/posters/9be/4bc9056b017a3c57fe0019be/bride-of-frankenstein-cover.jpg","id":"4bc9056b017a3c57fe0019be"}},{"image":{"type":"poster","size":"thumb","height":137,"width":92,"url":"http://hwcdn.themoviedb.org/posters/9be/4bc9056b017a3c57fe0019be/bride-of-frankenstein-thumb.jpg","id":"4bc9056b017a3c57fe0019be"}}],"backdrops":[{"image":{"type":"backdrop","size":"original","height":1080,"width":1920,"url":"http://hwcdn.themoviedb.org/backdrops/9ba/4bc9056a017a3c57fe0019ba/bride-of-frankenstein-original.jpg","id":"4bc9056a017a3c57fe0019ba"}},{"image":{"type":"backdrop","size":"poster","height":439,"width":780,"url":"http://hwcdn.themoviedb.org/backdrops/9ba/4bc9056a017a3c57fe0019ba/bride-of-frankenstein-poster.jpg","id":"4bc9056a017a3c57fe0019ba"}},{"image":{"type":"backdrop","size":"thumb","height":169,"width":300,"url":"http://hwcdn.themoviedb.org/backdrops/9ba/4bc9056a017a3c57fe0019ba/bride-of-frankenstein-thumb.jpg","id":"4bc9056a017a3c57fe0019ba"}}],"version":45,"last_modified_at":"2010-11-06 00:31:08"},{"score":null,"popularity":3,"translated":true,"adult":false,"language":"en","original_name":"Mean Streets","name":"Mean Streets","alternative_name":null,"movie_type":"movie","id":203,"imdb_id":"tt0070379","url":"http://www.themoviedb.org/movie/203","votes":6,"rating":9.0,"certification":"","overview":"Mean Streets is the pioneering artistic film from director Martin Scorseses. With it\u2019s experimental ease this gangster film documented the rules and rights structure and laws of the Italian-American small time criminal ambiance from 1960\u2019s New York.","released":"1973-10-02","posters":[{"image":{"type":"poster","size":"original","height":2793,"width":1920,"url":"http://hwcdn.themoviedb.org/posters/5bf/4be1a272017a3c35bf0005bf/mean-streets-original.jpg","id":"4be1a272017a3c35bf0005bf"}},{"image":{"type":"poster","size":"mid","height":727,"width":500,"url":"http://hwcdn.themoviedb.org/posters/5bf/4be1a272017a3c35bf0005bf/mean-streets-mid.jpg","id":"4be1a272017a3c35bf0005bf"}},{"image":{"type":"poster","size":"cover","height":269,"width":185,"url":"http://hwcdn.themoviedb.org/posters/5bf/4be1a272017a3c35bf0005bf/mean-streets-cover.jpg","id":"4be1a272017a3c35bf0005bf"}},{"image":{"type":"poster","size":"thumb","height":134,"width":92,"url":"http://hwcdn.themoviedb.org/posters/5bf/4be1a272017a3c35bf0005bf/mean-streets-thumb.jpg","id":"4be1a272017a3c35bf0005bf"}}],"backdrops":[{"image":{"type":"backdrop","size":"original","height":1080,"width":1920,"url":"http://hwcdn.themoviedb.org/backdrops/7e6/4bc90525017a3c57fe0017e6/mean-streets-original.jpg","id":"4bc90525017a3c57fe0017e6"}},{"image":{"type":"backdrop","size":"poster","height":439,"width":780,"url":"http://hwcdn.themoviedb.org/backdrops/7e6/4bc90525017a3c57fe0017e6/mean-streets-poster.jpg","id":"4bc90525017a3c57fe0017e6"}},{"image":{"type":"backdrop","size":"thumb","height":169,"width":300,"url":"http://hwcdn.themoviedb.org/backdrops/7e6/4bc90525017a3c57fe0017e6/mean-streets-thumb.jpg","id":"4bc90525017a3c57fe0017e6"}}],"version":32,"last_modified_at":"2010-11-07 10:17:19"},{"score":null,"popularity":3,"translated":true,"adult":false,"language":"en","original_name":"Gegen\u00fcber","name":"Gegen\u00fcber","alternative_name":null,"movie_type":"movie","id":4213,"imdb_id":"tt1031932","url":"http://www.themoviedb.org/movie/4213","votes":5,"rating":9.0,"certification":"","overview":"No overview found.","released":"2007-05-20","posters":[],"backdrops":[],"version":21,"last_modified_at":"2010-08-18 22:49:49"}]
         | 
| @@ -0,0 +1,15 @@ | |
| 1 | 
            +
            HTTP/1.1 200 OK
         | 
| 2 | 
            +
            Server: nginx
         | 
| 3 | 
            +
            Date: Mon, 23 Aug 2010 16:45:21 GMT
         | 
| 4 | 
            +
            Content-Type: text/json; charset=utf-8
         | 
| 5 | 
            +
            Transfer-Encoding: chunked
         | 
| 6 | 
            +
            Connection: keep-alive
         | 
| 7 | 
            +
            Keep-Alive: timeout=20
         | 
| 8 | 
            +
            Status: 200 OK
         | 
| 9 | 
            +
            Cache-Control: public, max-age=21600
         | 
| 10 | 
            +
            X-Varnish: 2542127928 2542059531
         | 
| 11 | 
            +
            Age: 1000
         | 
| 12 | 
            +
            Via: 1.1 varnish
         | 
| 13 | 
            +
            X-Cache: HIT
         | 
| 14 | 
            +
             | 
| 15 | 
            +
            [{"popularity":3,"translated":true,"adult":false,"language":"en","original_name":"Sin City","name":"Sin City","alternative_name":null,"movie_type":"movie","id":187,"imdb_id":"tt0401792","url":"http://www.themoviedb.org/movie/187","votes":62,"rating":7.0,"tagline":"There is no justice without sin.","certification":"R","overview":"The first of three films based on the beautiful comic world of Frank Miller. Sin City depicts the comic book almost page for page with its heavy contrast black and white extremely violent and graphic imagery. Sin City is set in a dangerous and dark Basin City where corruption, sex and violence is everyday life.","released":"2005-04-01","runtime":124,"budget":40000000,"revenue":158733820,"homepage":"http://www.sincitythemovie.com/","trailer":"http://www.youtube.com/watch?v=80","genres":[{"type":"genre","url":"http://themoviedb.org/genre/crime","name":"Crime","id":80},{"type":"genre","url":"http://themoviedb.org/genre/drama","name":"Drama","id":18},{"type":"genre","url":"http://themoviedb.org/genre/thriller","name":"Thriller","id":53}],"studios":[{"url":"http://www.themoviedb.org/company/20","name":"Miramax Films","id":20},{"url":"http://www.themoviedb.org/company/334","name":"Dimension","id":334}],"countries":[{"code":"US","name":"United States of America","url":"http://www.themoviedb.org/country/us"}],"posters":[{"image":{"type":"poster","size":"original","height":3000,"width":2124,"url":"http://hwcdn.themoviedb.org/posters/68c/4bc904e9017a3c57fe00168c/sin-city-original.jpg","id":"4bc904e9017a3c57fe00168c"}},{"image":{"type":"poster","size":"mid","height":706,"width":500,"url":"http://hwcdn.themoviedb.org/posters/68c/4bc904e9017a3c57fe00168c/sin-city-mid.jpg","id":"4bc904e9017a3c57fe00168c"}},{"image":{"type":"poster","size":"cover","height":261,"width":185,"url":"http://hwcdn.themoviedb.org/posters/68c/4bc904e9017a3c57fe00168c/sin-city-cover.jpg","id":"4bc904e9017a3c57fe00168c"}},{"image":{"type":"poster","size":"thumb","height":130,"width":92,"url":"http://hwcdn.themoviedb.org/posters/68c/4bc904e9017a3c57fe00168c/sin-city-thumb.jpg","id":"4bc904e9017a3c57fe00168c"}},{"image":{"type":"poster","size":"original","height":3000,"width":2014,"url":"http://hwcdn.themoviedb.org/posters/6a5/4bc904f1017a3c57fe0016a5/sin-city-original.jpg","id":"4bc904f1017a3c57fe0016a5"}},{"image":{"type":"poster","size":"mid","height":745,"width":500,"url":"http://hwcdn.themoviedb.org/posters/6a5/4bc904f1017a3c57fe0016a5/sin-city-mid.jpg","id":"4bc904f1017a3c57fe0016a5"}},{"image":{"type":"poster","size":"cover","height":276,"width":185,"url":"http://hwcdn.themoviedb.org/posters/6a5/4bc904f1017a3c57fe0016a5/sin-city-cover.jpg","id":"4bc904f1017a3c57fe0016a5"}},{"image":{"type":"poster","size":"thumb","height":137,"width":92,"url":"http://hwcdn.themoviedb.org/posters/6a5/4bc904f1017a3c57fe0016a5/sin-city-thumb.jpg","id":"4bc904f1017a3c57fe0016a5"}},{"image":{"type":"poster","size":"original","height":2802,"width":946,"url":"http://hwcdn.themoviedb.org/posters/06e/4c55d9087b9aa151f700006e/sin-city-original.jpg","id":"4c55d9087b9aa151f700006e"}},{"image":{"type":"poster","size":"mid","height":1481,"width":500,"url":"http://hwcdn.themoviedb.org/posters/06e/4c55d9087b9aa151f700006e/sin-city-mid.jpg","id":"4c55d9087b9aa151f700006e"}},{"image":{"type":"poster","size":"cover","height":548,"width":185,"url":"http://hwcdn.themoviedb.org/posters/06e/4c55d9087b9aa151f700006e/sin-city-cover.jpg","id":"4c55d9087b9aa151f700006e"}},{"image":{"type":"poster","size":"thumb","height":273,"width":92,"url":"http://hwcdn.themoviedb.org/posters/06e/4c55d9087b9aa151f700006e/sin-city-thumb.jpg","id":"4c55d9087b9aa151f700006e"}},{"image":{"type":"poster","size":"original","height":759,"width":570,"url":"http://hwcdn.themoviedb.org/posters/6aa/4bc904f4017a3c57fe0016aa/sin-city-original.png","id":"4bc904f4017a3c57fe0016aa"}},{"image":{"type":"poster","size":"mid","height":666,"width":500,"url":"http://hwcdn.themoviedb.org/posters/6aa/4bc904f4017a3c57fe0016aa/sin-city-mid.png","id":"4bc904f4017a3c57fe0016aa"}},{"image":{"type":"poster","size":"cover","height":246,"width":185,"url":"http://hwcdn.themoviedb.org/posters/6aa/4bc904f4017a3c57fe0016aa/sin-city-cover.png","id":"4bc904f4017a3c57fe0016aa"}},{"image":{"type":"poster","size":"thumb","height":122,"width":92,"url":"http://hwcdn.themoviedb.org/posters/6aa/4bc904f4017a3c57fe0016aa/sin-city-thumb.png","id":"4bc904f4017a3c57fe0016aa"}},{"image":{"type":"poster","size":"original","height":3648,"width":2594,"url":"http://hwcdn.themoviedb.org/posters/041/4c55d9417b9aa151f2000041/sin-city-original.jpg","id":"4c55d9417b9aa151f2000041"}},{"image":{"type":"poster","size":"mid","height":703,"width":500,"url":"http://hwcdn.themoviedb.org/posters/041/4c55d9417b9aa151f2000041/sin-city-mid.jpg","id":"4c55d9417b9aa151f2000041"}},{"image":{"type":"poster","size":"cover","height":260,"width":185,"url":"http://hwcdn.themoviedb.org/posters/041/4c55d9417b9aa151f2000041/sin-city-cover.jpg","id":"4c55d9417b9aa151f2000041"}},{"image":{"type":"poster","size":"thumb","height":129,"width":92,"url":"http://hwcdn.themoviedb.org/posters/041/4c55d9417b9aa151f2000041/sin-city-thumb.jpg","id":"4c55d9417b9aa151f2000041"}},{"image":{"type":"poster","size":"original","height":3000,"width":2027,"url":"http://hwcdn.themoviedb.org/posters/6a0/4bc904ef017a3c57fe0016a0/sin-city-original.jpg","id":"4bc904ef017a3c57fe0016a0"}},{"image":{"type":"poster","size":"mid","height":740,"width":500,"url":"http://hwcdn.themoviedb.org/posters/6a0/4bc904ef017a3c57fe0016a0/sin-city-mid.jpg","id":"4bc904ef017a3c57fe0016a0"}},{"image":{"type":"poster","size":"cover","height":274,"width":185,"url":"http://hwcdn.themoviedb.org/posters/6a0/4bc904ef017a3c57fe0016a0/sin-city-cover.jpg","id":"4bc904ef017a3c57fe0016a0"}},{"image":{"type":"poster","size":"thumb","height":136,"width":92,"url":"http://hwcdn.themoviedb.org/posters/6a0/4bc904ef017a3c57fe0016a0/sin-city-thumb.jpg","id":"4bc904ef017a3c57fe0016a0"}},{"image":{"type":"poster","size":"original","height":3000,"width":2024,"url":"http://hwcdn.themoviedb.org/posters/69b/4bc904ee017a3c57fe00169b/sin-city-original.jpg","id":"4bc904ee017a3c57fe00169b"}},{"image":{"type":"poster","size":"mid","height":741,"width":500,"url":"http://hwcdn.themoviedb.org/posters/69b/4bc904ee017a3c57fe00169b/sin-city-mid.jpg","id":"4bc904ee017a3c57fe00169b"}},{"image":{"type":"poster","size":"cover","height":274,"width":185,"url":"http://hwcdn.themoviedb.org/posters/69b/4bc904ee017a3c57fe00169b/sin-city-cover.jpg","id":"4bc904ee017a3c57fe00169b"}},{"image":{"type":"poster","size":"thumb","height":136,"width":92,"url":"http://hwcdn.themoviedb.org/posters/69b/4bc904ee017a3c57fe00169b/sin-city-thumb.jpg","id":"4bc904ee017a3c57fe00169b"}},{"image":{"type":"poster","size":"original","height":3000,"width":2032,"url":"http://hwcdn.themoviedb.org/posters/696/4bc904eb017a3c57fe001696/sin-city-original.jpg","id":"4bc904eb017a3c57fe001696"}},{"image":{"type":"poster","size":"mid","height":738,"width":500,"url":"http://hwcdn.themoviedb.org/posters/696/4bc904eb017a3c57fe001696/sin-city-mid.jpg","id":"4bc904eb017a3c57fe001696"}},{"image":{"type":"poster","size":"cover","height":273,"width":185,"url":"http://hwcdn.themoviedb.org/posters/696/4bc904eb017a3c57fe001696/sin-city-cover.jpg","id":"4bc904eb017a3c57fe001696"}},{"image":{"type":"poster","size":"thumb","height":136,"width":92,"url":"http://hwcdn.themoviedb.org/posters/696/4bc904eb017a3c57fe001696/sin-city-thumb.jpg","id":"4bc904eb017a3c57fe001696"}},{"image":{"type":"poster","size":"original","height":3000,"width":2025,"url":"http://hwcdn.themoviedb.org/posters/691/4bc904ea017a3c57fe001691/sin-city-original.jpg","id":"4bc904ea017a3c57fe001691"}},{"image":{"type":"poster","size":"mid","height":741,"width":500,"url":"http://hwcdn.themoviedb.org/posters/691/4bc904ea017a3c57fe001691/sin-city-mid.jpg","id":"4bc904ea017a3c57fe001691"}},{"image":{"type":"poster","size":"cover","height":274,"width":185,"url":"http://hwcdn.themoviedb.org/posters/691/4bc904ea017a3c57fe001691/sin-city-cover.jpg","id":"4bc904ea017a3c57fe001691"}},{"image":{"type":"poster","size":"thumb","height":136,"width":92,"url":"http://hwcdn.themoviedb.org/posters/691/4bc904ea017a3c57fe001691/sin-city-thumb.jpg","id":"4bc904ea017a3c57fe001691"}},{"image":{"type":"poster","size":"original","height":1450,"width":1023,"url":"http://hwcdn.themoviedb.org/posters/9c7/4c6fef5f7b9aa13ab60009c7/sin-city-original.jpg","id":"4c6fef5f7b9aa13ab60009c7"}},{"image":{"type":"poster","size":"mid","height":709,"width":500,"url":"http://hwcdn.themoviedb.org/posters/9c7/4c6fef5f7b9aa13ab60009c7/sin-city-mid.jpg","id":"4c6fef5f7b9aa13ab60009c7"}},{"image":{"type":"poster","size":"cover","height":262,"width":185,"url":"http://hwcdn.themoviedb.org/posters/9c7/4c6fef5f7b9aa13ab60009c7/sin-city-cover.jpg","id":"4c6fef5f7b9aa13ab60009c7"}},{"image":{"type":"poster","size":"thumb","height":130,"width":92,"url":"http://hwcdn.themoviedb.org/posters/9c7/4c6fef5f7b9aa13ab60009c7/sin-city-thumb.jpg","id":"4c6fef5f7b9aa13ab60009c7"}}],"backdrops":[{"image":{"type":"backdrop","size":"original","height":1080,"width":1920,"url":"http://hwcdn.themoviedb.org/backdrops/14d/4bd5a73e017a3c2e7800014d/sin-city-original.jpg","id":"4bd5a73e017a3c2e7800014d"}},{"image":{"type":"backdrop","size":"poster","height":439,"width":780,"url":"http://hwcdn.themoviedb.org/backdrops/14d/4bd5a73e017a3c2e7800014d/sin-city-poster.jpg","id":"4bd5a73e017a3c2e7800014d"}},{"image":{"type":"backdrop","size":"thumb","height":169,"width":300,"url":"http://hwcdn.themoviedb.org/backdrops/14d/4bd5a73e017a3c2e7800014d/sin-city-thumb.jpg","id":"4bd5a73e017a3c2e7800014d"}},{"image":{"type":"backdrop","size":"original","height":1080,"width":1920,"url":"http://hwcdn.themoviedb.org/backdrops/630/4bc904d7017a3c57fe001630/sin-city-original.jpg","id":"4bc904d7017a3c57fe001630"}},{"image":{"type":"backdrop","size":"poster","height":439,"width":780,"url":"http://hwcdn.themoviedb.org/backdrops/630/4bc904d7017a3c57fe001630/sin-city-poster.jpg","id":"4bc904d7017a3c57fe001630"}},{"image":{"type":"backdrop","size":"thumb","height":169,"width":300,"url":"http://hwcdn.themoviedb.org/backdrops/630/4bc904d7017a3c57fe001630/sin-city-thumb.jpg","id":"4bc904d7017a3c57fe001630"}},{"image":{"type":"backdrop","size":"original","height":1080,"width":1920,"url":"http://hwcdn.themoviedb.org/backdrops/688/4bc904e8017a3c57fe001688/sin-city-original.jpg","id":"4bc904e8017a3c57fe001688"}},{"image":{"type":"backdrop","size":"poster","height":439,"width":780,"url":"http://hwcdn.themoviedb.org/backdrops/688/4bc904e8017a3c57fe001688/sin-city-poster.jpg","id":"4bc904e8017a3c57fe001688"}},{"image":{"type":"backdrop","size":"thumb","height":169,"width":300,"url":"http://hwcdn.themoviedb.org/backdrops/688/4bc904e8017a3c57fe001688/sin-city-thumb.jpg","id":"4bc904e8017a3c57fe001688"}},{"image":{"type":"backdrop","size":"original","height":1080,"width":1920,"url":"http://hwcdn.themoviedb.org/backdrops/61c/4bc904d2017a3c57fe00161c/sin-city-original.jpg","id":"4bc904d2017a3c57fe00161c"}},{"image":{"type":"backdrop","size":"poster","height":439,"width":780,"url":"http://hwcdn.themoviedb.org/backdrops/61c/4bc904d2017a3c57fe00161c/sin-city-poster.jpg","id":"4bc904d2017a3c57fe00161c"}},{"image":{"type":"backdrop","size":"thumb","height":169,"width":300,"url":"http://hwcdn.themoviedb.org/backdrops/61c/4bc904d2017a3c57fe00161c/sin-city-thumb.jpg","id":"4bc904d2017a3c57fe00161c"}},{"image":{"type":"backdrop","size":"original","height":1080,"width":1920,"url":"http://hwcdn.themoviedb.org/backdrops/614/4bc904d1017a3c57fe001614/sin-city-original.jpg","id":"4bc904d1017a3c57fe001614"}},{"image":{"type":"backdrop","size":"poster","height":439,"width":780,"url":"http://hwcdn.themoviedb.org/backdrops/614/4bc904d1017a3c57fe001614/sin-city-poster.jpg","id":"4bc904d1017a3c57fe001614"}},{"image":{"type":"backdrop","size":"thumb","height":169,"width":300,"url":"http://hwcdn.themoviedb.org/backdrops/614/4bc904d1017a3c57fe001614/sin-city-thumb.jpg","id":"4bc904d1017a3c57fe001614"}},{"image":{"type":"backdrop","size":"original","height":1080,"width":1920,"url":"http://hwcdn.themoviedb.org/backdrops/618/4bc904d2017a3c57fe001618/sin-city-original.jpg","id":"4bc904d2017a3c57fe001618"}},{"image":{"type":"backdrop","size":"poster","height":439,"width":780,"url":"http://hwcdn.themoviedb.org/backdrops/618/4bc904d2017a3c57fe001618/sin-city-poster.jpg","id":"4bc904d2017a3c57fe001618"}},{"image":{"type":"backdrop","size":"thumb","height":169,"width":300,"url":"http://hwcdn.themoviedb.org/backdrops/618/4bc904d2017a3c57fe001618/sin-city-thumb.jpg","id":"4bc904d2017a3c57fe001618"}},{"image":{"type":"backdrop","size":"original","height":1080,"width":1920,"url":"http://hwcdn.themoviedb.org/backdrops/620/4bc904d5017a3c57fe001620/sin-city-original.jpg","id":"4bc904d5017a3c57fe001620"}},{"image":{"type":"backdrop","size":"poster","height":439,"width":780,"url":"http://hwcdn.themoviedb.org/backdrops/620/4bc904d5017a3c57fe001620/sin-city-poster.jpg","id":"4bc904d5017a3c57fe001620"}},{"image":{"type":"backdrop","size":"thumb","height":169,"width":300,"url":"http://hwcdn.themoviedb.org/backdrops/620/4bc904d5017a3c57fe001620/sin-city-thumb.jpg","id":"4bc904d5017a3c57fe001620"}},{"image":{"type":"backdrop","size":"original","height":1080,"width":1920,"url":"http://hwcdn.themoviedb.org/backdrops/624/4bc904d5017a3c57fe001624/sin-city-original.jpg","id":"4bc904d5017a3c57fe001624"}},{"image":{"type":"backdrop","size":"poster","height":439,"width":780,"url":"http://hwcdn.themoviedb.org/backdrops/624/4bc904d5017a3c57fe001624/sin-city-poster.jpg","id":"4bc904d5017a3c57fe001624"}},{"image":{"type":"backdrop","size":"thumb","height":169,"width":300,"url":"http://hwcdn.themoviedb.org/backdrops/624/4bc904d5017a3c57fe001624/sin-city-thumb.jpg","id":"4bc904d5017a3c57fe001624"}},{"image":{"type":"backdrop","size":"original","height":1080,"width":1920,"url":"http://hwcdn.themoviedb.org/backdrops/648/4bc904dc017a3c57fe001648/sin-city-original.jpg","id":"4bc904dc017a3c57fe001648"}},{"image":{"type":"backdrop","size":"poster","height":439,"width":780,"url":"http://hwcdn.themoviedb.org/backdrops/648/4bc904dc017a3c57fe001648/sin-city-poster.jpg","id":"4bc904dc017a3c57fe001648"}},{"image":{"type":"backdrop","size":"thumb","height":169,"width":300,"url":"http://hwcdn.themoviedb.org/backdrops/648/4bc904dc017a3c57fe001648/sin-city-thumb.jpg","id":"4bc904dc017a3c57fe001648"}},{"image":{"type":"backdrop","size":"original","height":1080,"width":1920,"url":"http://hwcdn.themoviedb.org/backdrops/668/4bc904e1017a3c57fe001668/sin-city-original.jpg","id":"4bc904e1017a3c57fe001668"}},{"image":{"type":"backdrop","size":"poster","height":439,"width":780,"url":"http://hwcdn.themoviedb.org/backdrops/668/4bc904e1017a3c57fe001668/sin-city-poster.jpg","id":"4bc904e1017a3c57fe001668"}},{"image":{"type":"backdrop","size":"thumb","height":169,"width":300,"url":"http://hwcdn.themoviedb.org/backdrops/668/4bc904e1017a3c57fe001668/sin-city-thumb.jpg","id":"4bc904e1017a3c57fe001668"}},{"image":{"type":"backdrop","size":"original","height":1080,"width":1920,"url":"http://hwcdn.themoviedb.org/backdrops/664/4bc904e1017a3c57fe001664/sin-city-original.jpg","id":"4bc904e1017a3c57fe001664"}},{"image":{"type":"backdrop","size":"poster","height":439,"width":780,"url":"http://hwcdn.themoviedb.org/backdrops/664/4bc904e1017a3c57fe001664/sin-city-poster.jpg","id":"4bc904e1017a3c57fe001664"}},{"image":{"type":"backdrop","size":"thumb","height":169,"width":300,"url":"http://hwcdn.themoviedb.org/backdrops/664/4bc904e1017a3c57fe001664/sin-city-thumb.jpg","id":"4bc904e1017a3c57fe001664"}},{"image":{"type":"backdrop","size":"original","height":1080,"width":1920,"url":"http://hwcdn.themoviedb.org/backdrops/660/4bc904e0017a3c57fe001660/sin-city-original.jpg","id":"4bc904e0017a3c57fe001660"}},{"image":{"type":"backdrop","size":"poster","height":439,"width":780,"url":"http://hwcdn.themoviedb.org/backdrops/660/4bc904e0017a3c57fe001660/sin-city-poster.jpg","id":"4bc904e0017a3c57fe001660"}},{"image":{"type":"backdrop","size":"thumb","height":169,"width":300,"url":"http://hwcdn.themoviedb.org/backdrops/660/4bc904e0017a3c57fe001660/sin-city-thumb.jpg","id":"4bc904e0017a3c57fe001660"}},{"image":{"type":"backdrop","size":"original","height":1080,"width":1920,"url":"http://hwcdn.themoviedb.org/backdrops/65c/4bc904e0017a3c57fe00165c/sin-city-original.jpg","id":"4bc904e0017a3c57fe00165c"}},{"image":{"type":"backdrop","size":"poster","height":439,"width":780,"url":"http://hwcdn.themoviedb.org/backdrops/65c/4bc904e0017a3c57fe00165c/sin-city-poster.jpg","id":"4bc904e0017a3c57fe00165c"}},{"image":{"type":"backdrop","size":"thumb","height":169,"width":300,"url":"http://hwcdn.themoviedb.org/backdrops/65c/4bc904e0017a3c57fe00165c/sin-city-thumb.jpg","id":"4bc904e0017a3c57fe00165c"}},{"image":{"type":"backdrop","size":"original","height":1080,"width":1920,"url":"http://hwcdn.themoviedb.org/backdrops/658/4bc904de017a3c57fe001658/sin-city-original.jpg","id":"4bc904de017a3c57fe001658"}},{"image":{"type":"backdrop","size":"poster","height":439,"width":780,"url":"http://hwcdn.themoviedb.org/backdrops/658/4bc904de017a3c57fe001658/sin-city-poster.jpg","id":"4bc904de017a3c57fe001658"}},{"image":{"type":"backdrop","size":"thumb","height":169,"width":300,"url":"http://hwcdn.themoviedb.org/backdrops/658/4bc904de017a3c57fe001658/sin-city-thumb.jpg","id":"4bc904de017a3c57fe001658"}},{"image":{"type":"backdrop","size":"original","height":1080,"width":1920,"url":"http://hwcdn.themoviedb.org/backdrops/654/4bc904dd017a3c57fe001654/sin-city-original.jpg","id":"4bc904dd017a3c57fe001654"}},{"image":{"type":"backdrop","size":"poster","height":439,"width":780,"url":"http://hwcdn.themoviedb.org/backdrops/654/4bc904dd017a3c57fe001654/sin-city-poster.jpg","id":"4bc904dd017a3c57fe001654"}},{"image":{"type":"backdrop","size":"thumb","height":169,"width":300,"url":"http://hwcdn.themoviedb.org/backdrops/654/4bc904dd017a3c57fe001654/sin-city-thumb.jpg","id":"4bc904dd017a3c57fe001654"}},{"image":{"type":"backdrop","size":"original","height":1080,"width":1920,"url":"http://hwcdn.themoviedb.org/backdrops/67c/4bc904e5017a3c57fe00167c/sin-city-original.jpg","id":"4bc904e5017a3c57fe00167c"}},{"image":{"type":"backdrop","size":"poster","height":439,"width":780,"url":"http://hwcdn.themoviedb.org/backdrops/67c/4bc904e5017a3c57fe00167c/sin-city-poster.jpg","id":"4bc904e5017a3c57fe00167c"}},{"image":{"type":"backdrop","size":"thumb","height":169,"width":300,"url":"http://hwcdn.themoviedb.org/backdrops/67c/4bc904e5017a3c57fe00167c/sin-city-thumb.jpg","id":"4bc904e5017a3c57fe00167c"}},{"image":{"type":"backdrop","size":"original","height":1080,"width":1920,"url":"http://hwcdn.themoviedb.org/backdrops/64c/4bc904dc017a3c57fe00164c/sin-city-original.jpg","id":"4bc904dc017a3c57fe00164c"}},{"image":{"type":"backdrop","size":"poster","height":439,"width":780,"url":"http://hwcdn.themoviedb.org/backdrops/64c/4bc904dc017a3c57fe00164c/sin-city-poster.jpg","id":"4bc904dc017a3c57fe00164c"}},{"image":{"type":"backdrop","size":"thumb","height":169,"width":300,"url":"http://hwcdn.themoviedb.org/backdrops/64c/4bc904dc017a3c57fe00164c/sin-city-thumb.jpg","id":"4bc904dc017a3c57fe00164c"}},{"image":{"type":"backdrop","size":"original","height":1080,"width":1920,"url":"http://hwcdn.themoviedb.org/backdrops/66c/4bc904e1017a3c57fe00166c/sin-city-original.jpg","id":"4bc904e1017a3c57fe00166c"}},{"image":{"type":"backdrop","size":"poster","height":439,"width":780,"url":"http://hwcdn.themoviedb.org/backdrops/66c/4bc904e1017a3c57fe00166c/sin-city-poster.jpg","id":"4bc904e1017a3c57fe00166c"}},{"image":{"type":"backdrop","size":"thumb","height":169,"width":300,"url":"http://hwcdn.themoviedb.org/backdrops/66c/4bc904e1017a3c57fe00166c/sin-city-thumb.jpg","id":"4bc904e1017a3c57fe00166c"}},{"image":{"type":"backdrop","size":"original","height":1080,"width":1920,"url":"http://hwcdn.themoviedb.org/backdrops/644/4bc904db017a3c57fe001644/sin-city-original.jpg","id":"4bc904db017a3c57fe001644"}},{"image":{"type":"backdrop","size":"poster","height":439,"width":780,"url":"http://hwcdn.themoviedb.org/backdrops/644/4bc904db017a3c57fe001644/sin-city-poster.jpg","id":"4bc904db017a3c57fe001644"}},{"image":{"type":"backdrop","size":"thumb","height":169,"width":300,"url":"http://hwcdn.themoviedb.org/backdrops/644/4bc904db017a3c57fe001644/sin-city-thumb.jpg","id":"4bc904db017a3c57fe001644"}},{"image":{"type":"backdrop","size":"original","height":1080,"width":1920,"url":"http://hwcdn.themoviedb.org/backdrops/640/4bc904db017a3c57fe001640/sin-city-original.jpg","id":"4bc904db017a3c57fe001640"}},{"image":{"type":"backdrop","size":"poster","height":439,"width":780,"url":"http://hwcdn.themoviedb.org/backdrops/640/4bc904db017a3c57fe001640/sin-city-poster.jpg","id":"4bc904db017a3c57fe001640"}},{"image":{"type":"backdrop","size":"thumb","height":169,"width":300,"url":"http://hwcdn.themoviedb.org/backdrops/640/4bc904db017a3c57fe001640/sin-city-thumb.jpg","id":"4bc904db017a3c57fe001640"}},{"image":{"type":"backdrop","size":"original","height":1080,"width":1920,"url":"http://hwcdn.themoviedb.org/backdrops/63c/4bc904d8017a3c57fe00163c/sin-city-original.jpg","id":"4bc904d8017a3c57fe00163c"}},{"image":{"type":"backdrop","size":"poster","height":439,"width":780,"url":"http://hwcdn.themoviedb.org/backdrops/63c/4bc904d8017a3c57fe00163c/sin-city-poster.jpg","id":"4bc904d8017a3c57fe00163c"}},{"image":{"type":"backdrop","size":"thumb","height":169,"width":300,"url":"http://hwcdn.themoviedb.org/backdrops/63c/4bc904d8017a3c57fe00163c/sin-city-thumb.jpg","id":"4bc904d8017a3c57fe00163c"}},{"image":{"type":"backdrop","size":"original","height":1080,"width":1920,"url":"http://hwcdn.themoviedb.org/backdrops/638/4bc904d8017a3c57fe001638/sin-city-original.jpg","id":"4bc904d8017a3c57fe001638"}},{"image":{"type":"backdrop","size":"poster","height":439,"width":780,"url":"http://hwcdn.themoviedb.org/backdrops/638/4bc904d8017a3c57fe001638/sin-city-poster.jpg","id":"4bc904d8017a3c57fe001638"}},{"image":{"type":"backdrop","size":"thumb","height":169,"width":300,"url":"http://hwcdn.themoviedb.org/backdrops/638/4bc904d8017a3c57fe001638/sin-city-thumb.jpg","id":"4bc904d8017a3c57fe001638"}},{"image":{"type":"backdrop","size":"original","height":1080,"width":1920,"url":"http://hwcdn.themoviedb.org/backdrops/634/4bc904d7017a3c57fe001634/sin-city-original.jpg","id":"4bc904d7017a3c57fe001634"}},{"image":{"type":"backdrop","size":"poster","height":439,"width":780,"url":"http://hwcdn.themoviedb.org/backdrops/634/4bc904d7017a3c57fe001634/sin-city-poster.jpg","id":"4bc904d7017a3c57fe001634"}},{"image":{"type":"backdrop","size":"thumb","height":169,"width":300,"url":"http://hwcdn.themoviedb.org/backdrops/634/4bc904d7017a3c57fe001634/sin-city-thumb.jpg","id":"4bc904d7017a3c57fe001634"}},{"image":{"type":"backdrop","size":"original","height":1080,"width":1920,"url":"http://hwcdn.themoviedb.org/backdrops/680/4bc904e5017a3c57fe001680/sin-city-original.jpg","id":"4bc904e5017a3c57fe001680"}},{"image":{"type":"backdrop","size":"poster","height":439,"width":780,"url":"http://hwcdn.themoviedb.org/backdrops/680/4bc904e5017a3c57fe001680/sin-city-poster.jpg","id":"4bc904e5017a3c57fe001680"}},{"image":{"type":"backdrop","size":"thumb","height":169,"width":300,"url":"http://hwcdn.themoviedb.org/backdrops/680/4bc904e5017a3c57fe001680/sin-city-thumb.jpg","id":"4bc904e5017a3c57fe001680"}},{"image":{"type":"backdrop","size":"original","height":1080,"width":1920,"url":"http://hwcdn.themoviedb.org/backdrops/62c/4bc904d6017a3c57fe00162c/sin-city-original.jpg","id":"4bc904d6017a3c57fe00162c"}},{"image":{"type":"backdrop","size":"poster","height":439,"width":780,"url":"http://hwcdn.themoviedb.org/backdrops/62c/4bc904d6017a3c57fe00162c/sin-city-poster.jpg","id":"4bc904d6017a3c57fe00162c"}},{"image":{"type":"backdrop","size":"thumb","height":169,"width":300,"url":"http://hwcdn.themoviedb.org/backdrops/62c/4bc904d6017a3c57fe00162c/sin-city-thumb.jpg","id":"4bc904d6017a3c57fe00162c"}},{"image":{"type":"backdrop","size":"original","height":1080,"width":1920,"url":"http://hwcdn.themoviedb.org/backdrops/628/4bc904d6017a3c57fe001628/sin-city-original.jpg","id":"4bc904d6017a3c57fe001628"}},{"image":{"type":"backdrop","size":"poster","height":439,"width":780,"url":"http://hwcdn.themoviedb.org/backdrops/628/4bc904d6017a3c57fe001628/sin-city-poster.jpg","id":"4bc904d6017a3c57fe001628"}},{"image":{"type":"backdrop","size":"thumb","height":169,"width":300,"url":"http://hwcdn.themoviedb.org/backdrops/628/4bc904d6017a3c57fe001628/sin-city-thumb.jpg","id":"4bc904d6017a3c57fe001628"}},{"image":{"type":"backdrop","size":"original","height":1080,"width":1920,"url":"http://hwcdn.themoviedb.org/backdrops/670/4bc904e4017a3c57fe001670/sin-city-original.jpg","id":"4bc904e4017a3c57fe001670"}},{"image":{"type":"backdrop","size":"poster","height":439,"width":780,"url":"http://hwcdn.themoviedb.org/backdrops/670/4bc904e4017a3c57fe001670/sin-city-poster.jpg","id":"4bc904e4017a3c57fe001670"}},{"image":{"type":"backdrop","size":"thumb","height":169,"width":300,"url":"http://hwcdn.themoviedb.org/backdrops/670/4bc904e4017a3c57fe001670/sin-city-thumb.jpg","id":"4bc904e4017a3c57fe001670"}},{"image":{"type":"backdrop","size":"original","height":1080,"width":1920,"url":"http://hwcdn.themoviedb.org/backdrops/674/4bc904e4017a3c57fe001674/sin-city-original.jpg","id":"4bc904e4017a3c57fe001674"}},{"image":{"type":"backdrop","size":"poster","height":439,"width":780,"url":"http://hwcdn.themoviedb.org/backdrops/674/4bc904e4017a3c57fe001674/sin-city-poster.jpg","id":"4bc904e4017a3c57fe001674"}},{"image":{"type":"backdrop","size":"thumb","height":169,"width":300,"url":"http://hwcdn.themoviedb.org/backdrops/674/4bc904e4017a3c57fe001674/sin-city-thumb.jpg","id":"4bc904e4017a3c57fe001674"}},{"image":{"type":"backdrop","size":"original","height":1080,"width":1920,"url":"http://hwcdn.themoviedb.org/backdrops/684/4bc904e8017a3c57fe001684/sin-city-original.jpg","id":"4bc904e8017a3c57fe001684"}},{"image":{"type":"backdrop","size":"poster","height":439,"width":780,"url":"http://hwcdn.themoviedb.org/backdrops/684/4bc904e8017a3c57fe001684/sin-city-poster.jpg","id":"4bc904e8017a3c57fe001684"}},{"image":{"type":"backdrop","size":"thumb","height":169,"width":300,"url":"http://hwcdn.themoviedb.org/backdrops/684/4bc904e8017a3c57fe001684/sin-city-thumb.jpg","id":"4bc904e8017a3c57fe001684"}},{"image":{"type":"backdrop","size":"original","height":1080,"width":1920,"url":"http://hwcdn.themoviedb.org/backdrops/678/4bc904e5017a3c57fe001678/sin-city-original.jpg","id":"4bc904e5017a3c57fe001678"}},{"image":{"type":"backdrop","size":"poster","height":439,"width":780,"url":"http://hwcdn.themoviedb.org/backdrops/678/4bc904e5017a3c57fe001678/sin-city-poster.jpg","id":"4bc904e5017a3c57fe001678"}},{"image":{"type":"backdrop","size":"thumb","height":169,"width":300,"url":"http://hwcdn.themoviedb.org/backdrops/678/4bc904e5017a3c57fe001678/sin-city-thumb.jpg","id":"4bc904e5017a3c57fe001678"}},{"image":{"type":"backdrop","size":"original","height":1080,"width":1920,"url":"http://hwcdn.themoviedb.org/backdrops/650/4bc904dd017a3c57fe001650/sin-city-original.jpg","id":"4bc904dd017a3c57fe001650"}},{"image":{"type":"backdrop","size":"poster","height":439,"width":780,"url":"http://hwcdn.themoviedb.org/backdrops/650/4bc904dd017a3c57fe001650/sin-city-poster.jpg","id":"4bc904dd017a3c57fe001650"}},{"image":{"type":"backdrop","size":"thumb","height":169,"width":300,"url":"http://hwcdn.themoviedb.org/backdrops/650/4bc904dd017a3c57fe001650/sin-city-thumb.jpg","id":"4bc904dd017a3c57fe001650"}}],"cast":[{"name":"Frank Miller","job":"Director","department":"Directing","character":"","id":2293,"order":0,"cast_id":1,"url":"http://www.themoviedb.org/person/2293","profile":""},{"name":"Frank Miller","job":"Author","department":"Writing","character":"","id":2293,"order":0,"cast_id":4,"url":"http://www.themoviedb.org/person/2293","profile":""},{"name":"Robert Rodriguez","job":"Director","department":"Directing","character":"","id":2294,"order":0,"cast_id":2,"url":"http://www.themoviedb.org/person/2294","profile":""},{"name":"Quentin Tarantino","job":"Director","department":"Directing","character":"Special Guest Director","id":138,"order":0,"cast_id":3,"url":"http://www.themoviedb.org/person/138","profile":"http://hwcdn.themoviedb.org/profiles/16a/4bdeab0e017a3c35b700016a/quentin-tarantino-thumb.jpg"},{"name":"Graeme Revell","job":"Original Music Composer","department":"Sound","character":"","id":5912,"order":0,"cast_id":13,"url":"http://www.themoviedb.org/person/5912","profile":""},{"name":"John Debney","job":"Original Music Composer","department":"Sound","character":"","id":4500,"order":0,"cast_id":12,"url":"http://www.themoviedb.org/person/4500","profile":""},{"name":"Elizabeth Avellan","job":"Producer","department":"Production","character":"","id":5911,"order":0,"cast_id":11,"url":"http://www.themoviedb.org/person/5911","profile":""},{"name":"Robert Rodriguez","job":"Original Music Composer","department":"Sound","character":"","id":2294,"order":0,"cast_id":14,"url":"http://www.themoviedb.org/person/2294","profile":""},{"name":"Robert Rodriguez","job":"Director of Photography","department":"Camera","character":"","id":2294,"order":0,"cast_id":15,"url":"http://www.themoviedb.org/person/2294","profile":""},{"name":"Robert Rodriguez","job":"Editor","department":"Editing","character":"","id":2294,"order":0,"cast_id":16,"url":"http://www.themoviedb.org/person/2294","profile":""},{"name":"Beth Sepko","job":"Casting","department":"Production","character":"","id":5913,"order":0,"cast_id":17,"url":"http://www.themoviedb.org/person/5913","profile":""},{"name":"Mary Vernieu","job":"Casting","department":"Production","character":"","id":5914,"order":0,"cast_id":18,"url":"http://www.themoviedb.org/person/5914","profile":""},{"name":"Bruce Willis","job":"Actor","department":"Actors","character":"Hartigan","id":62,"order":0,"cast_id":5,"url":"http://www.themoviedb.org/person/62","profile":"http://hwcdn.themoviedb.org/profiles/190/4bd72974017a3c21ea000190/bruce-willis-thumb.jpg"},{"name":"Mickey Rourke","job":"Actor","department":"Actors","character":"Marv","id":2295,"order":1,"cast_id":6,"url":"http://www.themoviedb.org/person/2295","profile":"http://hwcdn.themoviedb.org/profiles/086/4bcf7797017a3c63ed000086/mickey-rourke-thumb.jpg"},{"name":"Clive Owen","job":"Actor","department":"Actors","character":"Dwight","id":2296,"order":2,"cast_id":7,"url":"http://www.themoviedb.org/person/2296","profile":"http://hwcdn.themoviedb.org/profiles/6b6/4be18daf017a3c35bd0006b6/clive-owen-thumb.jpg"},{"name":"Jessica Alba","job":"Actor","department":"Actors","character":"Nancy Callahan","id":56731,"order":3,"cast_id":8,"url":"http://www.themoviedb.org/person/56731","profile":"http://hwcdn.themoviedb.org/profiles/0c9/4bcc3ba0017a3c0f340000c9/jessica-alba-thumb.jpg"},{"name":"Elijah Wood","job":"Actor","department":"Actors","character":"Kevin","id":109,"order":4,"cast_id":9,"url":"http://www.themoviedb.org/person/109","profile":"http://hwcdn.themoviedb.org/profiles/00e/4bc9f571017a3c0e9100000e/elijah-wood-thumb.jpg"},{"name":"Josh Hartnett","job":"Actor","department":"Actors","character":"The Salesman","id":2299,"order":5,"cast_id":10,"url":"http://www.themoviedb.org/person/2299","profile":""},{"name":"Jaime King","job":"Actor","department":"Actors","character":"Goldie/Wendy","id":5915,"order":6,"cast_id":19,"url":"http://www.themoviedb.org/person/5915","profile":"http://hwcdn.themoviedb.org/profiles/0ce/4bcc3bbd017a3c0f340000ce/jaime-king-thumb.jpg"},{"name":"Rutger Hauer","job":"Actor","department":"Actors","character":"Cardinal Roark","id":585,"order":7,"cast_id":20,"url":"http://www.themoviedb.org/person/585","profile":"http://hwcdn.themoviedb.org/profiles/747/4c096394017a3c7e89000747/rutger-hauer-thumb.jpg"},{"name":"Benicio Del Toro","job":"Actor","department":"Actors","character":"Jackie Boy","id":1121,"order":8,"cast_id":21,"url":"http://www.themoviedb.org/person/1121","profile":"http://hwcdn.themoviedb.org/profiles/2e1/4bf72cf2017a3c77260002e1/benicio-del-toro-thumb.jpg"},{"name":"Rosario Dawson","job":"Actor","department":"Actors","character":"Gail","id":5916,"order":9,"cast_id":22,"url":"http://www.themoviedb.org/person/5916","profile":"http://hwcdn.themoviedb.org/profiles/0b2/4bcc3bde017a3c0f320000b2/rosario-dawson-thumb.jpg"},{"name":"Michael Clarke Duncan","job":"Actor","department":"Actors","character":"Manute","id":61981,"order":10,"cast_id":23,"url":"http://www.themoviedb.org/person/61981","profile":"http://hwcdn.themoviedb.org/profiles/43b/4bfa6fd1017a3c703300043b/michael-clarke-duncan-thumb.jpg"},{"name":"Devon Aoki","job":"Actor","department":"Actors","character":"Miho","id":6278,"order":11,"cast_id":24,"url":"http://www.themoviedb.org/person/6278","profile":"http://hwcdn.themoviedb.org/profiles/071/4bcc3bfe017a3c0f2a000071/devon-aoki-thumb.jpg"},{"name":"Alexis Bledel","job":"Actor","department":"Actors","character":"Becky","id":6279,"order":12,"cast_id":25,"url":"http://www.themoviedb.org/person/6279","profile":"http://hwcdn.themoviedb.org/profiles/0b6/4bcc3c1e017a3c0f320000b6/alexis-bledel-thumb.jpg"},{"name":"Powers Boothe","job":"Actor","department":"Actors","character":"Senator Roark","id":6280,"order":13,"cast_id":26,"url":"http://www.themoviedb.org/person/6280","profile":""},{"name":"Marley Shelton","job":"Actor","department":"Actors","character":"The Customer","id":6407,"order":14,"cast_id":27,"url":"http://www.themoviedb.org/person/6407","profile":"http://hwcdn.themoviedb.org/profiles/0bb/4bcc3c3c017a3c0f320000bb/marley-shelton-thumb.jpg"},{"name":"Nick Stahl","job":"Actor","department":"Actors","character":"Roark Jr./The Yellow Bastard","id":6408,"order":15,"cast_id":28,"url":"http://www.themoviedb.org/person/6408","profile":""},{"name":"Michael Madsen","job":"Actor","department":"Actors","character":"Bob","id":147,"order":16,"cast_id":29,"url":"http://www.themoviedb.org/person/147","profile":"http://hwcdn.themoviedb.org/profiles/090/4c2385d77b9aa13f65000090/michael-madsen-thumb.jpg"},{"name":"Makenzie Vega","job":"Actor","department":"Actors","character":"Nancy (11 Years)","id":2139,"order":17,"cast_id":30,"url":"http://www.themoviedb.org/person/2139","profile":""},{"name":"Brittany Murphy","job":"Actor","department":"Actors","character":"Shellie","id":328,"order":18,"cast_id":31,"url":"http://www.themoviedb.org/person/328","profile":"http://hwcdn.themoviedb.org/profiles/095/4bcc2ffb017a3c0f26000095/brittany-murphy-thumb.jpg"},{"name":"Carla Gugino","job":"Actor","department":"Actors","character":"Lucille","id":17832,"order":19,"cast_id":32,"url":"http://www.themoviedb.org/person/17832","profile":"http://hwcdn.themoviedb.org/profiles/95c/4be431ff017a3c35b900095c/carla-gugino-thumb.jpg"}],"version":48,"last_modified_at":"2010-08-21 15:23:12"}]
         | 
| @@ -0,0 +1,15 @@ | |
| 1 | 
            +
            HTTP/1.1 200 OK
         | 
| 2 | 
            +
            Server: nginx
         | 
| 3 | 
            +
            Date: Mon, 23 Aug 2010 16:44:10 GMT
         | 
| 4 | 
            +
            Content-Type: text/json; charset=utf-8
         | 
| 5 | 
            +
            Transfer-Encoding: chunked
         | 
| 6 | 
            +
            Connection: keep-alive
         | 
| 7 | 
            +
            Keep-Alive: timeout=20
         | 
| 8 | 
            +
            Status: 200 OK
         | 
| 9 | 
            +
            Cache-Control: public, max-age=21600
         | 
| 10 | 
            +
            X-Varnish: 2542123184
         | 
| 11 | 
            +
            Age: 0
         | 
| 12 | 
            +
            Via: 1.1 varnish
         | 
| 13 | 
            +
            X-Cache: MISS
         | 
| 14 | 
            +
             | 
| 15 | 
            +
            [{"popularity":3,"translated":true,"adult":false,"language":"en","original_name":"Sin City","name":"Sin City","alternative_name":null,"movie_type":"movie","id":187,"imdb_id":"tt0401792","url":"http://www.themoviedb.org/movie/187","votes":62,"rating":7.0,"certification":"R","overview":"The first of three films based on the beautiful comic world of Frank Miller. Sin City depicts the comic book almost page for page with its heavy contrast black and white extremely violent and graphic imagery. Sin City is set in a dangerous and dark Basin City where corruption, sex and violence is everyday life.","released":"2005-04-01","runtime":124,"genres":[{"type":"genre","url":"http://themoviedb.org/genre/crime","name":"Crime","id":80},{"type":"genre","url":"http://themoviedb.org/genre/drama","name":"Drama","id":18},{"type":"genre","url":"http://themoviedb.org/genre/thriller","name":"Thriller","id":53}],"posters":[{"image":{"type":"poster","size":"original","height":3000,"width":2124,"url":"http://hwcdn.themoviedb.org/posters/68c/4bc904e9017a3c57fe00168c/sin-city-original.jpg","id":"4bc904e9017a3c57fe00168c"}},{"image":{"type":"poster","size":"mid","height":706,"width":500,"url":"http://hwcdn.themoviedb.org/posters/68c/4bc904e9017a3c57fe00168c/sin-city-mid.jpg","id":"4bc904e9017a3c57fe00168c"}},{"image":{"type":"poster","size":"cover","height":261,"width":185,"url":"http://hwcdn.themoviedb.org/posters/68c/4bc904e9017a3c57fe00168c/sin-city-cover.jpg","id":"4bc904e9017a3c57fe00168c"}},{"image":{"type":"poster","size":"thumb","height":130,"width":92,"url":"http://hwcdn.themoviedb.org/posters/68c/4bc904e9017a3c57fe00168c/sin-city-thumb.jpg","id":"4bc904e9017a3c57fe00168c"}},{"image":{"type":"poster","size":"original","height":3000,"width":2014,"url":"http://hwcdn.themoviedb.org/posters/6a5/4bc904f1017a3c57fe0016a5/sin-city-original.jpg","id":"4bc904f1017a3c57fe0016a5"}},{"image":{"type":"poster","size":"mid","height":745,"width":500,"url":"http://hwcdn.themoviedb.org/posters/6a5/4bc904f1017a3c57fe0016a5/sin-city-mid.jpg","id":"4bc904f1017a3c57fe0016a5"}},{"image":{"type":"poster","size":"cover","height":276,"width":185,"url":"http://hwcdn.themoviedb.org/posters/6a5/4bc904f1017a3c57fe0016a5/sin-city-cover.jpg","id":"4bc904f1017a3c57fe0016a5"}},{"image":{"type":"poster","size":"thumb","height":137,"width":92,"url":"http://hwcdn.themoviedb.org/posters/6a5/4bc904f1017a3c57fe0016a5/sin-city-thumb.jpg","id":"4bc904f1017a3c57fe0016a5"}},{"image":{"type":"poster","size":"original","height":2802,"width":946,"url":"http://hwcdn.themoviedb.org/posters/06e/4c55d9087b9aa151f700006e/sin-city-original.jpg","id":"4c55d9087b9aa151f700006e"}},{"image":{"type":"poster","size":"mid","height":1481,"width":500,"url":"http://hwcdn.themoviedb.org/posters/06e/4c55d9087b9aa151f700006e/sin-city-mid.jpg","id":"4c55d9087b9aa151f700006e"}},{"image":{"type":"poster","size":"cover","height":548,"width":185,"url":"http://hwcdn.themoviedb.org/posters/06e/4c55d9087b9aa151f700006e/sin-city-cover.jpg","id":"4c55d9087b9aa151f700006e"}},{"image":{"type":"poster","size":"thumb","height":273,"width":92,"url":"http://hwcdn.themoviedb.org/posters/06e/4c55d9087b9aa151f700006e/sin-city-thumb.jpg","id":"4c55d9087b9aa151f700006e"}},{"image":{"type":"poster","size":"original","height":759,"width":570,"url":"http://hwcdn.themoviedb.org/posters/6aa/4bc904f4017a3c57fe0016aa/sin-city-original.png","id":"4bc904f4017a3c57fe0016aa"}},{"image":{"type":"poster","size":"mid","height":666,"width":500,"url":"http://hwcdn.themoviedb.org/posters/6aa/4bc904f4017a3c57fe0016aa/sin-city-mid.png","id":"4bc904f4017a3c57fe0016aa"}},{"image":{"type":"poster","size":"cover","height":246,"width":185,"url":"http://hwcdn.themoviedb.org/posters/6aa/4bc904f4017a3c57fe0016aa/sin-city-cover.png","id":"4bc904f4017a3c57fe0016aa"}},{"image":{"type":"poster","size":"thumb","height":122,"width":92,"url":"http://hwcdn.themoviedb.org/posters/6aa/4bc904f4017a3c57fe0016aa/sin-city-thumb.png","id":"4bc904f4017a3c57fe0016aa"}},{"image":{"type":"poster","size":"original","height":3648,"width":2594,"url":"http://hwcdn.themoviedb.org/posters/041/4c55d9417b9aa151f2000041/sin-city-original.jpg","id":"4c55d9417b9aa151f2000041"}},{"image":{"type":"poster","size":"mid","height":703,"width":500,"url":"http://hwcdn.themoviedb.org/posters/041/4c55d9417b9aa151f2000041/sin-city-mid.jpg","id":"4c55d9417b9aa151f2000041"}},{"image":{"type":"poster","size":"cover","height":260,"width":185,"url":"http://hwcdn.themoviedb.org/posters/041/4c55d9417b9aa151f2000041/sin-city-cover.jpg","id":"4c55d9417b9aa151f2000041"}},{"image":{"type":"poster","size":"thumb","height":129,"width":92,"url":"http://hwcdn.themoviedb.org/posters/041/4c55d9417b9aa151f2000041/sin-city-thumb.jpg","id":"4c55d9417b9aa151f2000041"}},{"image":{"type":"poster","size":"original","height":3000,"width":2027,"url":"http://hwcdn.themoviedb.org/posters/6a0/4bc904ef017a3c57fe0016a0/sin-city-original.jpg","id":"4bc904ef017a3c57fe0016a0"}},{"image":{"type":"poster","size":"mid","height":740,"width":500,"url":"http://hwcdn.themoviedb.org/posters/6a0/4bc904ef017a3c57fe0016a0/sin-city-mid.jpg","id":"4bc904ef017a3c57fe0016a0"}},{"image":{"type":"poster","size":"cover","height":274,"width":185,"url":"http://hwcdn.themoviedb.org/posters/6a0/4bc904ef017a3c57fe0016a0/sin-city-cover.jpg","id":"4bc904ef017a3c57fe0016a0"}},{"image":{"type":"poster","size":"thumb","height":136,"width":92,"url":"http://hwcdn.themoviedb.org/posters/6a0/4bc904ef017a3c57fe0016a0/sin-city-thumb.jpg","id":"4bc904ef017a3c57fe0016a0"}},{"image":{"type":"poster","size":"original","height":3000,"width":2024,"url":"http://hwcdn.themoviedb.org/posters/69b/4bc904ee017a3c57fe00169b/sin-city-original.jpg","id":"4bc904ee017a3c57fe00169b"}},{"image":{"type":"poster","size":"mid","height":741,"width":500,"url":"http://hwcdn.themoviedb.org/posters/69b/4bc904ee017a3c57fe00169b/sin-city-mid.jpg","id":"4bc904ee017a3c57fe00169b"}},{"image":{"type":"poster","size":"cover","height":274,"width":185,"url":"http://hwcdn.themoviedb.org/posters/69b/4bc904ee017a3c57fe00169b/sin-city-cover.jpg","id":"4bc904ee017a3c57fe00169b"}},{"image":{"type":"poster","size":"thumb","height":136,"width":92,"url":"http://hwcdn.themoviedb.org/posters/69b/4bc904ee017a3c57fe00169b/sin-city-thumb.jpg","id":"4bc904ee017a3c57fe00169b"}},{"image":{"type":"poster","size":"original","height":3000,"width":2032,"url":"http://hwcdn.themoviedb.org/posters/696/4bc904eb017a3c57fe001696/sin-city-original.jpg","id":"4bc904eb017a3c57fe001696"}},{"image":{"type":"poster","size":"mid","height":738,"width":500,"url":"http://hwcdn.themoviedb.org/posters/696/4bc904eb017a3c57fe001696/sin-city-mid.jpg","id":"4bc904eb017a3c57fe001696"}},{"image":{"type":"poster","size":"cover","height":273,"width":185,"url":"http://hwcdn.themoviedb.org/posters/696/4bc904eb017a3c57fe001696/sin-city-cover.jpg","id":"4bc904eb017a3c57fe001696"}},{"image":{"type":"poster","size":"thumb","height":136,"width":92,"url":"http://hwcdn.themoviedb.org/posters/696/4bc904eb017a3c57fe001696/sin-city-thumb.jpg","id":"4bc904eb017a3c57fe001696"}},{"image":{"type":"poster","size":"original","height":3000,"width":2025,"url":"http://hwcdn.themoviedb.org/posters/691/4bc904ea017a3c57fe001691/sin-city-original.jpg","id":"4bc904ea017a3c57fe001691"}},{"image":{"type":"poster","size":"mid","height":741,"width":500,"url":"http://hwcdn.themoviedb.org/posters/691/4bc904ea017a3c57fe001691/sin-city-mid.jpg","id":"4bc904ea017a3c57fe001691"}},{"image":{"type":"poster","size":"cover","height":274,"width":185,"url":"http://hwcdn.themoviedb.org/posters/691/4bc904ea017a3c57fe001691/sin-city-cover.jpg","id":"4bc904ea017a3c57fe001691"}},{"image":{"type":"poster","size":"thumb","height":136,"width":92,"url":"http://hwcdn.themoviedb.org/posters/691/4bc904ea017a3c57fe001691/sin-city-thumb.jpg","id":"4bc904ea017a3c57fe001691"}},{"image":{"type":"poster","size":"original","height":1450,"width":1023,"url":"http://hwcdn.themoviedb.org/posters/9c7/4c6fef5f7b9aa13ab60009c7/sin-city-original.jpg","id":"4c6fef5f7b9aa13ab60009c7"}},{"image":{"type":"poster","size":"mid","height":709,"width":500,"url":"http://hwcdn.themoviedb.org/posters/9c7/4c6fef5f7b9aa13ab60009c7/sin-city-mid.jpg","id":"4c6fef5f7b9aa13ab60009c7"}},{"image":{"type":"poster","size":"cover","height":262,"width":185,"url":"http://hwcdn.themoviedb.org/posters/9c7/4c6fef5f7b9aa13ab60009c7/sin-city-cover.jpg","id":"4c6fef5f7b9aa13ab60009c7"}},{"image":{"type":"poster","size":"thumb","height":130,"width":92,"url":"http://hwcdn.themoviedb.org/posters/9c7/4c6fef5f7b9aa13ab60009c7/sin-city-thumb.jpg","id":"4c6fef5f7b9aa13ab60009c7"}}],"backdrops":[{"image":{"type":"backdrop","size":"original","height":1080,"width":1920,"url":"http://hwcdn.themoviedb.org/backdrops/14d/4bd5a73e017a3c2e7800014d/sin-city-original.jpg","id":"4bd5a73e017a3c2e7800014d"}},{"image":{"type":"backdrop","size":"poster","height":439,"width":780,"url":"http://hwcdn.themoviedb.org/backdrops/14d/4bd5a73e017a3c2e7800014d/sin-city-poster.jpg","id":"4bd5a73e017a3c2e7800014d"}},{"image":{"type":"backdrop","size":"thumb","height":169,"width":300,"url":"http://hwcdn.themoviedb.org/backdrops/14d/4bd5a73e017a3c2e7800014d/sin-city-thumb.jpg","id":"4bd5a73e017a3c2e7800014d"}},{"image":{"type":"backdrop","size":"original","height":1080,"width":1920,"url":"http://hwcdn.themoviedb.org/backdrops/630/4bc904d7017a3c57fe001630/sin-city-original.jpg","id":"4bc904d7017a3c57fe001630"}},{"image":{"type":"backdrop","size":"poster","height":439,"width":780,"url":"http://hwcdn.themoviedb.org/backdrops/630/4bc904d7017a3c57fe001630/sin-city-poster.jpg","id":"4bc904d7017a3c57fe001630"}},{"image":{"type":"backdrop","size":"thumb","height":169,"width":300,"url":"http://hwcdn.themoviedb.org/backdrops/630/4bc904d7017a3c57fe001630/sin-city-thumb.jpg","id":"4bc904d7017a3c57fe001630"}},{"image":{"type":"backdrop","size":"original","height":1080,"width":1920,"url":"http://hwcdn.themoviedb.org/backdrops/688/4bc904e8017a3c57fe001688/sin-city-original.jpg","id":"4bc904e8017a3c57fe001688"}},{"image":{"type":"backdrop","size":"poster","height":439,"width":780,"url":"http://hwcdn.themoviedb.org/backdrops/688/4bc904e8017a3c57fe001688/sin-city-poster.jpg","id":"4bc904e8017a3c57fe001688"}},{"image":{"type":"backdrop","size":"thumb","height":169,"width":300,"url":"http://hwcdn.themoviedb.org/backdrops/688/4bc904e8017a3c57fe001688/sin-city-thumb.jpg","id":"4bc904e8017a3c57fe001688"}},{"image":{"type":"backdrop","size":"original","height":1080,"width":1920,"url":"http://hwcdn.themoviedb.org/backdrops/61c/4bc904d2017a3c57fe00161c/sin-city-original.jpg","id":"4bc904d2017a3c57fe00161c"}},{"image":{"type":"backdrop","size":"poster","height":439,"width":780,"url":"http://hwcdn.themoviedb.org/backdrops/61c/4bc904d2017a3c57fe00161c/sin-city-poster.jpg","id":"4bc904d2017a3c57fe00161c"}},{"image":{"type":"backdrop","size":"thumb","height":169,"width":300,"url":"http://hwcdn.themoviedb.org/backdrops/61c/4bc904d2017a3c57fe00161c/sin-city-thumb.jpg","id":"4bc904d2017a3c57fe00161c"}},{"image":{"type":"backdrop","size":"original","height":1080,"width":1920,"url":"http://hwcdn.themoviedb.org/backdrops/614/4bc904d1017a3c57fe001614/sin-city-original.jpg","id":"4bc904d1017a3c57fe001614"}},{"image":{"type":"backdrop","size":"poster","height":439,"width":780,"url":"http://hwcdn.themoviedb.org/backdrops/614/4bc904d1017a3c57fe001614/sin-city-poster.jpg","id":"4bc904d1017a3c57fe001614"}},{"image":{"type":"backdrop","size":"thumb","height":169,"width":300,"url":"http://hwcdn.themoviedb.org/backdrops/614/4bc904d1017a3c57fe001614/sin-city-thumb.jpg","id":"4bc904d1017a3c57fe001614"}},{"image":{"type":"backdrop","size":"original","height":1080,"width":1920,"url":"http://hwcdn.themoviedb.org/backdrops/618/4bc904d2017a3c57fe001618/sin-city-original.jpg","id":"4bc904d2017a3c57fe001618"}},{"image":{"type":"backdrop","size":"poster","height":439,"width":780,"url":"http://hwcdn.themoviedb.org/backdrops/618/4bc904d2017a3c57fe001618/sin-city-poster.jpg","id":"4bc904d2017a3c57fe001618"}},{"image":{"type":"backdrop","size":"thumb","height":169,"width":300,"url":"http://hwcdn.themoviedb.org/backdrops/618/4bc904d2017a3c57fe001618/sin-city-thumb.jpg","id":"4bc904d2017a3c57fe001618"}},{"image":{"type":"backdrop","size":"original","height":1080,"width":1920,"url":"http://hwcdn.themoviedb.org/backdrops/620/4bc904d5017a3c57fe001620/sin-city-original.jpg","id":"4bc904d5017a3c57fe001620"}},{"image":{"type":"backdrop","size":"poster","height":439,"width":780,"url":"http://hwcdn.themoviedb.org/backdrops/620/4bc904d5017a3c57fe001620/sin-city-poster.jpg","id":"4bc904d5017a3c57fe001620"}},{"image":{"type":"backdrop","size":"thumb","height":169,"width":300,"url":"http://hwcdn.themoviedb.org/backdrops/620/4bc904d5017a3c57fe001620/sin-city-thumb.jpg","id":"4bc904d5017a3c57fe001620"}},{"image":{"type":"backdrop","size":"original","height":1080,"width":1920,"url":"http://hwcdn.themoviedb.org/backdrops/624/4bc904d5017a3c57fe001624/sin-city-original.jpg","id":"4bc904d5017a3c57fe001624"}},{"image":{"type":"backdrop","size":"poster","height":439,"width":780,"url":"http://hwcdn.themoviedb.org/backdrops/624/4bc904d5017a3c57fe001624/sin-city-poster.jpg","id":"4bc904d5017a3c57fe001624"}},{"image":{"type":"backdrop","size":"thumb","height":169,"width":300,"url":"http://hwcdn.themoviedb.org/backdrops/624/4bc904d5017a3c57fe001624/sin-city-thumb.jpg","id":"4bc904d5017a3c57fe001624"}},{"image":{"type":"backdrop","size":"original","height":1080,"width":1920,"url":"http://hwcdn.themoviedb.org/backdrops/648/4bc904dc017a3c57fe001648/sin-city-original.jpg","id":"4bc904dc017a3c57fe001648"}},{"image":{"type":"backdrop","size":"poster","height":439,"width":780,"url":"http://hwcdn.themoviedb.org/backdrops/648/4bc904dc017a3c57fe001648/sin-city-poster.jpg","id":"4bc904dc017a3c57fe001648"}},{"image":{"type":"backdrop","size":"thumb","height":169,"width":300,"url":"http://hwcdn.themoviedb.org/backdrops/648/4bc904dc017a3c57fe001648/sin-city-thumb.jpg","id":"4bc904dc017a3c57fe001648"}},{"image":{"type":"backdrop","size":"original","height":1080,"width":1920,"url":"http://hwcdn.themoviedb.org/backdrops/668/4bc904e1017a3c57fe001668/sin-city-original.jpg","id":"4bc904e1017a3c57fe001668"}},{"image":{"type":"backdrop","size":"poster","height":439,"width":780,"url":"http://hwcdn.themoviedb.org/backdrops/668/4bc904e1017a3c57fe001668/sin-city-poster.jpg","id":"4bc904e1017a3c57fe001668"}},{"image":{"type":"backdrop","size":"thumb","height":169,"width":300,"url":"http://hwcdn.themoviedb.org/backdrops/668/4bc904e1017a3c57fe001668/sin-city-thumb.jpg","id":"4bc904e1017a3c57fe001668"}},{"image":{"type":"backdrop","size":"original","height":1080,"width":1920,"url":"http://hwcdn.themoviedb.org/backdrops/664/4bc904e1017a3c57fe001664/sin-city-original.jpg","id":"4bc904e1017a3c57fe001664"}},{"image":{"type":"backdrop","size":"poster","height":439,"width":780,"url":"http://hwcdn.themoviedb.org/backdrops/664/4bc904e1017a3c57fe001664/sin-city-poster.jpg","id":"4bc904e1017a3c57fe001664"}},{"image":{"type":"backdrop","size":"thumb","height":169,"width":300,"url":"http://hwcdn.themoviedb.org/backdrops/664/4bc904e1017a3c57fe001664/sin-city-thumb.jpg","id":"4bc904e1017a3c57fe001664"}},{"image":{"type":"backdrop","size":"original","height":1080,"width":1920,"url":"http://hwcdn.themoviedb.org/backdrops/660/4bc904e0017a3c57fe001660/sin-city-original.jpg","id":"4bc904e0017a3c57fe001660"}},{"image":{"type":"backdrop","size":"poster","height":439,"width":780,"url":"http://hwcdn.themoviedb.org/backdrops/660/4bc904e0017a3c57fe001660/sin-city-poster.jpg","id":"4bc904e0017a3c57fe001660"}},{"image":{"type":"backdrop","size":"thumb","height":169,"width":300,"url":"http://hwcdn.themoviedb.org/backdrops/660/4bc904e0017a3c57fe001660/sin-city-thumb.jpg","id":"4bc904e0017a3c57fe001660"}},{"image":{"type":"backdrop","size":"original","height":1080,"width":1920,"url":"http://hwcdn.themoviedb.org/backdrops/65c/4bc904e0017a3c57fe00165c/sin-city-original.jpg","id":"4bc904e0017a3c57fe00165c"}},{"image":{"type":"backdrop","size":"poster","height":439,"width":780,"url":"http://hwcdn.themoviedb.org/backdrops/65c/4bc904e0017a3c57fe00165c/sin-city-poster.jpg","id":"4bc904e0017a3c57fe00165c"}},{"image":{"type":"backdrop","size":"thumb","height":169,"width":300,"url":"http://hwcdn.themoviedb.org/backdrops/65c/4bc904e0017a3c57fe00165c/sin-city-thumb.jpg","id":"4bc904e0017a3c57fe00165c"}},{"image":{"type":"backdrop","size":"original","height":1080,"width":1920,"url":"http://hwcdn.themoviedb.org/backdrops/658/4bc904de017a3c57fe001658/sin-city-original.jpg","id":"4bc904de017a3c57fe001658"}},{"image":{"type":"backdrop","size":"poster","height":439,"width":780,"url":"http://hwcdn.themoviedb.org/backdrops/658/4bc904de017a3c57fe001658/sin-city-poster.jpg","id":"4bc904de017a3c57fe001658"}},{"image":{"type":"backdrop","size":"thumb","height":169,"width":300,"url":"http://hwcdn.themoviedb.org/backdrops/658/4bc904de017a3c57fe001658/sin-city-thumb.jpg","id":"4bc904de017a3c57fe001658"}},{"image":{"type":"backdrop","size":"original","height":1080,"width":1920,"url":"http://hwcdn.themoviedb.org/backdrops/654/4bc904dd017a3c57fe001654/sin-city-original.jpg","id":"4bc904dd017a3c57fe001654"}},{"image":{"type":"backdrop","size":"poster","height":439,"width":780,"url":"http://hwcdn.themoviedb.org/backdrops/654/4bc904dd017a3c57fe001654/sin-city-poster.jpg","id":"4bc904dd017a3c57fe001654"}},{"image":{"type":"backdrop","size":"thumb","height":169,"width":300,"url":"http://hwcdn.themoviedb.org/backdrops/654/4bc904dd017a3c57fe001654/sin-city-thumb.jpg","id":"4bc904dd017a3c57fe001654"}},{"image":{"type":"backdrop","size":"original","height":1080,"width":1920,"url":"http://hwcdn.themoviedb.org/backdrops/67c/4bc904e5017a3c57fe00167c/sin-city-original.jpg","id":"4bc904e5017a3c57fe00167c"}},{"image":{"type":"backdrop","size":"poster","height":439,"width":780,"url":"http://hwcdn.themoviedb.org/backdrops/67c/4bc904e5017a3c57fe00167c/sin-city-poster.jpg","id":"4bc904e5017a3c57fe00167c"}},{"image":{"type":"backdrop","size":"thumb","height":169,"width":300,"url":"http://hwcdn.themoviedb.org/backdrops/67c/4bc904e5017a3c57fe00167c/sin-city-thumb.jpg","id":"4bc904e5017a3c57fe00167c"}},{"image":{"type":"backdrop","size":"original","height":1080,"width":1920,"url":"http://hwcdn.themoviedb.org/backdrops/64c/4bc904dc017a3c57fe00164c/sin-city-original.jpg","id":"4bc904dc017a3c57fe00164c"}},{"image":{"type":"backdrop","size":"poster","height":439,"width":780,"url":"http://hwcdn.themoviedb.org/backdrops/64c/4bc904dc017a3c57fe00164c/sin-city-poster.jpg","id":"4bc904dc017a3c57fe00164c"}},{"image":{"type":"backdrop","size":"thumb","height":169,"width":300,"url":"http://hwcdn.themoviedb.org/backdrops/64c/4bc904dc017a3c57fe00164c/sin-city-thumb.jpg","id":"4bc904dc017a3c57fe00164c"}},{"image":{"type":"backdrop","size":"original","height":1080,"width":1920,"url":"http://hwcdn.themoviedb.org/backdrops/66c/4bc904e1017a3c57fe00166c/sin-city-original.jpg","id":"4bc904e1017a3c57fe00166c"}},{"image":{"type":"backdrop","size":"poster","height":439,"width":780,"url":"http://hwcdn.themoviedb.org/backdrops/66c/4bc904e1017a3c57fe00166c/sin-city-poster.jpg","id":"4bc904e1017a3c57fe00166c"}},{"image":{"type":"backdrop","size":"thumb","height":169,"width":300,"url":"http://hwcdn.themoviedb.org/backdrops/66c/4bc904e1017a3c57fe00166c/sin-city-thumb.jpg","id":"4bc904e1017a3c57fe00166c"}},{"image":{"type":"backdrop","size":"original","height":1080,"width":1920,"url":"http://hwcdn.themoviedb.org/backdrops/644/4bc904db017a3c57fe001644/sin-city-original.jpg","id":"4bc904db017a3c57fe001644"}},{"image":{"type":"backdrop","size":"poster","height":439,"width":780,"url":"http://hwcdn.themoviedb.org/backdrops/644/4bc904db017a3c57fe001644/sin-city-poster.jpg","id":"4bc904db017a3c57fe001644"}},{"image":{"type":"backdrop","size":"thumb","height":169,"width":300,"url":"http://hwcdn.themoviedb.org/backdrops/644/4bc904db017a3c57fe001644/sin-city-thumb.jpg","id":"4bc904db017a3c57fe001644"}},{"image":{"type":"backdrop","size":"original","height":1080,"width":1920,"url":"http://hwcdn.themoviedb.org/backdrops/640/4bc904db017a3c57fe001640/sin-city-original.jpg","id":"4bc904db017a3c57fe001640"}},{"image":{"type":"backdrop","size":"poster","height":439,"width":780,"url":"http://hwcdn.themoviedb.org/backdrops/640/4bc904db017a3c57fe001640/sin-city-poster.jpg","id":"4bc904db017a3c57fe001640"}},{"image":{"type":"backdrop","size":"thumb","height":169,"width":300,"url":"http://hwcdn.themoviedb.org/backdrops/640/4bc904db017a3c57fe001640/sin-city-thumb.jpg","id":"4bc904db017a3c57fe001640"}},{"image":{"type":"backdrop","size":"original","height":1080,"width":1920,"url":"http://hwcdn.themoviedb.org/backdrops/63c/4bc904d8017a3c57fe00163c/sin-city-original.jpg","id":"4bc904d8017a3c57fe00163c"}},{"image":{"type":"backdrop","size":"poster","height":439,"width":780,"url":"http://hwcdn.themoviedb.org/backdrops/63c/4bc904d8017a3c57fe00163c/sin-city-poster.jpg","id":"4bc904d8017a3c57fe00163c"}},{"image":{"type":"backdrop","size":"thumb","height":169,"width":300,"url":"http://hwcdn.themoviedb.org/backdrops/63c/4bc904d8017a3c57fe00163c/sin-city-thumb.jpg","id":"4bc904d8017a3c57fe00163c"}},{"image":{"type":"backdrop","size":"original","height":1080,"width":1920,"url":"http://hwcdn.themoviedb.org/backdrops/638/4bc904d8017a3c57fe001638/sin-city-original.jpg","id":"4bc904d8017a3c57fe001638"}},{"image":{"type":"backdrop","size":"poster","height":439,"width":780,"url":"http://hwcdn.themoviedb.org/backdrops/638/4bc904d8017a3c57fe001638/sin-city-poster.jpg","id":"4bc904d8017a3c57fe001638"}},{"image":{"type":"backdrop","size":"thumb","height":169,"width":300,"url":"http://hwcdn.themoviedb.org/backdrops/638/4bc904d8017a3c57fe001638/sin-city-thumb.jpg","id":"4bc904d8017a3c57fe001638"}},{"image":{"type":"backdrop","size":"original","height":1080,"width":1920,"url":"http://hwcdn.themoviedb.org/backdrops/634/4bc904d7017a3c57fe001634/sin-city-original.jpg","id":"4bc904d7017a3c57fe001634"}},{"image":{"type":"backdrop","size":"poster","height":439,"width":780,"url":"http://hwcdn.themoviedb.org/backdrops/634/4bc904d7017a3c57fe001634/sin-city-poster.jpg","id":"4bc904d7017a3c57fe001634"}},{"image":{"type":"backdrop","size":"thumb","height":169,"width":300,"url":"http://hwcdn.themoviedb.org/backdrops/634/4bc904d7017a3c57fe001634/sin-city-thumb.jpg","id":"4bc904d7017a3c57fe001634"}},{"image":{"type":"backdrop","size":"original","height":1080,"width":1920,"url":"http://hwcdn.themoviedb.org/backdrops/680/4bc904e5017a3c57fe001680/sin-city-original.jpg","id":"4bc904e5017a3c57fe001680"}},{"image":{"type":"backdrop","size":"poster","height":439,"width":780,"url":"http://hwcdn.themoviedb.org/backdrops/680/4bc904e5017a3c57fe001680/sin-city-poster.jpg","id":"4bc904e5017a3c57fe001680"}},{"image":{"type":"backdrop","size":"thumb","height":169,"width":300,"url":"http://hwcdn.themoviedb.org/backdrops/680/4bc904e5017a3c57fe001680/sin-city-thumb.jpg","id":"4bc904e5017a3c57fe001680"}},{"image":{"type":"backdrop","size":"original","height":1080,"width":1920,"url":"http://hwcdn.themoviedb.org/backdrops/62c/4bc904d6017a3c57fe00162c/sin-city-original.jpg","id":"4bc904d6017a3c57fe00162c"}},{"image":{"type":"backdrop","size":"poster","height":439,"width":780,"url":"http://hwcdn.themoviedb.org/backdrops/62c/4bc904d6017a3c57fe00162c/sin-city-poster.jpg","id":"4bc904d6017a3c57fe00162c"}},{"image":{"type":"backdrop","size":"thumb","height":169,"width":300,"url":"http://hwcdn.themoviedb.org/backdrops/62c/4bc904d6017a3c57fe00162c/sin-city-thumb.jpg","id":"4bc904d6017a3c57fe00162c"}},{"image":{"type":"backdrop","size":"original","height":1080,"width":1920,"url":"http://hwcdn.themoviedb.org/backdrops/628/4bc904d6017a3c57fe001628/sin-city-original.jpg","id":"4bc904d6017a3c57fe001628"}},{"image":{"type":"backdrop","size":"poster","height":439,"width":780,"url":"http://hwcdn.themoviedb.org/backdrops/628/4bc904d6017a3c57fe001628/sin-city-poster.jpg","id":"4bc904d6017a3c57fe001628"}},{"image":{"type":"backdrop","size":"thumb","height":169,"width":300,"url":"http://hwcdn.themoviedb.org/backdrops/628/4bc904d6017a3c57fe001628/sin-city-thumb.jpg","id":"4bc904d6017a3c57fe001628"}},{"image":{"type":"backdrop","size":"original","height":1080,"width":1920,"url":"http://hwcdn.themoviedb.org/backdrops/670/4bc904e4017a3c57fe001670/sin-city-original.jpg","id":"4bc904e4017a3c57fe001670"}},{"image":{"type":"backdrop","size":"poster","height":439,"width":780,"url":"http://hwcdn.themoviedb.org/backdrops/670/4bc904e4017a3c57fe001670/sin-city-poster.jpg","id":"4bc904e4017a3c57fe001670"}},{"image":{"type":"backdrop","size":"thumb","height":169,"width":300,"url":"http://hwcdn.themoviedb.org/backdrops/670/4bc904e4017a3c57fe001670/sin-city-thumb.jpg","id":"4bc904e4017a3c57fe001670"}},{"image":{"type":"backdrop","size":"original","height":1080,"width":1920,"url":"http://hwcdn.themoviedb.org/backdrops/674/4bc904e4017a3c57fe001674/sin-city-original.jpg","id":"4bc904e4017a3c57fe001674"}},{"image":{"type":"backdrop","size":"poster","height":439,"width":780,"url":"http://hwcdn.themoviedb.org/backdrops/674/4bc904e4017a3c57fe001674/sin-city-poster.jpg","id":"4bc904e4017a3c57fe001674"}},{"image":{"type":"backdrop","size":"thumb","height":169,"width":300,"url":"http://hwcdn.themoviedb.org/backdrops/674/4bc904e4017a3c57fe001674/sin-city-thumb.jpg","id":"4bc904e4017a3c57fe001674"}},{"image":{"type":"backdrop","size":"original","height":1080,"width":1920,"url":"http://hwcdn.themoviedb.org/backdrops/684/4bc904e8017a3c57fe001684/sin-city-original.jpg","id":"4bc904e8017a3c57fe001684"}},{"image":{"type":"backdrop","size":"poster","height":439,"width":780,"url":"http://hwcdn.themoviedb.org/backdrops/684/4bc904e8017a3c57fe001684/sin-city-poster.jpg","id":"4bc904e8017a3c57fe001684"}},{"image":{"type":"backdrop","size":"thumb","height":169,"width":300,"url":"http://hwcdn.themoviedb.org/backdrops/684/4bc904e8017a3c57fe001684/sin-city-thumb.jpg","id":"4bc904e8017a3c57fe001684"}},{"image":{"type":"backdrop","size":"original","height":1080,"width":1920,"url":"http://hwcdn.themoviedb.org/backdrops/678/4bc904e5017a3c57fe001678/sin-city-original.jpg","id":"4bc904e5017a3c57fe001678"}},{"image":{"type":"backdrop","size":"poster","height":439,"width":780,"url":"http://hwcdn.themoviedb.org/backdrops/678/4bc904e5017a3c57fe001678/sin-city-poster.jpg","id":"4bc904e5017a3c57fe001678"}},{"image":{"type":"backdrop","size":"thumb","height":169,"width":300,"url":"http://hwcdn.themoviedb.org/backdrops/678/4bc904e5017a3c57fe001678/sin-city-thumb.jpg","id":"4bc904e5017a3c57fe001678"}},{"image":{"type":"backdrop","size":"original","height":1080,"width":1920,"url":"http://hwcdn.themoviedb.org/backdrops/650/4bc904dd017a3c57fe001650/sin-city-original.jpg","id":"4bc904dd017a3c57fe001650"}},{"image":{"type":"backdrop","size":"poster","height":439,"width":780,"url":"http://hwcdn.themoviedb.org/backdrops/650/4bc904dd017a3c57fe001650/sin-city-poster.jpg","id":"4bc904dd017a3c57fe001650"}},{"image":{"type":"backdrop","size":"thumb","height":169,"width":300,"url":"http://hwcdn.themoviedb.org/backdrops/650/4bc904dd017a3c57fe001650/sin-city-thumb.jpg","id":"4bc904dd017a3c57fe001650"}}],"version":48,"last_modified_at":"2010-08-21 15:23:12"}]
         | 
| @@ -0,0 +1,15 @@ | |
| 1 | 
            +
            HTTP/1.1 200 OK
         | 
| 2 | 
            +
            Server: nginx
         | 
| 3 | 
            +
            Date: Mon, 23 Aug 2010 16:41:11 GMT
         | 
| 4 | 
            +
            Content-Type: text/json; charset=utf-8
         | 
| 5 | 
            +
            Transfer-Encoding: chunked
         | 
| 6 | 
            +
            Connection: keep-alive
         | 
| 7 | 
            +
            Keep-Alive: timeout=20
         | 
| 8 | 
            +
            Status: 200 OK
         | 
| 9 | 
            +
            Cache-Control: public, max-age=21600
         | 
| 10 | 
            +
            X-Varnish: 2542110576 2542059510
         | 
| 11 | 
            +
            Age: 751
         | 
| 12 | 
            +
            Via: 1.1 varnish
         | 
| 13 | 
            +
            X-Cache: HIT
         | 
| 14 | 
            +
             | 
| 15 | 
            +
            [{"popularity":3,"name":"Brad Pitt","known_as":[],"id":287,"biography":"William Bradley \"Brad\" Pitt (born December 18, 1963) is an American actor and film producer. Pitt has received two Academy Award nominations and four Golden Globe Award nominations, winning one. He has been described as one of the world's most attractive men, a label for which he has received substantial media attention.","known_movies":37,"birthday":"1963-12-18","birthplace":"Shawnee, Oklahoma, United States","url":"http://www.themoviedb.org/person/287","filmography":[{"name":"Twelve Monkeys","id":63,"job":"Actor","department":"Actors","character":"Jeffrey Goines","cast_id":10,"url":"http://www.themoviedb.org/movie/63","poster":"http://hwcdn.themoviedb.org/posters/530/4bc9020d017a3c57fe000530/twelve-monkeys-cover.jpg"},{"name":"Snatch","id":107,"job":"Actor","department":"Actors","character":"Mickey O'Neil","cast_id":11,"url":"http://www.themoviedb.org/movie/107","poster":"http://hwcdn.themoviedb.org/posters/019/4bcddeee017a3c6b45000019/snatch-cover.jpg"},{"name":"Ocean's Eleven","id":161,"job":"Actor","department":"Actors","character":"Rusty Ryan","cast_id":12,"url":"http://www.themoviedb.org/movie/161","poster":"http://hwcdn.themoviedb.org/posters/31e/4bc9045e017a3c57fe00131e/ocean-s-eleven-cover.jpg"},{"name":"Ocean's Twelve","id":163,"job":"Actor","department":"Actors","character":"Rusty Ryan","cast_id":12,"url":"http://www.themoviedb.org/movie/163","poster":"http://hwcdn.themoviedb.org/posters/366/4bc90468017a3c57fe001366/ocean-s-twelve-cover.jpg"},{"name":"A River Runs Throught It","id":293,"job":"Actor","department":"Actors","character":" \tPaul Maclean","cast_id":4,"url":"http://www.themoviedb.org/movie/293","poster":"http://hwcdn.themoviedb.org/posters/3a3/4c43d9b37b9aa145930003a3/a-river-runs-through-it-cover.jpg"},{"name":"Meet Joe Black","id":297,"job":"Actor","department":"Actors","character":"Joe Black","cast_id":2,"url":"http://www.themoviedb.org/movie/297","poster":"http://hwcdn.themoviedb.org/posters/fe2/4bc9065b017a3c57fe001fe2/meet-joe-black-cover.jpg"},{"name":"Ocean's Thirteen","id":298,"job":"Actor","department":"Actors","character":" Robert \u201cRusty\u201d Charles Ryan","cast_id":2,"url":"http://www.themoviedb.org/movie/298","poster":"http://hwcdn.themoviedb.org/posters/045/4c3fbbd47b9aa14283000045/ocean-s-thirteen-cover.jpg"},{"name":"True Romance","id":319,"job":"Actor","department":"Actors","character":"Floyd","cast_id":11,"url":"http://www.themoviedb.org/movie/319","poster":"http://hwcdn.themoviedb.org/posters/171/4bc90697017a3c57fe002171/true-romance-cover.jpg"},{"name":"Being John Malkovich","id":492,"job":"Actor","department":"Actors","character":"Himself","cast_id":27,"url":"http://www.themoviedb.org/movie/492","poster":"http://hwcdn.themoviedb.org/posters/bc1/4bc90820017a3c57fe002bc1/being-john-malkovich-cover.jpg"},{"name":"Fight Club","id":550,"job":"Actor","department":"Actors","character":"Tyler Durden","cast_id":5,"url":"http://www.themoviedb.org/movie/550","poster":"http://hwcdn.themoviedb.org/posters/f75/4bc908ab017a3c57fe002f75/fight-club-cover.jpg"},{"name":"Interview with the Vampire","id":628,"job":"Actor","department":"Actors","character":"Louis de Pointe du Lac","cast_id":18,"url":"http://www.themoviedb.org/movie/628","poster":"http://hwcdn.themoviedb.org/posters/917/4bc90a51017a3c57fe003917/interview-with-the-vampire-cover.jpg"},{"name":"Troy","id":652,"job":"Actor","department":"Actors","character":"Achilles","cast_id":23,"url":"http://www.themoviedb.org/movie/652","poster":"http://hwcdn.themoviedb.org/posters/b5a/4bc90aaf017a3c57fe003b5a/troy-cover.jpg"},{"name":"Troy","id":652,"job":"Other","department":"Production","character":"","cast_id":42,"url":"http://www.themoviedb.org/movie/652","poster":"http://hwcdn.themoviedb.org/posters/b5a/4bc90aaf017a3c57fe003b5a/troy-cover.jpg"},{"name":"Mr. \u0026 Mrs. Smith ","id":787,"job":"Actor","department":"Actors","character":"John Smith","cast_id":20,"url":"http://www.themoviedb.org/movie/787","poster":"http://hwcdn.themoviedb.org/posters/65b/4bc90c97017a3c57fe00465b/mr-mrs-smith-cover.jpg"},{"name":"Sleepers","id":819,"job":"Actor","department":"Actors","character":"Michael Sullivan","cast_id":26,"url":"http://www.themoviedb.org/movie/819","poster":"http://hwcdn.themoviedb.org/posters/8fc/4bc90cff017a3c57fe0048fc/sleepers-cover.jpg"},{"name":"Seven Years in Tibet","id":978,"job":"Actor","department":"Actors","character":"Heinrich Harrer","cast_id":14,"url":"http://www.themoviedb.org/movie/978","poster":"http://hwcdn.themoviedb.org/posters/580/4bc90eed017a3c57fe005580/seven-years-in-tibet-cover.jpg"},{"name":"Babel","id":1164,"job":"Actor","department":"Actors","character":"Richard","cast_id":1,"url":"http://www.themoviedb.org/movie/1164","poster":"http://hwcdn.themoviedb.org/posters/81d/4bc90f49017a3c57fe00581d/babel-cover.jpg"},{"name":"The Departed","id":1422,"job":"Producer","department":"Production","character":"","cast_id":4,"url":"http://www.themoviedb.org/movie/1422","poster":"http://hwcdn.themoviedb.org/posters/fc4/4bc91073017a3c57fe005fc4/the-departed-cover.jpg"},{"name":"Spy Game","id":1535,"job":"Actor","department":"Actors","character":"Tom Bishop","cast_id":3,"url":"http://www.themoviedb.org/movie/1535","poster":"http://hwcdn.themoviedb.org/posters/31c/4bc910f0017a3c57fe00631c/spy-game-cover.jpg"},{"name":"Thelma \u0026 Louise ","id":1541,"job":"Actor","department":"Actors","character":"J.D.","cast_id":4,"url":"http://www.themoviedb.org/movie/1541","poster":"http://hwcdn.themoviedb.org/posters/254/4bd20279017a3c63ea000254/thelma-louise-cover.jpg"},{"name":"A Mighty Heart","id":1988,"job":"Producer","department":"Production","character":"","cast_id":4,"url":"http://www.themoviedb.org/movie/1988","poster":"http://hwcdn.themoviedb.org/posters/a94/4bc9146f017a3c57fe007a94/a-mighty-heart-cover.jpg"},{"name":"The Devil's Own ","id":4477,"job":"Actor","department":"Actors","character":"Frankie McGuire","cast_id":2,"url":"http://www.themoviedb.org/movie/4477","poster":"http://hwcdn.themoviedb.org/posters/2f6/4bc91a69017a3c57fe00a2f6/the-devil-s-own-cover.jpg"},{"name":"The Assassination of Jesse James by the Coward Robert Ford","id":4512,"job":"Actor","department":"Actors","character":"Jesse James","cast_id":14,"url":"http://www.themoviedb.org/movie/4512","poster":"http://hwcdn.themoviedb.org/posters/38b/4bc91a81017a3c57fe00a38b/the-assassination-of-jesse-james-by-the-coward-robert-ford-cover.jpg"},{"name":"Confessions of a Dangerous Mind","id":4912,"job":"Actor","department":"Actors","character":"Game Show Kandidat","cast_id":20,"url":"http://www.themoviedb.org/movie/4912","poster":"http://hwcdn.themoviedb.org/posters/982/4bc91b63017a3c57fe00a982/confessions-of-a-dangerous-mind-cover.jpg"},{"name":"The Curious Case of Benjamin Button","id":4922,"job":"Actor","department":"Actors","character":"Benjamin Button","cast_id":5,"url":"http://www.themoviedb.org/movie/4922","poster":"http://hwcdn.themoviedb.org/posters/9bf/4bc91b6b017a3c57fe00a9bf/the-curious-case-of-benjamin-button-cover.jpg"},{"name":"Burn After Reading","id":4944,"job":"Actor","department":"Actors","character":"Chad Feldheimer","cast_id":3,"url":"http://www.themoviedb.org/movie/4944","poster":"http://hwcdn.themoviedb.org/posters/a62/4bc91b88017a3c57fe00aa62/burn-after-reading-cover.jpg"},{"name":"The Mexican","id":6073,"job":"Actor","department":"Actors","character":"Jerry Welbach","cast_id":1,"url":"http://www.themoviedb.org/movie/6073","poster":"http://hwcdn.themoviedb.org/posters/849/4bc91d78017a3c57fe00b849/the-mexican-cover.jpg"},{"name":"Running with Scissors","id":7510,"job":"Producer","department":"Production","character":"","cast_id":19,"url":"http://www.themoviedb.org/movie/7510","poster":"http://hwcdn.themoviedb.org/posters/5dc/4bc91f55017a3c57fe00c5dc/running-with-scissors-cover.jpg"},{"name":"Dirty Tricks","id":8947,"job":"Actor","department":"Actors","character":"John Dean","cast_id":2,"url":"http://www.themoviedb.org/movie/8947","poster":""},{"name":"Tree of Life","id":8967,"job":"Actor","department":"Actors","character":"n.a.","cast_id":2,"url":"http://www.themoviedb.org/movie/8967","poster":""},{"name":"Kalifornia","id":10909,"job":"Actor","department":"Actors","character":"Early Grayce","cast_id":2,"url":"http://www.themoviedb.org/movie/10909","poster":"http://hwcdn.themoviedb.org/posters/2be/4bc93159017a3c57fe0142be/kalifornia-cover.jpg"},{"name":"Too Young to Die?","id":10917,"job":"Actor","department":"Actors","character":" \tBilly Canton","cast_id":3,"url":"http://www.themoviedb.org/movie/10917","poster":"http://hwcdn.themoviedb.org/posters/314/4bc93161017a3c57fe014314/too-young-to-die-cover.jpg"},{"name":"Cool World","id":14239,"job":"Actor","department":"Actors","character":"Detective Frank Harris","cast_id":3,"url":"http://www.themoviedb.org/movie/14239","poster":"http://hwcdn.themoviedb.org/posters/063/4c5f8e2c5e73d63462000063/cool-world-cover.jpg"},{"name":"Sinbad - Legend of the Seven Seas","id":14411,"job":"Actor","department":"Actors","character":"Sinbad","cast_id":1,"url":"http://www.themoviedb.org/movie/14411","poster":"http://hwcdn.themoviedb.org/posters/8cc/4bc942d8017a3c57fe01c8cc/sinbad-legend-of-the-seven-seas-cover.jpg"},{"name":"Inglourious Basterds","id":16869,"job":"Actor","department":"Actors","character":"Lt. Aldo Raine ","cast_id":3,"url":"http://www.themoviedb.org/movie/16869","poster":"http://hwcdn.themoviedb.org/posters/fc2/4bc94d9c017a3c57fe021fc2/inglourious-basterds-cover.jpg"},{"name":"The Hamster Factor and Other Tales of Twelve Monkeys ","id":30565,"job":"Actor","department":"Actors","character":"Himself","cast_id":7,"url":"http://www.themoviedb.org/movie/30565","poster":""},{"name":"Megamind","id":38055,"job":"Actor","department":"Actors","character":"Metro Man (voice)","cast_id":4,"url":"http://www.themoviedb.org/movie/38055","poster":"http://hwcdn.themoviedb.org/posters/004/4bf8ade0017a3c7037000004/megamind-cover.jpg"},{"name":"Kick-Ass","id":23483,"job":"Producer","department":"Production","character":null,"cast_id":17,"url":"http://www.themoviedb.org/movie/23483","poster":"http://hwcdn.themoviedb.org/posters/043/4c499a4a7b9aa115fc000043/kick-ass-cover.jpg"}],"profile":[{"image":{"type":"profile","size":"original","height":1969,"width":1295,"url":"http://hwcdn.themoviedb.org/profiles/00e/4bc977ad017a3c182400000e/brad-pitt-original.jpg","id":"4bc977ad017a3c182400000e"}},{"image":{"type":"profile","size":"profile","height":281,"width":185,"url":"http://hwcdn.themoviedb.org/profiles/00e/4bc977ad017a3c182400000e/brad-pitt-profile.jpg","id":"4bc977ad017a3c182400000e"}},{"image":{"type":"profile","size":"thumb","height":68,"width":45,"url":"http://hwcdn.themoviedb.org/profiles/00e/4bc977ad017a3c182400000e/brad-pitt-thumb.jpg","id":"4bc977ad017a3c182400000e"}}],"version":61,"last_modified_at":"2010-08-13 09:20:10"}]
         | 
| @@ -0,0 +1,15 @@ | |
| 1 | 
            +
            HTTP/1.1 200 OK
         | 
| 2 | 
            +
            Server: nginx
         | 
| 3 | 
            +
            Date: Mon, 23 Aug 2010 16:39:45 GMT
         | 
| 4 | 
            +
            Content-Type: text/json; charset=utf-8
         | 
| 5 | 
            +
            Transfer-Encoding: chunked
         | 
| 6 | 
            +
            Connection: keep-alive
         | 
| 7 | 
            +
            Keep-Alive: timeout=20
         | 
| 8 | 
            +
            Status: 200 OK
         | 
| 9 | 
            +
            Cache-Control: public, max-age=21600
         | 
| 10 | 
            +
            X-Varnish: 2542104567 2542101419
         | 
| 11 | 
            +
            Age: 36
         | 
| 12 | 
            +
            Via: 1.1 varnish
         | 
| 13 | 
            +
            X-Cache: HIT
         | 
| 14 | 
            +
             | 
| 15 | 
            +
            [{"score":30,"popularity":3,"name":"Nicholas Vince","id":56559,"biography":"","url":"http://www.themoviedb.org/person/56559","profile":[],"version":2,"last_modified_at":"2010-07-19 18:00:13"},{"score":29,"popularity":3,"name":"Vince Guaraldi","id":124022,"biography":"","url":"http://www.themoviedb.org/person/124022","profile":[],"version":3,"last_modified_at":"2010-07-26 21:41:09"},{"score":28,"popularity":3,"name":"Vince Flaherty","id":121264,"biography":"","url":"http://www.themoviedb.org/person/121264","profile":[],"version":2,"last_modified_at":"2010-07-19 20:56:43"},{"score":27,"popularity":3,"name":"Vince Corazza","id":106711,"biography":"","url":"http://www.themoviedb.org/person/106711","profile":[],"version":2,"last_modified_at":"2010-07-19 20:13:41"},{"score":26,"popularity":3,"name":"Vince Green","id":59569,"biography":"","url":"http://www.themoviedb.org/person/59569","profile":[],"version":2,"last_modified_at":"2010-07-19 23:10:54"},{"score":25,"popularity":3,"name":"Vince Leigh","id":60419,"biography":"","url":"http://www.themoviedb.org/person/60419","profile":[],"version":2,"last_modified_at":"2010-07-19 23:18:05"},{"score":24,"popularity":3,"name":"Robert Vince","id":61248,"biography":"","url":"http://www.themoviedb.org/person/61248","profile":[],"version":2,"last_modified_at":"2010-07-26 18:35:29"},{"score":23,"popularity":3,"name":"Vince Lozano","id":88032,"biography":"","url":"http://www.themoviedb.org/person/88032","profile":[],"version":2,"last_modified_at":"2010-07-19 20:05:49"},{"score":22,"popularity":3,"name":"Vince Trankina","id":91412,"biography":"","url":"http://www.themoviedb.org/person/91412","profile":[],"version":2,"last_modified_at":"2010-07-19 17:51:39"},{"score":21,"popularity":3,"name":"Vince Martin","id":45215,"biography":"","url":"http://www.themoviedb.org/person/45215","profile":[],"version":2,"last_modified_at":"2010-07-19 18:43:43"},{"score":20,"popularity":3,"name":"Vince Vieluf","id":58381,"biography":"","url":"http://www.themoviedb.org/person/58381","profile":[],"version":4,"last_modified_at":"2010-07-26 20:41:53"},{"score":19,"popularity":3,"name":"Vince Gilligan","id":66633,"biography":"","url":"http://www.themoviedb.org/person/66633","profile":[],"version":3,"last_modified_at":"2010-07-26 18:17:51"},{"score":18,"popularity":3,"name":"Robert Vince","id":61244,"biography":"","url":"http://www.themoviedb.org/person/61244","profile":[],"version":15,"last_modified_at":"2010-07-27 15:56:39"},{"score":17,"popularity":3,"name":"Vince Clarke","id":105820,"biography":"","url":"http://www.themoviedb.org/person/105820","profile":[],"version":2,"last_modified_at":"2010-07-19 20:19:59"},{"score":16,"popularity":3,"name":"William Vince","id":5358,"biography":"","url":"http://www.themoviedb.org/person/5358","profile":[],"version":6,"last_modified_at":"2010-07-27 16:01:24"},{"score":15,"popularity":3,"name":"Alexander Vince","id":20058,"biography":"","url":"http://www.themoviedb.org/person/20058","profile":[],"version":2,"last_modified_at":"2010-07-19 21:46:32"},{"score":14,"popularity":3,"name":"Vince Palomino","id":102312,"biography":"","url":"http://www.themoviedb.org/person/102312","profile":[],"version":2,"last_modified_at":"2010-07-19 21:52:08"},{"score":13,"popularity":3,"name":"Vince Locke","id":4484,"biography":"","url":"http://www.themoviedb.org/person/4484","profile":[],"version":2,"last_modified_at":"2010-07-19 22:16:48"},{"score":12,"popularity":3,"name":"Vince Oddone","id":9467,"biography":"","url":"http://www.themoviedb.org/person/9467","profile":[],"version":2,"last_modified_at":"2010-07-19 22:39:49"},{"score":11,"popularity":3,"name":"Barrie Vince","id":22154,"biography":"","url":"http://www.themoviedb.org/person/22154","profile":[],"version":2,"last_modified_at":"2010-07-19 23:28:26"},{"score":10,"popularity":3,"name":"Vince Ravine","id":25293,"biography":"","url":"http://www.themoviedb.org/person/25293","profile":[],"version":3,"last_modified_at":"2010-07-30 13:41:37"},{"score":9,"popularity":3,"name":"Vince Barnett","id":13357,"biography":"","url":"http://www.themoviedb.org/person/13357","profile":[],"version":6,"last_modified_at":"2010-07-26 21:42:23"},{"score":8,"popularity":3,"name":"Robert Vince","id":25010,"biography":"","url":"http://www.themoviedb.org/person/25010","profile":[],"version":2,"last_modified_at":"2010-07-20 00:05:30"},{"score":7,"popularity":3,"name":"Vince Desiderio","id":27591,"biography":"","url":"http://www.themoviedb.org/person/27591","profile":[],"version":3,"last_modified_at":"2010-07-27 13:34:56"},{"score":6,"popularity":3,"name":"Vince Giordano","id":28009,"biography":"","url":"http://www.themoviedb.org/person/28009","profile":[],"version":2,"last_modified_at":"2010-07-20 00:09:10"},{"score":5,"popularity":3,"name":"Vince Murdocco","id":33585,"biography":"","url":"http://www.themoviedb.org/person/33585","profile":[],"version":3,"last_modified_at":"2010-07-26 21:15:56"},{"score":4,"popularity":3,"name":"Vince Evans","id":126201,"biography":"","url":"http://www.themoviedb.org/person/126201","profile":[],"version":3,"last_modified_at":"2010-07-25 17:03:33"},{"score":3,"popularity":3,"name":"Vince Colosimo","id":77496,"biography":"","url":"http://www.themoviedb.org/person/77496","profile":[],"version":6,"last_modified_at":"2010-07-26 19:52:22"},{"score":2,"popularity":3,"name":"Vince Gerardis","id":54268,"biography":"","url":"http://www.themoviedb.org/person/54268","profile":[],"version":3,"last_modified_at":"2010-07-28 11:00:11"},{"score":1,"popularity":3,"name":"Robert Vince","id":61245,"biography":"","url":"http://www.themoviedb.org/person/61245","profile":[],"version":2,"last_modified_at":"2010-07-26 18:35:28"}]
         | 
| @@ -0,0 +1,99 @@ | |
| 1 | 
            +
            require "spec_helper"
         | 
| 2 | 
            +
             | 
| 3 | 
            +
            describe "Play::Tmdb::Base" do
         | 
| 4 | 
            +
              def clapper_com_response
         | 
| 5 | 
            +
                File.open(File.join(File.dirname(__FILE__), "../..", "fixtures", "example_com.txt"))
         | 
| 6 | 
            +
              end
         | 
| 7 | 
            +
             | 
| 8 | 
            +
              def incorrect_api_url_response
         | 
| 9 | 
            +
                File.open(File.join(File.dirname(__FILE__), "../..", "fixtures", "incorrect_api_url.txt"))
         | 
| 10 | 
            +
              end
         | 
| 11 | 
            +
             | 
| 12 | 
            +
              def empty_result_response
         | 
| 13 | 
            +
                File.open(File.join(File.dirname(__FILE__), "../..", "fixtures", "blank_result.txt"))
         | 
| 14 | 
            +
              end
         | 
| 15 | 
            +
             | 
| 16 | 
            +
              before :each do
         | 
| 17 | 
            +
                Play::Tmdb::Base.options=Play::Tmdb::Base.default_options
         | 
| 18 | 
            +
              end
         | 
| 19 | 
            +
             | 
| 20 | 
            +
              it "should have options" do
         | 
| 21 | 
            +
                Play::Tmdb::Base.should respond_to(:options)
         | 
| 22 | 
            +
              end
         | 
| 23 | 
            +
             | 
| 24 | 
            +
              it "should default language to 'en'" do
         | 
| 25 | 
            +
                Play::Tmdb::Base.options[:language].should == "en"
         | 
| 26 | 
            +
              end
         | 
| 27 | 
            +
             | 
| 28 | 
            +
              it "should allow set language" do
         | 
| 29 | 
            +
                Play::Tmdb::Base.language = "pt"
         | 
| 30 | 
            +
                Play::Tmdb::Base.options[:language].should == "pt"
         | 
| 31 | 
            +
              end
         | 
| 32 | 
            +
             | 
| 33 | 
            +
              it "should allow set api_key" do
         | 
| 34 | 
            +
                Play::Tmdb::Base.api_key = "ood3pok0329id"
         | 
| 35 | 
            +
                Play::Tmdb::Base.options[:api_key].should == "ood3pok0329id"
         | 
| 36 | 
            +
              end
         | 
| 37 | 
            +
             | 
| 38 | 
            +
              it "should default api_key to ''" do
         | 
| 39 | 
            +
                Play::Tmdb::Base.options[:api_key].should == ""
         | 
| 40 | 
            +
              end
         | 
| 41 | 
            +
             | 
| 42 | 
            +
              it "should have base url" do
         | 
| 43 | 
            +
                Play::Tmdb::Base.base_url.should == "http://api.themoviedb.org/3/"
         | 
| 44 | 
            +
              end
         | 
| 45 | 
            +
             | 
| 46 | 
            +
              describe "get url" do
         | 
| 47 | 
            +
                before :each do
         | 
| 48 | 
            +
                  stub_request(:get, "http://www.clapper.com.br/").to_return(File.open(File.join(clapper_com_response)))
         | 
| 49 | 
            +
             | 
| 50 | 
            +
                  stub_request(:get, "http://www.noasdoansdonaosdnoad.com.br/").to_return(File.open(File.join(incorrect_api_url_response)))
         | 
| 51 | 
            +
                end
         | 
| 52 | 
            +
             | 
| 53 | 
            +
                it "that is valid returns a response object with code 200" do
         | 
| 54 | 
            +
                  test_response = Play::Tmdb::Base.get_url("http://www.clapper.com.br/")
         | 
| 55 | 
            +
                  test_response.code.to_i.should == 200
         | 
| 56 | 
            +
                end
         | 
| 57 | 
            +
             | 
| 58 | 
            +
                it "that is nonexistent returns a response object with code 404" do
         | 
| 59 | 
            +
                  test_response = Play::Tmdb::Base.get_url("http://www.noasdoansdonaosdnoad.com.br/")
         | 
| 60 | 
            +
                  test_response.code.to_i.should == 404
         | 
| 61 | 
            +
                end
         | 
| 62 | 
            +
              end
         | 
| 63 | 
            +
             | 
| 64 | 
            +
              describe "api call" do
         | 
| 65 | 
            +
                before :each do
         | 
| 66 | 
            +
                  @api_key="tt"
         | 
| 67 | 
            +
                  @language="en"
         | 
| 68 | 
            +
                  @params = {query: "filme_bom"}
         | 
| 69 | 
            +
                  @method = "search/movie"
         | 
| 70 | 
            +
                  Play::Tmdb::Base.api_key=@api_key
         | 
| 71 | 
            +
                  Play::Tmdb::Base.language=@language
         | 
| 72 | 
            +
                end
         | 
| 73 | 
            +
             | 
| 74 | 
            +
                it "raises ArgumentError if no method is passed" do
         | 
| 75 | 
            +
                  expect {
         | 
| 76 | 
            +
                    Play::Tmdb::Base.api_call("")
         | 
| 77 | 
            +
                  }.should raise_error(ArgumentError, "api method is required")
         | 
| 78 | 
            +
                end
         | 
| 79 | 
            +
             | 
| 80 | 
            +
                it "mount query with params" do
         | 
| 81 | 
            +
                  url = "#{Play::Tmdb::Base.base_url}#{@method}?api_key=#{@api_key}&language=#{@language}&query=#{@params[:query]}"
         | 
| 82 | 
            +
                  request = stub_request(:get, url).to_return(empty_result_response)
         | 
| 83 | 
            +
                  Play::Tmdb::Base.api_call(@method, @params)
         | 
| 84 | 
            +
                  request.should have_been_made.times(1)
         | 
| 85 | 
            +
                end
         | 
| 86 | 
            +
              end
         | 
| 87 | 
            +
             | 
| 88 | 
            +
              context "@@options" do
         | 
| 89 | 
            +
                it "should inject setter" do
         | 
| 90 | 
            +
                  Play::Tmdb::Base.should respond_to(:language=)
         | 
| 91 | 
            +
                  Play::Tmdb::Base.should respond_to(:api_key=)
         | 
| 92 | 
            +
                end
         | 
| 93 | 
            +
             | 
| 94 | 
            +
                it "should inject getter" do
         | 
| 95 | 
            +
                  Play::Tmdb::Base.should respond_to(:language)
         | 
| 96 | 
            +
                  Play::Tmdb::Base.should respond_to(:api_key)
         | 
| 97 | 
            +
                end
         | 
| 98 | 
            +
              end
         | 
| 99 | 
            +
            end
         | 
| @@ -0,0 +1,31 @@ | |
| 1 | 
            +
            require "spec_helper"
         | 
| 2 | 
            +
             | 
| 3 | 
            +
            describe "Play::Tmdb::Movie" do
         | 
| 4 | 
            +
              context "search" do
         | 
| 5 | 
            +
                it "raises ArgumentError if no query param is passed" do
         | 
| 6 | 
            +
                  expect {
         | 
| 7 | 
            +
                    Play::Tmdb::Movie.search()
         | 
| 8 | 
            +
                  }.should raise_error(ArgumentError, "query param is required")
         | 
| 9 | 
            +
                end
         | 
| 10 | 
            +
             | 
| 11 | 
            +
                it "raises ArgumentError if no query param is blank" do
         | 
| 12 | 
            +
                  expect {
         | 
| 13 | 
            +
                    Play::Tmdb::Movie.search(query: "")
         | 
| 14 | 
            +
                  }.should raise_error(ArgumentError, "query param is required")
         | 
| 15 | 
            +
                end
         | 
| 16 | 
            +
             | 
| 17 | 
            +
                it "that returns no results should create empty array" do
         | 
| 18 | 
            +
                  blank_result = File.open(File.join(File.dirname(__FILE__), "../..", "fixtures", "blank_result.txt"))
         | 
| 19 | 
            +
                  stub_request(:get, Regexp.new(Play::Tmdb::Base.base_url + ".*" + "item_not_found")).to_return(File.open(File.join(blank_result)))
         | 
| 20 | 
            +
             | 
| 21 | 
            +
                  Play::Tmdb::Movie.search(:query => "item_not_found").should == []
         | 
| 22 | 
            +
                end
         | 
| 23 | 
            +
             | 
| 24 | 
            +
                it "that returns results should create array of OpenStructs with data movie" do
         | 
| 25 | 
            +
                  blank_result = File.open(File.join(File.dirname(__FILE__), "../..", "fixtures", "frankenweenie.txt"))
         | 
| 26 | 
            +
                  stub_request(:get, Regexp.new(Play::Tmdb::Base.base_url + ".*" + "frankenweenie")).to_return(File.open(File.join(blank_result)))
         | 
| 27 | 
            +
             | 
| 28 | 
            +
                  Play::Tmdb::Movie.search(:query => "frankenweenie").size.should == 2
         | 
| 29 | 
            +
                end
         | 
| 30 | 
            +
              end
         | 
| 31 | 
            +
            end
         | 
    
        data/spec/spec_helper.rb
    ADDED
    
    
    
        metadata
    ADDED
    
    | @@ -0,0 +1,133 @@ | |
| 1 | 
            +
            --- !ruby/object:Gem::Specification
         | 
| 2 | 
            +
            name: play-tmdb
         | 
| 3 | 
            +
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            +
              version: 0.0.1
         | 
| 5 | 
            +
              prerelease: 
         | 
| 6 | 
            +
            platform: ruby
         | 
| 7 | 
            +
            authors:
         | 
| 8 | 
            +
            - Halisson Bruno Vitor
         | 
| 9 | 
            +
            autorequire: 
         | 
| 10 | 
            +
            bindir: bin
         | 
| 11 | 
            +
            cert_chain: []
         | 
| 12 | 
            +
            date: 2012-03-04 00:00:00.000000000 Z
         | 
| 13 | 
            +
            dependencies:
         | 
| 14 | 
            +
            - !ruby/object:Gem::Dependency
         | 
| 15 | 
            +
              name: rake
         | 
| 16 | 
            +
              requirement: &78376320 !ruby/object:Gem::Requirement
         | 
| 17 | 
            +
                none: false
         | 
| 18 | 
            +
                requirements:
         | 
| 19 | 
            +
                - - ! '>='
         | 
| 20 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 21 | 
            +
                    version: '0'
         | 
| 22 | 
            +
              type: :development
         | 
| 23 | 
            +
              prerelease: false
         | 
| 24 | 
            +
              version_requirements: *78376320
         | 
| 25 | 
            +
            - !ruby/object:Gem::Dependency
         | 
| 26 | 
            +
              name: rspec
         | 
| 27 | 
            +
              requirement: &78376110 !ruby/object:Gem::Requirement
         | 
| 28 | 
            +
                none: false
         | 
| 29 | 
            +
                requirements:
         | 
| 30 | 
            +
                - - ! '>='
         | 
| 31 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 32 | 
            +
                    version: '0'
         | 
| 33 | 
            +
              type: :development
         | 
| 34 | 
            +
              prerelease: false
         | 
| 35 | 
            +
              version_requirements: *78376110
         | 
| 36 | 
            +
            - !ruby/object:Gem::Dependency
         | 
| 37 | 
            +
              name: deepopenstruct
         | 
| 38 | 
            +
              requirement: &78375850 !ruby/object:Gem::Requirement
         | 
| 39 | 
            +
                none: false
         | 
| 40 | 
            +
                requirements:
         | 
| 41 | 
            +
                - - ! '>='
         | 
| 42 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 43 | 
            +
                    version: 0.1.2
         | 
| 44 | 
            +
              type: :runtime
         | 
| 45 | 
            +
              prerelease: false
         | 
| 46 | 
            +
              version_requirements: *78375850
         | 
| 47 | 
            +
            - !ruby/object:Gem::Dependency
         | 
| 48 | 
            +
              name: json
         | 
| 49 | 
            +
              requirement: &78375590 !ruby/object:Gem::Requirement
         | 
| 50 | 
            +
                none: false
         | 
| 51 | 
            +
                requirements:
         | 
| 52 | 
            +
                - - ! '>='
         | 
| 53 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 54 | 
            +
                    version: '0'
         | 
| 55 | 
            +
              type: :runtime
         | 
| 56 | 
            +
              prerelease: false
         | 
| 57 | 
            +
              version_requirements: *78375590
         | 
| 58 | 
            +
            - !ruby/object:Gem::Dependency
         | 
| 59 | 
            +
              name: addressable
         | 
| 60 | 
            +
              requirement: &78375350 !ruby/object:Gem::Requirement
         | 
| 61 | 
            +
                none: false
         | 
| 62 | 
            +
                requirements:
         | 
| 63 | 
            +
                - - ! '>='
         | 
| 64 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 65 | 
            +
                    version: '0'
         | 
| 66 | 
            +
              type: :runtime
         | 
| 67 | 
            +
              prerelease: false
         | 
| 68 | 
            +
              version_requirements: *78375350
         | 
| 69 | 
            +
            - !ruby/object:Gem::Dependency
         | 
| 70 | 
            +
              name: webmock
         | 
| 71 | 
            +
              requirement: &78375110 !ruby/object:Gem::Requirement
         | 
| 72 | 
            +
                none: false
         | 
| 73 | 
            +
                requirements:
         | 
| 74 | 
            +
                - - ! '>='
         | 
| 75 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 76 | 
            +
                    version: '0'
         | 
| 77 | 
            +
              type: :development
         | 
| 78 | 
            +
              prerelease: false
         | 
| 79 | 
            +
              version_requirements: *78375110
         | 
| 80 | 
            +
            description: Play with the tmdb api.
         | 
| 81 | 
            +
            email:
         | 
| 82 | 
            +
            - halissonvit@gmail.com
         | 
| 83 | 
            +
            executables: []
         | 
| 84 | 
            +
            extensions: []
         | 
| 85 | 
            +
            extra_rdoc_files: []
         | 
| 86 | 
            +
            files:
         | 
| 87 | 
            +
            - .gitignore
         | 
| 88 | 
            +
            - Gemfile
         | 
| 89 | 
            +
            - README
         | 
| 90 | 
            +
            - Rakefile
         | 
| 91 | 
            +
            - lib/play-tmdb.rb
         | 
| 92 | 
            +
            - lib/play-tmdb/base.rb
         | 
| 93 | 
            +
            - lib/play-tmdb/movie.rb
         | 
| 94 | 
            +
            - lib/play-tmdb/version.rb
         | 
| 95 | 
            +
            - play-tmdb.gemspec
         | 
| 96 | 
            +
            - spec/fixtures/blank_result.txt
         | 
| 97 | 
            +
            - spec/fixtures/example_com.txt
         | 
| 98 | 
            +
            - spec/fixtures/frankenweenie.txt
         | 
| 99 | 
            +
            - spec/fixtures/image.jpg
         | 
| 100 | 
            +
            - spec/fixtures/incorrect_api_url.txt
         | 
| 101 | 
            +
            - spec/fixtures/movie_browse.txt
         | 
| 102 | 
            +
            - spec/fixtures/movie_get_info.txt
         | 
| 103 | 
            +
            - spec/fixtures/movie_imdb_lookup.txt
         | 
| 104 | 
            +
            - spec/fixtures/person_get_info.txt
         | 
| 105 | 
            +
            - spec/fixtures/person_search.txt
         | 
| 106 | 
            +
            - spec/lib/play-tmdb/play_tmdb_base_spec.rb
         | 
| 107 | 
            +
            - spec/lib/play-tmdb/play_tmdb_movie_spec.rb
         | 
| 108 | 
            +
            - spec/spec_helper.rb
         | 
| 109 | 
            +
            homepage: http://github.com/halissonvit/play-tmdb
         | 
| 110 | 
            +
            licenses: []
         | 
| 111 | 
            +
            post_install_message: 
         | 
| 112 | 
            +
            rdoc_options: []
         | 
| 113 | 
            +
            require_paths:
         | 
| 114 | 
            +
            - lib
         | 
| 115 | 
            +
            required_ruby_version: !ruby/object:Gem::Requirement
         | 
| 116 | 
            +
              none: false
         | 
| 117 | 
            +
              requirements:
         | 
| 118 | 
            +
              - - ! '>='
         | 
| 119 | 
            +
                - !ruby/object:Gem::Version
         | 
| 120 | 
            +
                  version: '0'
         | 
| 121 | 
            +
            required_rubygems_version: !ruby/object:Gem::Requirement
         | 
| 122 | 
            +
              none: false
         | 
| 123 | 
            +
              requirements:
         | 
| 124 | 
            +
              - - ! '>='
         | 
| 125 | 
            +
                - !ruby/object:Gem::Version
         | 
| 126 | 
            +
                  version: '0'
         | 
| 127 | 
            +
            requirements: []
         | 
| 128 | 
            +
            rubyforge_project: play-tmdb
         | 
| 129 | 
            +
            rubygems_version: 1.8.10
         | 
| 130 | 
            +
            signing_key: 
         | 
| 131 | 
            +
            specification_version: 3
         | 
| 132 | 
            +
            summary: A tmdb api wrapper
         | 
| 133 | 
            +
            test_files: []
         |