--- providers/slideshare.inc	2009-11-21 21:54:15.000000000 -0500
+++ providers/slideshare.inc	2009-11-21 22:06:02.000000000 -0500
@@ -27,6 +27,21 @@ function emvideo_slideshare_settings() {
 }
 
 function emvideo_slideshare_extract($embed) {
+  if (preg_match('|http://www.slideshare.net/.+|', $embed, $matches)) { //Add URL parsing
+    // Very inefficient - getting the slideshow id from the url
+    $api_key = variable_get('emvideo_slideshare_api_key', '');
+    $shared_secret = variable_get('emvideo_slideshare_shared_secret', '');
+    $time_stamp = time();
+    $xml_link = 'http://www.slideshare.net/api/2/get_slideshow'
+      .'?api_key='.$api_key
+      .'&ts='.$time_stamp
+      .'&hash='.sha1($shared_secret.$time_stamp)
+      .'&slideshow_url='.$matches[0];
+    $xml_raw = file_get_contents($xml_link);
+    $xml_parsed = simplexml_load_string($xml_raw);
+    $output = $xml_parsed->ID;
+    return $output;
+  }
   $embed = array_shift(explode('&', array_pop(explode('[slideshare id=', $embed))));
   return $embed;
   // We can skip this regexp for the moment if we just provide a string
