diff --git a/includes/MediaInternetYouTubeHandler.inc b/includes/MediaInternetYouTubeHandler.inc index fbc92ec..6e349fc 100644 --- a/includes/MediaInternetYouTubeHandler.inc +++ b/includes/MediaInternetYouTubeHandler.inc @@ -28,17 +28,6 @@ class MediaInternetYouTubeHandler extends MediaInternetBaseHandler { } } - public function validate() { - // @todo Media module currently fails when two files try to have the same - // URI, so catch that in the validation step. Some day, it would be nice - // to allow it, however. See http://drupal.org/node/952422. - $uri = $this->parse($this->embedCode); - $existing_files = file_load_multiple(array(), array('uri' => $uri)); - if (count($existing_files)) { - throw new MediaInternetValidationException(t('You have entered a URL for a video that is already in your library.')); - } - } - public function save() { $file = $this->getFileObject(); file_save($file);