* mixi.el (mixi-friend-nick-regexp): Follow the change of mixi. master
authorbg66 <bg66>
Sat, 30 Jan 2010 00:50:48 +0000 (00:50 +0000)
committerbg66 <bg66>
Sat, 30 Jan 2010 00:50:48 +0000 (00:50 +0000)
(mixi-realize-friend): Ditto.
(mixi-diary-list-regexp): Ditto.

ChangeLog
mixi.el

index dddd199..716c629 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2010-01-29 KAMO Tomoyuki  <kto2038@yahoo.co.jp>
+
+       * mixi.el (mixi-friend-nick-regexp): Follow the change of mixi.
+       (mixi-realize-friend): Ditto.
+       (mixi-diary-list-regexp): Ditto.
+
 2010-01-12 KAMO Tomoyuki  <kto2038@yahoo.co.jp>
 
        * mixi.el (mixi-my-id-regexp): Follow the change of mixi.
diff --git a/mixi.el b/mixi.el
index df86bdc..7efaedd 100644 (file)
--- a/mixi.el
+++ b/mixi.el
   (autoload 'w3m-retrieve "w3m")
   (autoload 'url-retrieve-synchronously "url"))
 
-(defconst mixi-revision "$Revision: 1.209 $")
+(defconst mixi-revision "$Revision: 1.210 $")
 
 (defgroup mixi nil
   "API library for accessing to mixi."
@@ -847,7 +847,7 @@ Increase this value when unexpected error frequently occurs."
   `(concat "/show_friend.pl?id=" (mixi-friend-id ,friend)))
 
 (defconst mixi-friend-nick-regexp
-  "<p class=\"name\">\\(.*\\)¤µ¤ó([0-9]+)\n")
+  "<p class=\"name\">\\(<span>\\|\\)\\(.*\\)¤µ¤ó([0-9]+)\\(</span>\\|\n\\)")
 (defconst mixi-friend-name-regexp
   "<th>̾Á°</th>\n+?<td>\\(.+?\\)\\(<img\\|</td>\\)")
 (defconst mixi-friend-sex-regexp
@@ -875,10 +875,12 @@ Increase this value when unexpected error frequently occurs."
   "Realize a FRIEND."
   ;; FIXME: Check an expiration of cache?
   (unless (mixi-object-realized-p friend)
-    (with-mixi-retrieve (mixi-friend-page friend)
+    (with-mixi-retrieve (if (equal friend mixi-me)
+                           "/home.pl"
+                         (mixi-friend-page friend))
       (let ((case-fold-search t))
        (if (re-search-forward mixi-friend-nick-regexp nil t)
-           (mixi-friend-set-nick friend (match-string 1))
+           (mixi-friend-set-nick friend (match-string 2))
          (mixi-realization-error 'cannot-find-nick friend))
        (when (re-search-forward mixi-friend-name-regexp nil t)
          (mixi-friend-set-name friend (match-string 1)))
@@ -1348,7 +1350,7 @@ Increase this value when unexpected error frequently occurs."
           (when ,friend (concat "&id=" (mixi-friend-id ,friend)))))
 
 (defconst mixi-diary-list-regexp
-  "<dt>\\(<input name=\"diary_id\" type=\"checkbox\" value=\"[0-9]+\"  />\\|\\)<a href=\"view_diary\\.pl\\?id=\\([0-9]+\\)&owner_id=[0-9]+\">\\(.*\\)</a>\\(<span><a href=\"edit_diary\\.pl\\?id=[0-9]+\">ÊÔ½¸¤¹¤ë</a></span>\\|\\)</dt>
+  "<dt>\\(<input name=\"diary_id\" type=\"checkbox\" value=\"[0-9]+\"  />\\|\\)<a href=\"view_diary\\.pl\\?id=\\([0-9]+\\)&owner_id=[0-9]+\">\\(.*\\)</a>\\(<span><a href=\"edit_diary\\.pl\\?id=[0-9]+\">ÊÔ½¸¤¹¤ë</a></span>\\|\\).*</dt>
 <dd>\\([0-9]+\\)ǯ\\([0-9]+\\)·î\\([0-9]+\\)Æü\n?\\([0-9]+\\):\\([0-9]+\\)</dd>
 </dl>")