niconico 1.1.1 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/niconico/mylist.rb +1 -1
- data/lib/niconico/version.rb +1 -1
- metadata +1 -1
data/lib/niconico/mylist.rb
CHANGED
@@ -10,7 +10,7 @@ class Niconico
|
|
10
10
|
if page.search("script").map(&:inner_text).find{|x| /preload/ =~ x }.match(/Mylist\.preload\(\d+, (.+?)\);/)
|
11
11
|
json = JSON.parse($1)
|
12
12
|
#require 'pp'; pp json
|
13
|
-
json.map do |item|
|
13
|
+
json.sort_by{|item| item["create_time"].to_f }.map do |item|
|
14
14
|
Video.new(self, item["item_data"]["video_id"],
|
15
15
|
title: item["item_data"]["title"],
|
16
16
|
mylist_comment: item["description"])
|
data/lib/niconico/version.rb
CHANGED