Skip to content

Commit

Permalink
Merge pull request #8 from jaylinski/bugfix-categories
Browse files Browse the repository at this point in the history
Add missing categories in XML output
  • Loading branch information
jaylinski committed Feb 21, 2019
2 parents 9f32207 + e4b921e commit 06e79ba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions spec/epg.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
<sub-title lang="">subtitle</sub-title>
<desc lang="">desc</desc>
<date>1999</date>
<category lang="">category</category>
<keyword lang="">keyword</keyword>
</programme>
</tv>
1 change: 1 addition & 0 deletions src/Tv/Programme.php
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,7 @@ public function xmlSerialize(): XmlElement
->withChildren($this->getSubTitles())
->withChildren($this->getDescriptions())
->withChild(new XmlElement('date', $this->date))
->withChildren($this->getCategories())
->withChildren($this->getKeywords())
->withChild(new XmlElement('language', $this->language))
->withChild(new XmlElement('orig-language', $this->origLanguage));
Expand Down

0 comments on commit 06e79ba

Please sign in to comment.