diff --git a/lib/Parser/XML/Entry.php b/lib/Parser/XML/Entry.php index 4674248..93867f5 100644 --- a/lib/Parser/XML/Entry.php +++ b/lib/Parser/XML/Entry.php @@ -105,12 +105,14 @@ class Entry extends Construct implements \MensBeam\Lax\Parser\Entry { public function getContent(): ?Text { return $this->fetchAtomText("atom:content") // Atom content ?? $this->fetchText("enc:encoded", self::TEXT_HTML) // Explicitly encoded HTML content - ?? $this->fetchText("rss1:description", self::TEXT_LOOSE) // RSS 1.0 ambiguous text - ?? $this->fetchText("rss2:description", self::TEXT_LOOSE); // RSS 2.0 ambiguous text + ?? $this->fetchText("rss1:description", self::TEXT_LOOSE) // RSS 1.0 ambiguous text + ?? $this->fetchText("rss2:description", self::TEXT_LOOSE); // RSS 2.0 ambiguous text } public function getSummary(): ?Text { - return null; + return $this->fetchAtomText("atom:summary") // Atom summary + ?? $this->fetchText("gplay:description", self::TEXT_PLAIN) // Google Play podcast description + ?? $this->fetchText("apple:summary", self::TEXT_PLAIN); // iTunes podcast summary } public function getBanner(): ?Url {