Skip to content

Commit 06e79ba

Browse files
authored
Merge pull request #8 from jaylinski/bugfix-categories
Add missing categories in XML output
2 parents 9f32207 + e4b921e commit 06e79ba

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

spec/epg.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
<sub-title lang="">subtitle</sub-title>
1111
<desc lang="">desc</desc>
1212
<date>1999</date>
13+
<category lang="">category</category>
1314
<keyword lang="">keyword</keyword>
1415
</programme>
1516
</tv>

src/Tv/Programme.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,7 @@ public function xmlSerialize(): XmlElement
229229
->withChildren($this->getSubTitles())
230230
->withChildren($this->getDescriptions())
231231
->withChild(new XmlElement('date', $this->date))
232+
->withChildren($this->getCategories())
232233
->withChildren($this->getKeywords())
233234
->withChild(new XmlElement('language', $this->language))
234235
->withChild(new XmlElement('orig-language', $this->origLanguage));

0 commit comments

Comments
 (0)