Fix bug with import status of podcst episodes
This commit is contained in:
parent
c7dcd4f00a
commit
26c9a19836
5 changed files with 31 additions and 94 deletions
|
@ -323,6 +323,10 @@ class Application_Service_PodcastEpisodeService extends Application_Service_Thir
|
|||
$ingested = in_array($itemId, $episodeIds) ? (empty($episodeFiles[$itemId]) ? -1 : 1) : 0;
|
||||
$file = $ingested > 0 && !empty($episodeFiles[$itemId]) ?
|
||||
CcFiles::getSanitizedFileById($episodeFiles[$itemId]) : array();
|
||||
// If the analyzer hasn't finished with the file, leave it as pending
|
||||
if (!empty($file) && $file["import_status"] == CcFiles::IMPORT_STATUS_PENDING) {
|
||||
$ingested = -1;
|
||||
}
|
||||
|
||||
array_push($episodesArray, array(
|
||||
"podcast_id" => $podcast->getDbId(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue