Giter Site home page Giter Site logo

ruby-tmdb's People

Contributors

aarongough avatar alexhayes avatar oleander avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

ruby-tmdb's Issues

Searching for title that contains a slash

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?

TmdbMovie.find(:title) should return a collection

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!

Add a deprecated notice to repo

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.