From c3d503ff2c2add545b108461db1367d80f070442 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20LASSERRE?= Date: Thu, 6 May 2021 21:01:03 +0200 Subject: [PATCH 1/2] Update composer.json --- composer.json | 2 ++ 1 file changed, 2 insertions(+) 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": [ From 460d89b25757688c83ec4ea68c3a2983b8ce885a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20LASSERRE?= Date: Thu, 6 May 2021 21:11:05 +0200 Subject: [PATCH 2/2] Update to version 0.1.0 --- README.md | 2 ++ src/Extractor/AbstractExtractor.php | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) 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/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