protected function update()
{
// only do this if the file exists and contains data
if ($this->getDataChanged() || !$this->getCustomSetting("duration")) {
try {
$this->setCustomSetting("duration", $this->getDurationFromBackend());
} catch (\Exception $e) {
Logger::err("Unable to get duration of video: " . $this->getId());
}
}
$this->clearThumbnails();
parent::update();
}