(mixi-topic-content-regexp): Fix regexp.
authorbg66 <bg66>
Tue, 25 Sep 2007 07:29:45 +0000 (07:29 +0000)
committerbg66 <bg66>
Tue, 25 Sep 2007 07:29:45 +0000 (07:29 +0000)
(mixi-realize-topic): Follow the change above.

ChangeLog
mixi.el

index dbb954c..5d844dc 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-09-25  OHASHI Akira  <bg66@koka-in.org>
+
+       * mixi.el (mixi-topic-content-regexp): Fix regexp.
+       (mixi-realize-topic): Follow the change above.
+
 2007-09-17  OHASHI Akira  <bg66@koka-in.org>
 
        * mixi.el (mixi-diary-content-regexp): Fix for retrieving photos.
diff --git a/mixi.el b/mixi.el
index cdc71ff..0ed517d 100644 (file)
--- a/mixi.el
+++ b/mixi.el
@@ -1744,7 +1744,7 @@ Increase this value when unexpected error frequently occurs."
 (defconst mixi-topic-owner-regexp
   "<td bgcolor=\"#fdf9f2\">&nbsp;<font color=\"#dfb479\"></font>&nbsp;<a href=\"show_friend\\.pl\\?id=\\([0-9]+\\)\">\\(.*?\\)\\(¤µ¤ó\\)?</a>")
 (defconst mixi-topic-content-regexp
-  "<table width=\"500\" border=\"0\" cellspacing=\"0\" cellpadding=\"5\"><tr><td class=\"h120\" width=\"500\"><table><tr>\\(<td width=\"130\" height=\"140\" align=\"center\" valign=\"middle\"><a href=\"javascript:void(0)\" onClick=\"MM_openBrWindow('show_bbs_picture\\.pl\\?id=[0-9]+&comm_id=[0-9]+&number=[0-9]+','pict','width=680,height=660,toolbar=no,scrollbars=yes,left=5,top=5')\"><img src=\"http://ic[0-9]+\\.mixi\\.jp/[^.]+\\.jpg\" border=\"0\"></a></td>\n\\)*</tr></table>\\(.+\\)</td></tr></table>")
+  "<table width=\"500\" border=\"0\" cellspacing=\"0\" cellpadding=\"5\"><tr><td class=\"h120\" width=\"500\"><table><tr>\\(\\(.\\|\r?\n\\)*?\\)</td></tr></table>")
 
 (defun mixi-realize-topic (topic &optional page)
   "Realize a TOPIC."
@@ -1771,7 +1771,7 @@ Increase this value when unexpected error frequently occurs."
                                                        (match-string 2)))
        (mixi-realization-error 'cannot-find-owner topic))
       (if (re-search-forward mixi-topic-content-regexp nil t)
-         (mixi-topic-set-content topic (match-string 2))
+         (mixi-topic-set-content topic (match-string 1))
        (mixi-realization-error 'cannot-find-content topic)))
     (mixi-object-touch topic)))