Fix existing url
This commit is contained in:
parent
44db2066aa
commit
08e1684fbd
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user