diff -Naur ./media_mover_api.module ../media_mover-new/media_mover_api.module --- ./media_mover_api.module 2009-04-01 15:04:52.000000000 +0100 +++ ../media_mover-new/media_mover_api.module 2009-04-03 00:54:13.000000000 +0100 @@ -3158,12 +3158,15 @@ break; case 'return': - if ($file = $node->media_mover[$config][0]['complete_file']) { - if (! strstr($file, 'http://')) { - $file = file_create_url($file); + foreach($node->media_mover[$config] as $item) { + if ($file = $item['complete_file']) { + if (! strstr($file, 'http://')) { + $file = file_create_url($file); + } + $files[] = $file; } - return $file; } + return $files; break; } } @@ -3197,6 +3200,7 @@ if (! strstr($filepath, 'http://')) { $filepath = file_create_url($filepath); } + // only add the file if we have an incoming item if ($xspf_item = xspf_playlist_node_build_file_item($node, $filepath)) { $items[] = $xspf_item;