try this ( just tested for youtube)
 
open include/class.upload_remote.php 
 
Find : 
	PHP Code:
	
 $youtube_xml = $this->get_youtube_duration('http://www.youtube.com/api2_rest?method=youtube.videos.get_details&dev_id=rG48P7iz0eo&video_id=' . $this->video_id);
        preg_match('/<length_seconds>(.*)<\/length_seconds>/i', $youtube_xml, $duration);
 
        if (isset($duration[1]))
        {
            $youtube_duration = $duration[1];
            $youtube_video_time = sec2hms($youtube_duration);
            $this->update_youtube_duration($youtube_video_time, $youtube_duration);
        } 
 Replace it by :
	PHP Code:
	
   /* 
        $youtube_xml = $this->get_youtube_duration('http://www.youtube.com/api2_rest?method=youtube.videos.get_details&dev_id=rG48P7iz0eo&video_id=' . $this->video_id);
        preg_match('/<length_seconds>(.*)<\/length_seconds>/i', $youtube_xml, $duration);
 
        if (isset($duration[1]))
        {
            $youtube_duration = $duration[1];
            $youtube_video_time = sec2hms($youtube_duration);
            $this->update_youtube_duration($youtube_video_time, $youtube_duration);
        }
        */
        require 'Zend/Loader.php';
          Zend_Loader::loadClass('Zend_Gdata_YouTube');
        require 'class.bulk_import.php';
         $temp = BulkImport::getYoutubeVideoInfo($video_id);
          $youtube_duration=$temp['video_duration'];
           $youtube_video_time=sec2hms($youtube_duration);
         if( $youtube_duration )
           $this->update_youtube_duration($youtube_video_time, $youtube_duration); 
  
			
		
Bookmarks