+ /**
+ * Get the type of podcast
+ *
+ * @return string One of "episodic" or "serial". Defaults to "episodic"
+ * if no itunes:type tag is encountered.
+ */
+ public function getPodcastType()
+ {
+ if (isset($this->data['podcastType'])) {
+ return $this->data['podcastType'];
+ }
+
+ $type = $this->xpath->evaluate('string(' . $this->getXpathPrefix() . '/itunes:type)');
+
+ if (! $type) {
+ $type = 'episodic';
+ }
+
+ $this->data['podcastType'] = (string) $type;
+
+ return $this->data['podcastType'];
+ }
+
+ /**
+ * Is the podcast complete (no more episodes will post)?
+ *
+ * @return bool
+ */
+ public function isComplete()
+ {
+ if (isset($this->data['complete'])) {
+ return $this->data['complete'];
+ }
+
+ $complete = $this->xpath->evaluate('string(' . $this->getXpathPrefix() . '/itunes:complete)');
+
+ if (! $complete) {
+ $complete = false;
+ }
+
+ $this->data['complete'] = $complete === 'Yes';
+
+ return $this->data['complete'];
+ }
+