From 5dca68ad120c5589ca74370bb351f0abcc5f0bf8 Mon Sep 17 00:00:00 2001 From: Alex Thomassen Date: Mon, 30 Oct 2023 00:17:49 +0100 Subject: [PATCH] [YouTube] Latest video - Add documentation for `no_shorts` and `no_livestream` --- public/static/yaml/endpoints/youtube.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/public/static/yaml/endpoints/youtube.yaml b/public/static/yaml/endpoints/youtube.yaml index a755b69..9f911c0 100644 --- a/public/static/yaml/endpoints/youtube.yaml +++ b/public/static/yaml/endpoints/youtube.yaml @@ -13,6 +13,12 @@ endpoints: description: "Customize the output format of the latest video. Available variables are: {title}, {id}, {url}. Default format is: {title} - {url}" - name: "exclude" description: "Exclude videos that contain the specified text in the video title. This is case-insensitive." + - name: "no_shorts" + type: "bool" + description: "Will exclude any videos shorter than 1 minute (60 seconds), also known as 'Shorts'. Set no_shorts=1 to enable this." + - name: "no_livestream" + type: "bool" + description: "Will exclude any currently active livestreams. Stream VODs are not by this setting. Set no_livestream=1 to enable this." notes: - 'Retrieves the latest video uploaded to the specified channel and returns the title + URL for it.' - 'Either user or id has to be specified. If both are specified, id will be used.'