* mixi.el (mixi-diary-time-regexp): Follow the change of mixi;
authorbg66 <bg66>
Mon, 11 Dec 2006 08:22:31 +0000 (08:22 +0000)
committerbg66 <bg66>
Mon, 11 Dec 2006 08:22:31 +0000 (08:22 +0000)
Fix regexp.
(mixi-diary-title-regexp): Ditto.
(mixi-diary-content-regexp): Ditto.
(mixi-diary-realize): Follow the change above.

ChangeLog
mixi.el

index 4cdb26e..d54eff8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
 2006-12-11  OHASHI Akira  <bg66@koka-in.org>
 
+       * mixi.el (mixi-diary-time-regexp): Follow the change of mixi;
+       Fix regexp.
+       (mixi-diary-title-regexp): Ditto.
+       (mixi-diary-content-regexp): Ditto.
+       (mixi-diary-realize): Follow the change above.
+
+2006-12-11  OHASHI Akira  <bg66@koka-in.org>
+
        * mixi.el (mixi-search-bbs-list-page): New macro.
        (mixi-search-bbs-list-regexp): New regexp.
        (mixi-search-bbses): New function.
diff --git a/mixi.el b/mixi.el
index 5598500..a274a2c 100644 (file)
--- a/mixi.el
+++ b/mixi.el
@@ -969,11 +969,11 @@ Increase this value when unexpected error frequently occurs."
 (defconst mixi-diary-owner-nick-regexp
   "<td WIDTH=490 background=http://img\\.mixi\\.jp/img/bg_w\\.gif><b><font COLOR=#605048>\\(.+?\\)\\(¤µ¤ó\\)?¤ÎÆüµ­</font></b></td>")
 (defconst mixi-diary-time-regexp
-  "<td ALIGN=center ROWSPAN=2 NOWRAP WIDTH=95 bgcolor=#FFD8B0>\\([0-9]+\\)ǯ\\([0-9]+\\)·î\\([0-9]+\\)Æü<br>\\([0-9]+\\):\\([0-9]+\\)</td>")
+  "<td \\(align\\|ALIGN\\)=\"?center\"? \\(rowspan\\|ROWSPAN\\)=\"?[23]\"? \\(nowrap=\"nowrap\"\\|NOWRAP\\) \\(width\\|WIDTH\\)=\"?95\"? bgcolor=\"?#FFD8B0\"?>\\([0-9]+\\)ǯ\\([0-9]+\\)·î\\([0-9]+\\)Æü\\(<br />\\|<br>\\)\\([0-9]+\\):\\([0-9]+\\)</td>")
 (defconst mixi-diary-title-regexp
-  "<td BGCOLOR=#FFF4E0 WIDTH=430>&nbsp;\\([^<]+\\)</td></tr>")
+  "<td \\(bgcolor\\|BGCOLOR\\)=\"?#FFF4E0\"? width=\"?430\"?>&nbsp;\\([^<]+\\)</td>")
 (defconst mixi-diary-content-regexp
-  "<td CLASS=h12>\\(.*\\)</td></tr>")
+  "<td \\(class\\|CLASS\\)=\"?h12\"?>\\(.*\\)</td>")
 
 (defun mixi-diary-realize (diary)
   "Realize a DIARY."
@@ -987,17 +987,17 @@ Increase this value when unexpected error frequently occurs."
          (signal 'error (list 'cannot-find-owner-nick diary)))
        (if (string-match mixi-diary-time-regexp buffer)
            (mixi-diary-set-time
-            diary (encode-time 0 (string-to-number (match-string 5 buffer))
-                               (string-to-number (match-string 4 buffer))
-                               (string-to-number (match-string 3 buffer))
-                               (string-to-number (match-string 2 buffer))
-                               (string-to-number (match-string 1 buffer))))
+            diary (encode-time 0 (string-to-number (match-string 10 buffer))
+                               (string-to-number (match-string 9 buffer))
+                               (string-to-number (match-string 7 buffer))
+                               (string-to-number (match-string 6 buffer))
+                               (string-to-number (match-string 5 buffer))))
          (signal 'error (list 'cannot-find-time diary)))
        (if (string-match mixi-diary-title-regexp buffer)
-           (mixi-diary-set-title diary (match-string 1 buffer))
+           (mixi-diary-set-title diary (match-string 2 buffer))
          (signal 'error (list 'cannot-find-title diary)))
        (if (string-match mixi-diary-content-regexp buffer)
-           (mixi-diary-set-content diary (match-string 1 buffer))
+           (mixi-diary-set-content diary (match-string 2 buffer))
          (signal 'error (list 'cannot-find-content diary)))))
     (mixi-object-touch diary)))