lib/nicoquery/object/movie.rb in nicoquery-0.1.8 vs lib/nicoquery/object/movie.rb in nicoquery-0.1.8.2
- old
+ new
@@ -1,7 +1,9 @@
require "nicoquery/api/getthumbinfo"
+require "nicoquery/api/video_array"
require "nicoquery/object_mapper/getthumbinfo"
+require "nicoquery/object_mapper/video_array"
module NicoQuery
module Object
class Movie
@@ -22,9 +24,10 @@
@source[:mylist_rss].presence ||
@source[:tag_search_rss].presence ||
@source[:video_array].presence ||
@source[:getthumbinfo].presence ||
Proc.new { get_and_set_getthumbinfo_source; @source[:getthumbinfo] }.call
+
source.send field_name
end
end
[