private function loadContent() { if (!file_exists($this->filename)) { throw new \Exception('File "' . $this->filename . '" not found.'); } if (!($this->file_content = file_get_contents($this->filename))) { throw new \Exception($this->filename . ' is not a proper .srt file.'); } $this->file_content .= "\n\n"; // fixes files missing blank lines at the end $this->convertEncoding(); }