diff --git a/README.md b/README.md index 46acf23..ed7f425 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/composer.json b/composer.json index 9bd0434..3cc0ef4 100644 --- a/composer.json +++ b/composer.json @@ -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": [ diff --git a/src/Extractor/AbstractExtractor.php b/src/Extractor/AbstractExtractor.php index 53e5e65..6bf8ff7 100644 --- a/src/Extractor/AbstractExtractor.php +++ b/src/Extractor/AbstractExtractor.php @@ -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 { @@ -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