Fix a couple of station podcast bugs

This commit is contained in:
Duncan Sommerville 2015-11-03 17:13:38 -05:00
parent a1d9902b2a
commit 6683b712c4
4 changed files with 24 additions and 7 deletions

View file

@ -228,7 +228,9 @@ class Application_Service_PodcastService
throw new PodcastNotFoundException();
}
return $podcast->toArray(BasePeer::TYPE_FIELDNAME);
$podcast = $podcast->toArray(BasePeer::TYPE_FIELDNAME);
$podcast["itunes_explicit"] = ($podcast["itunes_explicit"] == "yes") ? true : false;
return $podcast;
}
/**
@ -297,6 +299,7 @@ class Application_Service_PodcastService
self::_updateAutoIngestTimestamp($podcast, $data);
}
$data["podcast"]["itunes_explicit"] = $data["podcast"]["itunes_explicit"] ? "yes" : "clean";
$podcast->fromArray($data["podcast"], BasePeer::TYPE_FIELDNAME);
$podcast->save();