aarongough / ruby-tmdb Goto Github PK
View Code? Open in Web Editor NEW[DEPRECATED] An ActiveRecord-style API wrapper for TheMovieDB.org
Home Page: http://github.com/aarongough/ruby-tmdb
License: MIT License
[DEPRECATED] An ActiveRecord-style API wrapper for TheMovieDB.org
Home Page: http://github.com/aarongough/ruby-tmdb
License: MIT License
Searching for a movie with a slash in the title results in RuntimeError 404:
Tmdb.api_call("Movie.search", "Face/Off")
When escaping the search string it works as expected:
Tmdb.api_call("Movie.search", CGI::escape("Face/Off"))
Would it be safe to change Tmdb.api_call to run CGI::escape twice on the params instead of only once as it is now?
Hi Aaron,
Look, I was stubbing requests to api.themoviedb.org in my acceptance tests when I realized that if I returned one element array as the response body, then I couldn't iterate over the results of my call to TmdbMovie.find(title: 'Movie Title').
Why? Because this method returns a single object whenever the api.themoviedb.org response returns a json array of one single element.
I cannot know how many movies I will be returned in advance, so I must check before I can iterate over the results of TmdbMovie.find(:title).
Wouldn't it be better to always return a collection? In case we were only interested in one movie we could pass in limit: 1 option and then get the first element of that collection.
Thanks for your job!
TMDb updated their API to version 3, and will shut down v2.1 soon. Any plan updating the gem?
Hi @aarongough,
Thanks for the repo :) Would it be possible to add a deprecated warning (ie, a note that this does not currently work) to the top of the README? Might save future peoples some time
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.