private function finalizeEpisode($episode) {
        $event = new EncodedEpisodeEvent($episode);
        $this->getContainer()->get('event_dispatcher')->dispatch(
            OktolabMediaEvent::ENCODED_EPISODE,
            $event
        );

        $this->oktolab_media->addFinalizeEpisodeJob(
            $episode->getUniqID(),
            false,
            true
        );
    }