public function populateDefaultMetadata()
    {
        $oEmbed = Oembed::cache($this->path, ['lifetime' => 432000]);

        $this->type = $this->mediaType;
        $this->mimetype = mb_strtolower($oEmbed->providerName);
        $this->size = 0;

        $this->name = $oEmbed->title;
        $this->caption = $oEmbed->title;
        $this->description = $oEmbed->description;

        $this->setMetadata('media_type', $oEmbed->type);

        $this->setMetadata('provider_url', $oEmbed->providerUrl);
        $this->setMetadata('provider_icon', $oEmbed->providerIcon);

        if ( ! is_null($oEmbed->image))
        {
            $this->createEmbeddedPath();

            $destination = 'embedded/' . $this->mimetype . '_' . md5($oEmbed->image);
            copy($oEmbed->image, upload_path($destination));

            $this->setMetadata('thumbnail_original', $oEmbed->image);
            $this->setMetadata('thumbnail_url', $destination);
            $this->setMetadata('thumbnail_width', $oEmbed->imageWidth);
            $this->setMetadata('thumbnail_height', $oEmbed->imageHeight);
        }

        if ( ! is_null($oEmbed->authorName))
        {
            $this->setMetadata('author_name', $oEmbed->authorName);
            $this->setMetadata('author_url', $oEmbed->authorUrl);
        }
    }