Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# playlist-php

streams.json playlist generator allow us to create a m3u or xspf playlist using a streams.json file.

## Install

```bash
Expand Down
2 changes: 2 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{
"name": "streams-json/playlist-php",
"description": "Streams-json playlist generator",
"homepage": "https://streams-json.rocketip.net/",
"version": "0.1.0",
"type": "project",
"license": "MIT",
"authors": [
Expand Down
4 changes: 2 additions & 2 deletions src/Extractor/AbstractExtractor.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ abstract class AbstractExtractor implements ExtractorInterface
{
public const FILES_PATH = __DIR__.'/../../files';

private const REQUIRED_JSON_VERSION = 0.1;
private const REQUIRED_JSON_VERSION = "0.4.0";

public function support(string $type): bool
{
Expand All @@ -27,7 +27,7 @@ public function extract(string $source): void
return;
}

if ($json->{'_streams.json_Version'} < self::REQUIRED_JSON_VERSION) {
if ($json->{'_streams.json_version_'} < self::REQUIRED_JSON_VERSION) {
echo sprintf(
'Version of streams.json is too low, please upgrade to version "%s" or higher.',
self::REQUIRED_JSON_VERSION
Expand Down