diff -ur delicious-2007-02-22/syntax.php delicious/syntax.php
--- delicious-2007-02-22/syntax.php	2007-02-23 01:52:22.000000000 +0100
+++ delicious/syntax.php	2008-08-19 14:58:38.526381403 +0200
@@ -167,7 +167,7 @@
         $tags = urlencode($tag); // to avoid possible encoding problems
         $this->loadConfig();
         $user = $this->conf['diu_user'];
-        $url = "http://del.icio.us/feeds/json/$user/$tag?raw&count=100";
+        $url = "http://feeds.delicious.com/v2/json/$user".($tags != '' ? "/$tags" : "");
        
         ini_set('user_agent', 'Dokuwiki Plugin'); // set user-agent so del.icio.us doesn't ban us
         $json = file_get_contents($url);
@@ -181,17 +181,12 @@
      * @return  array of hashes     [bookmarks in an array, attributes in a hash for each]
      */
     function parseJSON($json) {
-        preg_match_all('/
-                        \{"u":"(.+?)",     # User name (always)
-                       (:?"n":"(.+?)",)?   # Extended Description (maybe not)
-                          "d":"(.+?)",     # Title (always)
-                          "t":\[(.+?)\]\}  # Tags (always)
-                        /x', $json, $raw_posts, PREG_SET_ORDER);
+        $raw_posts = json_decode($json);
         foreach ($raw_posts as $raw_post) {
-            $posts[$raw_post[1]]['href'] = $raw_post[1];
-            $posts[$raw_post[1]]['description'] = $raw_post[3];
-            $posts[$raw_post[1]]['title'] = preg_replace("/\\\'/","'",$raw_post[4]);
-            $posts[$raw_post[1]]['tags'] = preg_replace('/,/', ' ', preg_replace('/"/', '', $raw_post[5]));
+            $posts[$raw_post->u]['href'] = $raw_post->u;
+            $posts[$raw_post->u]['description'] = $raw_post->n;
+            $posts[$raw_post->u]['title'] = preg_replace("/\\\'/","'",$raw_post->d);
+            $posts[$raw_post->u]['tags'] = implode(' ', $raw_post->t);
         }
         return $posts;
     }

