Fix a couple of station podcast bugs
This commit is contained in:
parent
a1d9902b2a
commit
6683b712c4
4 changed files with 24 additions and 7 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue