diff --git a/lib/Core/EpisodeAction/EpisodeActionReader.php b/lib/Core/EpisodeAction/EpisodeActionReader.php index 0e47787..ecc6dcc 100644 --- a/lib/Core/EpisodeAction/EpisodeActionReader.php +++ b/lib/Core/EpisodeAction/EpisodeActionReader.php @@ -41,7 +41,13 @@ class EpisodeActionReader $episodeFilesize = (int) $item->enclosure['length']; // Get episode action - $episodeAction = $this->episodeActionRepository->findByEpisodeUrl($episodeUrl, $this->userService->getUserUID()); + $episodeAction = $this->episodeActionRepository->findByGuid($episodeGuid, $this->userService->getUserUID()); + + if ($episodeAction) { + $episodeUrl = $episodeAction->getEpisode(); + } else { + $episodeAction = $this->episodeActionRepository->findByEpisodeUrl($episodeUrl, $this->userService->getUserUID()); + } // Get episode name $episodeName = $this->stringOrNull($item->title);