Allow specifying playlists separately

This commit is contained in:
Svilen Markov
2025-02-09 00:31:53 +00:00
parent 982f3ee2a1
commit c583057d45
2 changed files with 25 additions and 7 deletions
+13 -7
View File
@@ -589,6 +589,7 @@ Preview:
| Name | Type | Required | Default |
| ---- | ---- | -------- | ------- |
| channels | array | yes | |
| playlists | array | no | |
| limit | integer | no | 25 |
| style | string | no | horizontal-cards |
| collapse-after | integer | no | 7 |
@@ -597,13 +598,7 @@ Preview:
| video-url-template | string | no | https://www.youtube.com/watch?v={VIDEO-ID} |
##### `channels`
A list of channel or playlist IDs. To specify a playlist, use the `playlist:` prefix like such:
```yaml
channels:
- playlist:PL8mG-RkN2uTyZZ00ObwZxxoG_nJbs3qec
- playlist:PL8mG-RkN2uTxTK4m_Vl2dYR9yE41kRdBg
```
A list of channels IDs.
One way of getting the ID of a channel is going to the channel's page and clicking on its description:
@@ -613,6 +608,17 @@ Then scroll down and click on "Share channel", then "Copy channel ID":
![](images/videos-copy-channel-id-example.png)
##### `playlists`
A list of playlist IDs:
```yaml
- type: videos
playlists:
- PL8mG-RkN2uTyZZ00ObwZxxoG_nJbs3qec
- PL8mG-RkN2uTxTK4m_Vl2dYR9yE41kRdBg
```
##### `limit`
The maximum number of videos to show.