Removed logging and fix parameter variable

This commit is contained in:
Robbt 2019-01-13 11:46:55 -05:00
parent 2485e70bbe
commit 7177fc7bed
2 changed files with 2 additions and 3 deletions

View File

@ -37,7 +37,6 @@ class PodcastManager {
// but will at least continue to ingest new episodes. // but will at least continue to ingest new episodes.
if (!empty($episodes)) { if (!empty($episodes)) {
$podcast->setDbAutoIngestTimestamp(gmdate('r', strtotime($episodes[0]->getDbPublicationDate())))->save(); $podcast->setDbAutoIngestTimestamp(gmdate('r', strtotime($episodes[0]->getDbPublicationDate())))->save();
Logging::info($episodes);
$service->downloadEpisodes($episodes); $service->downloadEpisodes($episodes);
} }
} }
@ -102,4 +101,4 @@ class PodcastManager {
return (strtotime($a["pub_date"]) < strtotime($b["pub_date"])) ? 1 : -1; // Descending order return (strtotime($a["pub_date"]) < strtotime($b["pub_date"])) ? 1 : -1; // Descending order
} }
} }

View File

@ -133,7 +133,7 @@ class Application_Service_PodcastEpisodeService extends Application_Service_Thir
foreach($episodes as $episode) { foreach($episodes as $episode) {
$podcast = $episode->getPodcast(); $podcast = $episode->getPodcast();
Logging::info($episode); Logging::info($episode);
$this->_download($episode->getDbId(), $episode->getDbDownloadUrl(), $podcast->getDbTitle(), $this->_getAlbumOverride($podcast), $episode["title"]); $this->_download($episode->getDbId(), $episode->getDbDownloadUrl(), $podcast->getDbTitle(), $this->_getAlbumOverride($podcast), $episode->getDbEpisodeTitle());
} }
} }