Index: contrib/emvideo/providers/archive.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/emfield/contrib/emvideo/providers/Attic/archive.inc,v
retrieving revision 1.1.2.1
diff -u -p -r1.1.2.1 archive.inc
--- contrib/emvideo/providers/archive.inc	10 Mar 2009 04:36:45 -0000	1.1.2.1
+++ contrib/emvideo/providers/archive.inc	3 May 2009 04:48:32 -0000
@@ -173,21 +173,9 @@ function emvideo_archive_data($field, $i
     return $data;
   }
   
-  // Scrape this page and find the path to the data directory.
-  // A regex expert would be able to do all this with a single regex statement, but that stuff is dark arts.
-  $html_chunks = explode('All Files: ', $html_page->data);
-  $html_chunks = explode('HTTP', $html_chunks[1]);
-  $html_chunks = explode('href=', $html_chunks[0]);
-  preg_match("/http:\/\/(.*)\"/", array_pop($html_chunks), $matches);
-  if (empty($matches)) {
-    form_set_error($error_field, 'The data directory for the item at archive.org could not be retrieved.');
-    return $data;
-  }
-  $data_url = rtrim($matches[0], '"');
-  
-  // In this directory should be two XML files, one for the list of files, one for metadata.
-  $xml_files_url = $data_url .'/'. $item['value'] . '_files.xml';
-  $xml_meta_url = $data_url .'/'. $item['value'] . '_meta.xml';
+  // There are two XML files, one for the list of files, one for metadata - capture full path/filenames.
+  $xml_files_url = EMVIDEO_ARCHIVE_MAIN_URL . 'download/' . $item['value'] . '/' . $item['value'].  '_files.xml';
+  $xml_meta_url = EMVIDEO_ARCHIVE_MAIN_URL . 'download/' . $item['value'] . '/' . $item['value'].  '_meta.xml';
   
   // Retreive the XML files.
   $xml_files = emfield_request_xml('archive', $xml_files_url, array(), TRUE, TRUE, $item['value'] . '_files');
@@ -389,4 +377,4 @@ function emvideo_archive_emfield_subthem
     );
     return $themes;
 
-}
\ No newline at end of file
+}
