Skip to content

Commit

Permalink
Remove code related to TmdbMovie.browse
Browse files Browse the repository at this point in the history
This Movie.browse method is not available in new versions of Tmdb
API.
  • Loading branch information
Irio Irineu Musskopf Junior committed Jun 8, 2012
1 parent 184ee15 commit 22eb7b0
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 67 deletions.
24 changes: 0 additions & 24 deletions lib/ruby-tmdb/tmdb_movie.rb
Expand Up @@ -38,30 +38,6 @@ def self.find(options)
end
end

def self.browse(options)
options = {
:expand_results => false
}.merge(options)

expand_results = options.delete(:expand_results)
language = options.delete(:language)

results = []
results << Tmdb.api_call("Movie.browse", options, language)

results.flatten!
results.compact!

results.map!{|m| TmdbMovie.new(m, expand_results, language) }

if(results.length == 1)
return results[0]
else
return results
end

end

def self.new(raw_data, expand_results = false, language = nil)
# expand the result by calling movie unless :expand_results is false or the data is already complete
# (as determined by checking for the runtime property in the raw data)
Expand Down
15 changes: 0 additions & 15 deletions test/fixtures/movie_browse.txt

This file was deleted.

0 comments on commit 22eb7b0

Please sign in to comment.