aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2025-05-23 14:35:35 +0200
committermetamuffin <metamuffin@disroot.org>2025-05-23 14:35:35 +0200
commit6e1950535e1eab20b3029c89f989470da503d5ae (patch)
tree73babf481d1003779986f0640c3abd51e3c32004 /scripts
parent4b139e88a1879c8e4add31480bb254cd4e08181f (diff)
downloadisda-6e1950535e1eab20b3029c89f989470da503d5ae.tar
isda-6e1950535e1eab20b3029c89f989470da503d5ae.tar.bz2
isda-6e1950535e1eab20b3029c89f989470da503d5ae.tar.zst
document the remaining workers
Diffstat (limited to 'scripts')
-rw-r--r--scripts/ytdlp_channel_info.md16
-rw-r--r--scripts/ytdlp_download.md30
-rw-r--r--scripts/ytdlp_flatten.md22
3 files changed, 68 insertions, 0 deletions
diff --git a/scripts/ytdlp_channel_info.md b/scripts/ytdlp_channel_info.md
index e69de29..b824317 100644
--- a/scripts/ytdlp_channel_info.md
+++ b/scripts/ytdlp_channel_info.md
@@ -0,0 +1,16 @@
+# yt-dlp Channel Info Generator
+
+Saves channel metadata for yt-dlp channels or playlists.
+
+Currently supported task kinds are: `youtube-channel-info` and
+`bilibili-channel-info`.
+
+It will place files in the `output` directory of the task:
+
+- `channel.info.json`: A yt-dlp info.json for the channel
+- `backdrop.jpeg`: The channel's banner picture
+- `poster.jpeg`: The channel icon
+
+## Configuration
+
+None
diff --git a/scripts/ytdlp_download.md b/scripts/ytdlp_download.md
index e69de29..c9f695a 100644
--- a/scripts/ytdlp_download.md
+++ b/scripts/ytdlp_download.md
@@ -0,0 +1,30 @@
+# yt-dlp Media Downloader
+
+Downloads media with yt-dlp.
+
+Currently supported task kinds are `youtube` and `bilibili`.
+
+The output directory is the tasks `output` data attribute which must be present.
+Additional yt-dlp arguments are added based on the task's `profile` attribute.
+
+## Configuration
+
+- `ytdlp_download`
+ - `profiles`: Map from profile name to list of arguments passed to yt-dlp.
+
+Sample configuration:
+
+```yaml
+ytdlp_download:
+ profiles:
+ video:
+ - -f
+ - bestvideo+bestaudio
+ - --embed-metadata
+ - --remux=mkv
+ audio:
+ - -f
+ - bestaudio
+ - --embed-metadata
+ - --remux=mka
+```
diff --git a/scripts/ytdlp_flatten.md b/scripts/ytdlp_flatten.md
index e69de29..97ffb39 100644
--- a/scripts/ytdlp_flatten.md
+++ b/scripts/ytdlp_flatten.md
@@ -0,0 +1,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
+```