yasuyuki-nicovideo 0.1.8.4 → 0.1.8.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/nicovideo/mylist.rb +2 -2
- metadata +1 -1
data/lib/nicovideo/mylist.rb
CHANGED
@@ -24,8 +24,8 @@ module Nicovideo
|
|
24
24
|
def id() @mylist_id end
|
25
25
|
def url() @raw_url end
|
26
26
|
|
27
|
-
def add(
|
28
|
-
video_page = VideoPage.new
|
27
|
+
def add(video)
|
28
|
+
video_page = video.respond_to?(:csrf_token) ? video : VideoPage.new(@agent, video)
|
29
29
|
|
30
30
|
begin
|
31
31
|
add_result = @agent.post(video_page.url, {
|