Refactor YouTube shortcode

Includes the following changes:
 - Add support to retrieve the YouTube title from the video metadata
 - Adjusts autoplay configuration
 - Improve argument handling
This commit is contained in:
Mark Dumay
2024-08-11 12:05:48 +02:00
parent e99ac83fbc
commit fb20543d88
3 changed files with 67 additions and 20 deletions

View File

@@ -23,4 +23,12 @@ arguments:
type: bool
optional: true
default: false
comment: Flag indicating the video should start playing immediately when loaded.
comment: >-
Flag indicating the video should start playing immediately when loaded, if
supported by the browser. The audio will be muted.
autotitle:
type: bool
optional: true
default: false
comment: >-
Trigger to retrieve the title from the video metadata.