/**
  * Reset the thumbnail for this video to its original from the provider
  * @param File $file
  * @param string $thumbnailUrl
  * @param int $delayIndex See VideoHandlerHelper->resetVideoThumb for more info
  * @return FileRepoStatus
  */
 public function resetThumbnail(File &$file, $thumbnailUrl, $delayIndex = 0)
 {
     wfProfileIn(__METHOD__);
     // Some providers will sometimes return error codes when attempting
     // to fetch a thumbnail
     try {
         $upload = $this->uploadBestThumbnail($thumbnailUrl, $delayIndex);
     } catch (Exception $e) {
         wfProfileOut(__METHOD__);
         return Status::newFatal($e->getMessage());
     }
     // Publish the thumbnail file
     $result = $file->publish($upload->getTempPath(), File::DELETE_SOURCE);
     wfProfileOut(__METHOD__);
     return $result;
 }