rossnelson / netflix4r Goto Github PK
View Code? Open in Web Editor NEWa port of http://code.google.com/p/flix4r/
Home Page: http://code.google.com/p/flix4r/
License: MIT License
a port of http://code.google.com/p/flix4r/
Home Page: http://code.google.com/p/flix4r/
License: MIT License
Ross - how would you feel if I changed the hash rockets in netflix4r to 1.9 syntax? Looks like the 1.9 syntax is becoming standard, e.g. Rails 4 will have it as default in generated code and the core is changing hash rockets as they touch code.
Would be my pleasure to make the change and it will clean the code up a bit.
Please consider updating the method to download the complete indexes. Now DVD and Streaming respectively.
http://developer.netflix.com/blog/read/Update_Changes_for_the_Public_API
Also, the main url has been updated from api.netflix.com to api-public.netflix.com
Thanks!
the location of the netflix API log file is inside the gem directory - that's not a good idea.
This should be configurable. For Rails the default location should be in './log/netflix_api.log'
the latest version of
https://github.com/rossnelson/netflix4r/blob/master/lib/net_flix/credentials.rb
says that the config file is taken from
CONFIG_FILENAME = File.join( File.expand_path('config'), 'credentials.yml')
but the version which is used in netflix4r 0.0.2 is using an incorrect location inside the gem folder:
CONFIG_FILENAME = File.join( File.dirname(__FILE__), '..', '..', 'credentials.yml') # INCORRECT
Looks like this was fixed in the Git Repository, but no new version of the Gem was created?
Could you please fix this, and perhaps also rename the config file to "netflix_credentials.yml" , so there is no name collision if people have more than one credentials file in their project
list = NetFlix::Title.search(term: 'Knight', max_results: 1)
=> [Knight Knight]
list = NetFlix::Title.search(term: 'Dark Knight', max_results: 1)
URI::InvalidURIError: bad URI(is not URI?): http://api.netflix.com/catalog/titles?max_results=1&oauth_consumer_key=MY_CONSUMER_KEY&oauth_nonce=39470&oauth_signature=MY_SIGNATURE&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1347760105&oauth_version=1.0&term=Dark Knight
from /Users/irio/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/uri/common.rb:176:in `split'
from /Users/irio/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/uri/common.rb:211:in `parse'
from /Users/irio/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/uri/common.rb:747:in `parse'
from /Users/irio/.rvm/gems/ruby-1.9.3-p194@global/gems/netflix4r-0.1.0/lib/net_flix/request.rb:25:in `target'
from /Users/irio/.rvm/gems/ruby-1.9.3-p194@global/gems/netflix4r-0.1.0/lib/net_flix/request.rb:29:in `log'
from /Users/irio/.rvm/gems/ruby-1.9.3-p194@global/gems/netflix4r-0.1.0/lib/net_flix/request.rb:34:in `send'
from /Users/irio/.rvm/gems/ruby-1.9.3-p194@global/gems/netflix4r-0.1.0/lib/net_flix/api/catalog/titles.rb:10:in `search'
from /Users/irio/.rvm/gems/ruby-1.9.3-p194@global/gems/netflix4r-0.1.0/lib/net_flix/title.rb:32:in `search'
from (irb):4
from /Users/irio/.rvm/gems/ruby-1.9.3-p194@global/gems/railties-3.2.8/lib/rails/commands/console.rb:47:in `start'
from /Users/irio/.rvm/gems/ruby-1.9.3-p194@global/gems/railties-3.2.8/lib/rails/commands/console.rb:8:in `start'
from /Users/irio/.rvm/gems/ruby-1.9.3-p194@global/gems/railties-3.2.8/lib/rails/commands.rb:41:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'
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.