Fix existing url
All checks were successful
repod / nextcloud (push) Successful in 1m2s
repod / xml (push) Successful in 23s
repod / nodejs (push) Successful in 2m10s

This commit is contained in:
Michel Roux 2023-12-23 21:51:48 +01:00
parent 44db2066aa
commit 08e1684fbd

View File

@ -41,7 +41,13 @@ class EpisodeActionReader
$episodeFilesize = (int) $item->enclosure['length']; $episodeFilesize = (int) $item->enclosure['length'];
// Get episode action // 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 // Get episode name
$episodeName = $this->stringOrNull($item->title); $episodeName = $this->stringOrNull($item->title);