--- xspf_playlist_cck.module.orig	2009-02-07 18:12:40.000000000 +0100
+++ xspf_playlist_cck.module	2009-09-12 11:47:51.062500000 +0200
@@ -47,7 +47,7 @@ function xspf_playlist_cck_fields($confi
 	if ($fields) {
 	  foreach ($fields as $name => $field) {
 	    // only bother with specified field types
-        if (in_array($field['type'], array('text', 'image', 'file', 'file_video', 'video_cck') )) {
+        if (in_array($field['type'], array('text', 'image', 'filefield', 'file_video', 'video_cck') )) {
           $return['xspf_playlist_cck--'. $name] = t('CCK !type: !name', array('!type' => $field['type'], '!name' => $field['widget']['label']));
 			}
 	  }
@@ -112,7 +112,27 @@ function xspf_playlist_cck_image_handler
   // extract all the embeded items from this field
   foreach ($node->{$field_name} as $field) {
     if ($field['filepath']) {
-      if ($xspf_item = xspf_playlist_node_build_file_item($node, $field['filepath'])) {
+      if ($xspf_item = xspf_playlist_node_build_file_item($node, $GLOBALS['base_path'] . $field['filepath'])) {
+        $items[] = $xspf_item;
+      }
+    }
+  }
+  return $items;
+}
+
+/**
+ * handles the filefield type
+ * @param $node
+ * @param $field_name
+ * @return array
+ *   array of xspf items
+ */
+function xspf_playlist_cck_filefield_handler($node, $field_name) {
+  $items = array();
+  // extract all the embeded items from this field
+  foreach ($node->{$field_name} as $field) {
+    if ($field['filepath']) {
+      if ($xspf_item = xspf_playlist_node_build_file_item($node, $GLOBALS['base_path'] . $field['filepath'])) {
         $items[] = $xspf_item;
       }
     }
