diff --git a/formats/M3uFormat.php b/formats/M3uFormat.php new file mode 100644 index 00000000..be2895cf --- /dev/null +++ b/formats/M3uFormat.php @@ -0,0 +1,24 @@ +getItems() as $item) { + $itemArray = $item->toArray(); + + if (isset($itemArray['itunes']) && isset($itemArray['enclosure'])) { + $contents .= $itemArray['enclosure']['url'] . "\n"; + } + } + return mb_convert_encoding($contents, $this->getCharset(), 'UTF-8'); + } +}