Index: /lang/ruby/nicovideo_gem/trunk/test/test_mylist.rb
===================================================================
--- /lang/ruby/nicovideo_gem/trunk/test/test_mylist.rb (revision 32711)
+++ /lang/ruby/nicovideo_gem/trunk/test/test_mylist.rb (revision 32985)
@@ -11,5 +11,5 @@
     @mid_invalid  = 'smfdsaf' # IDが間違っている
     @mid_notopened = '3825220' # 非公開
-    @mid_testers_own = '12149071'     # テスト用アカウントに登録されているマイリストのID
+    #@mid_testers_own = '12149071'     # テスト用アカウントに登録されているマイリストのID
 
     @vid_valid    = 'sm2407057' # 閲覧可能(短い動画)
Index: /lang/ruby/nicovideo_gem/trunk/test/test_videopage.rb
===================================================================
--- /lang/ruby/nicovideo_gem/trunk/test/test_videopage.rb (revision 32711)
+++ /lang/ruby/nicovideo_gem/trunk/test/test_videopage.rb (revision 32985)
@@ -9,5 +9,6 @@
 
 #    @vid_valid    = 'sm500873' # 閲覧可能(組曲)
-    @vid_valid    = 'sm2407057' # 閲覧可能(短い動画)
+    #@vid_valid    = 'sm2407057' # 閲覧可能(短い動画)
+    @vid_valid    = 'sm9' # 閲覧可能(短い動画)
     @vid_invalid  = 'smfdsafd' # IDが間違っている
     @vid_notfound = 'sm500875' # 削除済み
Index: /lang/ruby/nicovideo_gem/trunk/Rakefile
===================================================================
--- /lang/ruby/nicovideo_gem/trunk/Rakefile (revision 15907)
+++ /lang/ruby/nicovideo_gem/trunk/Rakefile (revision 32985)
@@ -1,2 +1,8 @@
+class NilClass
+  def empty?
+    true
+  end
+end
+
 require 'config/requirements'
 require 'config/hoe' # setup Hoe + all gem configuration
Index: /lang/ruby/nicovideo_gem/trunk/config/hoe.rb
===================================================================
--- /lang/ruby/nicovideo_gem/trunk/config/hoe.rb (revision 15907)
+++ /lang/ruby/nicovideo_gem/trunk/config/hoe.rb (revision 32985)
@@ -63,5 +63,6 @@
   #p.extra_deps = []     # An array of rubygem dependencies [name, version], e.g. [ ['active_support', '>= 1.3.1'] ]
   p.extra_deps = [
-                  ['mechanize', '>=0.6.0']
+                  ['mechanize', '>=0.9.2'],
+		  ['json', '>=1.1.4']
                  ]
   #p.spec_extras = {}    # A hash of extra values to set in the gemspec.
Index: /lang/ruby/nicovideo_gem/trunk/lib/nicovideo/openlist.rb
===================================================================
--- /lang/ruby/nicovideo_gem/trunk/lib/nicovideo/openlist.rb (revision 8188)
+++ /lang/ruby/nicovideo_gem/trunk/lib/nicovideo/openlist.rb (revision 32985)
@@ -62,22 +62,22 @@
     protected
     def parse(page)
-      if page.body =~ /<strong>#{@video_id}<\/strong>を含む公開マイリストはありません。/
+      if page.body =~ /<strong.*?>#{@video_id}<\/strong> を登録している公開マイリストはありません。/
         @not_found = true
         raise NotFound
       end
 
-      @total_size = page.search('//form[@name="sort"]//td[@class="TXT12"]//strong').first.inner_html.sub(/,/,'').to_i
+      @total_size = page.search('//div[@class="mb8p4"]//p[@class="TXT12"]//strong').first.inner_html.sub(/,/,'').to_i
 
       @has_next = false
       @has_prev = false
-      respages = page/'//div[@class="mb16p4"]//p[@class="TXT12"]//a'
+      respages = page/'//div[@class="pagelink"]'
       puts_info respages.size
       respages.each {|r| puts_info r.inner_html }
       if respages.size > 0
         respages.each {|text|
-          if text.inner_html =~ /前のページ/
+          if text.inner_html =~ /<a class="prevpage".*?>.*?戻る.*?<\/a>/
             @has_prev = true
           end
-          if text.inner_html =~ /次のページ/
+          if text.inner_html =~ /<a class="nextpage".*?>.*?進む.*?<\/a>/
             @has_next = true
           end
Index: /lang/ruby/nicovideo_gem/trunk/lib/nicovideo/mylist.rb
===================================================================
--- /lang/ruby/nicovideo_gem/trunk/lib/nicovideo/mylist.rb (revision 32711)
+++ /lang/ruby/nicovideo_gem/trunk/lib/nicovideo/mylist.rb (revision 32985)
@@ -63,5 +63,5 @@
     def parse(page)
       @rss = RSS::Parser.parse(page.body)
-      @title = rss.channel.title.sub(/#{BASE_TITLE2+NICO_MYLIST} /, '')
+      @title = rss.channel.title.sub(/#{BASE_TITLE1}/,'').sub(/#{NICO_MYLIST} /, '')
       @user  = rss.channel.managingEditor
       @description = rss.channel.description
Index: /lang/ruby/nicovideo_gem/trunk/lib/nicovideo/search.rb
===================================================================
--- /lang/ruby/nicovideo_gem/trunk/lib/nicovideo/search.rb (revision 8188)
+++ /lang/ruby/nicovideo_gem/trunk/lib/nicovideo/search.rb (revision 32985)
@@ -69,17 +69,17 @@
       end
 
-      @total_size = page.search('form[@name="sort"]//td[@class="TXT12"]//strong').first.inner_html.sub(/,/,'').to_i
+      @total_size = page.search('strong[@class="search_total"]').first.inner_html.sub(/,/,'').to_i
 
       @has_next = false
       @has_prev = false
-      respages = page/'//div[@class="mb16p4"]//p[@class="TXT12"]//a'
+      respages = page/'//div[@class="pagelink"]'
       puts_info respages.size
       respages.each {|r| puts_info r.inner_html }
       if respages.size > 0
         respages.each {|text|
-          if text.inner_html =~ /前のページ/
+          if text.inner_html =~ /<a class="prevpage".*?>.*?戻る.*?<\/a>/
             @has_prev = true
           end
-          if text.inner_html =~ /次のページ/
+          if text.inner_html =~ /<a class="nextpage".*?>.*?進む.*?<\/a>/
             @has_next = true
           end
Index: /lang/ruby/nicovideo_gem/trunk/lib/nicovideo/version.rb
===================================================================
--- /lang/ruby/nicovideo_gem/trunk/lib/nicovideo/version.rb (revision 21009)
+++ /lang/ruby/nicovideo_gem/trunk/lib/nicovideo/version.rb (revision 32985)
@@ -3,5 +3,5 @@
     MAJOR = 0
     MINOR = 1
-    TINY  = 7
+    TINY  = 8
 
     STRING = [MAJOR, MINOR, TINY].join('.')
Index: /lang/ruby/nicovideo_gem/trunk/lib/nicovideo/page.rb
===================================================================
--- /lang/ruby/nicovideo_gem/trunk/lib/nicovideo/page.rb (revision 21009)
+++ /lang/ruby/nicovideo_gem/trunk/lib/nicovideo/page.rb (revision 32985)
@@ -7,6 +7,6 @@
 
     BASE_URL = 'http://www.nicovideo.jp'
-    BASE_TITLE1  = '‐ニコニコ動画\(秋\)'.toutf8
-    BASE_TITLE2  = 'ニコニコ動画\(秋\)‐'.toutf8
+    BASE_TITLE1  = '‐ニコニコ動画\(.*?\)'.toutf8
+    BASE_TITLE2  = 'ニコニコ動画\(.*?\)‐'.toutf8
 
     def initialize agent
Index: /lang/ruby/nicovideo_gem/trunk/ChangeLog
===================================================================
--- /lang/ruby/nicovideo_gem/trunk/ChangeLog (revision 21009)
+++ /lang/ruby/nicovideo_gem/trunk/ChangeLog (revision 32985)
@@ -1,2 +1,8 @@
+2009-05-01 version 0.1.8
+
+	* added function of adding video to mylist (by id:yasuyuki)
+	* fixed getting tags (by id:yasuyuki)
+	* fixed method 'search', 'tagsearch', 'openlist'
+
 2008-10-09  version 0.1.7
 
