code/superant.com.rwdmovies/amazonsearch.rb in rwdmovies-0.92 vs code/superant.com.rwdmovies/amazonsearch.rb in rwdmovies-0.93

- old
+ new

@@ -1,19 +1,18 @@ - - - require 'amazon/search' include Amazon::Search - +#amazon search def runmoviesearch -req = Request.new(DEV_TOKEN) -testmovie = @a_moviefilename -s = ['keyword_search', "#{testmovie}", 'video', LITE, 'Name'] + req = Request.new(DEV_TOKEN) + testmovie = @a_moviefilename + s = ['keyword_search', "#{testmovie}", 'dvd', HEAVY, ALL_PAGES,'Name'] -s.pop - + s.pop + begin # parse and display the results of each search response = req.send(*s) { |prod| @moviesearchdisplay = prod, '' } # printf("Arguments returned from search were:\n\n%s\n", response.args.inspect) - + rescue + print "result error" + end end \ No newline at end of file