lib/nicoquery.rb in nicoquery-0.1.0 vs lib/nicoquery.rb in nicoquery-0.1.1
- old
+ new
@@ -11,11 +11,17 @@
def mylist(mylist_id)
NicoQuery::Object::Mylist.new mylist_id
end
- def movie(video_id)
- NicoQuery::Object::Movie.new video_id
+ def movie(args)
+ if args.is_a? Array
+ array = []
+ NicoQuery::Crawler::BulkScraping.execute(args) {|movie| array << movie }
+ array
+ else
+ NicoQuery::Object::Movie.new args
+ end
end
module_function :tag_search
module_function :mylist
module_function :movie