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.
Files changed (2) hide show
  1. data/lib/nicovideo/mylist.rb +2 -2
  2. metadata +1 -1
@@ -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(video_id)
28
- video_page = VideoPage.new @agent, video_id
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, {
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yasuyuki-nicovideo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8.4
4
+ version: 0.1.8.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - emergent