From e7a388e4ba4501adc518ec821bc0dd147860034e Mon Sep 17 00:00:00 2001 From: Jon Uhlmann Date: Thu, 8 Apr 2021 09:13:58 +0200 Subject: [PATCH] New: Save duration of videos --- Configuration/NodeTypes.Mixin.VideoID.yaml | 1 + README.md | 4 ++++ composer.json | 2 +- 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Configuration/NodeTypes.Mixin.VideoID.yaml b/Configuration/NodeTypes.Mixin.VideoID.yaml index 9ab74c9..b83cf61 100644 --- a/Configuration/NodeTypes.Mixin.VideoID.yaml +++ b/Configuration/NodeTypes.Mixin.VideoID.yaml @@ -7,6 +7,7 @@ 'Jonnitto.PrettyEmbedHelper:Mixin.Metadata.Ratio': true 'Jonnitto.PrettyEmbedHelper:Mixin.Metadata.Image': true 'Jonnitto.PrettyEmbedHelper:Mixin.Metadata.Thumbnail': true + 'Jonnitto.PrettyEmbedHelper:Mixin.Metadata.Duration': true properties: platform: type: string diff --git a/README.md b/README.md index 2aedf21..6f8932a 100644 --- a/README.md +++ b/README.md @@ -75,6 +75,10 @@ Some settings will be set globally from the [PrettyEmbedHelper] package. These a ```yaml Jonnitto: PrettyEmbedHelper: + # If you want to save the duration of YouTube videos and playlists into the + # property metadataDuration you have to add a API key from YouTube Data API v3 + # You can create this key on https://console.cloud.google.com/ + youtubeApiKey: null # For Vimeo and Youtube you can enable here the option the show a confirm dialog # that external content get loaded and the user may be tracked enableGdprMessage: false diff --git a/composer.json b/composer.json index cac5cdd..943a27b 100644 --- a/composer.json +++ b/composer.json @@ -25,7 +25,7 @@ } ], "require": { - "jonnitto/prettyembedhelper": "^2.6.3 || dev-master" + "jonnitto/prettyembedhelper": "^2.8 || dev-master" }, "autoload": { "psr-4": {