aboutsummaryrefslogtreecommitdiff
path: root/scripts/ytdlp_flatten.md
blob: 97ffb39ba2300257599c34a92210f98964509351 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# yt-dlp Playlist Flattener

Transforms a playlist-like object into the media items that make it up.

Currently supported task kinds are `youtube-channel` and `bilibili-channel`.
Where task ids are the ids assigned by the respective platform.

## Configuration

- `ytdlp_flatten`
  - `filters`: Map from flag to filter. Flags are taken from the `flag`
    attribute in task data. Filters are passed straight to yt-dlp's
    `--match-filter` flag.

Sample configuration:

```yaml
ytdlp_flatten:
    filters:
        notlive: live_status=not_live
        short: duration<300
```