1
0
mirror of https://github.com/Decicus/DecAPI-Docs.git synced 2024-11-22 08:52:31 +01:00

[YouTube] Latest video - Add documentation for no_shorts and no_livestream

This commit is contained in:
Alex Thomassen 2023-10-30 00:17:49 +01:00
parent 9b52c058bb
commit 5dca68ad12
Signed by: Alex
GPG Key ID: 10BD786B5F6FF5DE

View File

@ -13,6 +13,12 @@ endpoints:
description: "Customize the output format of the latest video. Available variables are: <code>{title}</code>, <code>{id}</code>, <code>{url}</code>. Default format is: <kbd>{title} - {url}</kbd>"
- name: "exclude"
description: "Exclude videos that contain the specified text in the <i>video title</i>. 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 <code>no_shorts=1</code> to enable this."
- name: "no_livestream"
type: "bool"
description: "Will exclude any currently <i>active</i> livestreams. Stream VODs are <i>not</i> by this setting. Set <code>no_livestream=1</code> to enable this."
notes:
- 'Retrieves the latest video uploaded to the specified channel and returns the title + URL for it.'
- 'Either <code>user</code> or <code>id</code> has to be specified. If both are specified, <code>id</code> will be used.'