|
31 | 31 |
|
32 | 32 | class Programme implements XmlSerializable |
33 | 33 | { |
| 34 | + /** |
| 35 | + * @var string |
| 36 | + */ |
| 37 | + public $channel; |
| 38 | + |
34 | 39 | /** |
35 | 40 | * @var string |
36 | 41 | */ |
@@ -62,14 +67,15 @@ class Programme implements XmlSerializable |
62 | 67 | public $videoplus; |
63 | 68 |
|
64 | 69 | /** |
65 | | - * @var string |
| 70 | + * @var string Legal values are `0` or `1`. |
66 | 71 | */ |
67 | | - public $channel; |
| 72 | + public $clumpidx; |
68 | 73 |
|
69 | 74 | /** |
70 | | - * @var string Legal values are `0` or `1`. |
| 75 | + * @var string A programme specific identifier for catchup URLs. Not part of the XMLTV specification. |
| 76 | + * @see https://github.com/kodi-pvr/pvr.iptvsimple/tree/7.0.0-Matrix#supported-m3u-and-xmltv-elements |
71 | 77 | */ |
72 | | - public $clumpidx; |
| 78 | + public $catchupId; |
73 | 79 |
|
74 | 80 | /** |
75 | 81 | * @var Title[] |
@@ -202,6 +208,7 @@ class Programme implements XmlSerializable |
202 | 208 | * @param string $showview |
203 | 209 | * @param string $videoplus |
204 | 210 | * @param string $clumpidx |
| 211 | + * @param string $catchupId |
205 | 212 | */ |
206 | 213 | public function __construct( |
207 | 214 | string $channel, |
@@ -505,14 +512,15 @@ public function getReview(): array |
505 | 512 | public function xmlSerialize(): XmlElement |
506 | 513 | { |
507 | 514 | return (new XmlElement('programme')) |
| 515 | + ->withAttribute('channel', $this->channel) |
508 | 516 | ->withAttribute('start', $this->start) |
509 | 517 | ->withAttribute('stop', $this->stop) |
510 | 518 | ->withAttribute('pdc-start', $this->pdcStart) |
511 | 519 | ->withAttribute('vps-start', $this->vpsStart) |
512 | 520 | ->withAttribute('showview', $this->showview) |
513 | 521 | ->withAttribute('videoplus', $this->videoplus) |
514 | | - ->withAttribute('channel', $this->channel) |
515 | 522 | ->withAttribute('clumpidx', $this->clumpidx) |
| 523 | + ->withAttribute('catchup-id', $this->catchupId) |
516 | 524 | ->withChildren($this->getTitle()) |
517 | 525 | ->withChildren($this->getSubTitle()) |
518 | 526 | ->withChildren($this->getDescription()) |
|
0 commit comments