diff options
author | metamuffin <metamuffin@disroot.org> | 2025-06-15 12:32:44 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2025-06-15 12:32:44 +0200 |
commit | f1d857b5ab44b35cf049981a2597b9a9610eae94 (patch) | |
tree | 20c9ea71158d4cf3d15c4a37f1a8d7e303f07492 /scripts/ytdlp_flatten.ts | |
parent | 88a45d8003deb6804f90313e994fac1bf8eefce6 (diff) | |
download | isda-f1d857b5ab44b35cf049981a2597b9a9610eae94.tar isda-f1d857b5ab44b35cf049981a2597b9a9610eae94.tar.bz2 isda-f1d857b5ab44b35cf049981a2597b9a9610eae94.tar.zst |
add nicovideo support
Diffstat (limited to 'scripts/ytdlp_flatten.ts')
-rw-r--r-- | scripts/ytdlp_flatten.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/ytdlp_flatten.ts b/scripts/ytdlp_flatten.ts index 499233d..896e5a2 100644 --- a/scripts/ytdlp_flatten.ts +++ b/scripts/ytdlp_flatten.ts @@ -6,11 +6,13 @@ let config: Config = {} as unknown as Config const supported = [ "youtube-channel", "bilibili-channel", + "niconico-channel", ] function key_to_url(key: string): [string, string] { const [kind, id] = key.split(":", 2) if (kind == "youtube-channel") return ["youtube", `https://youtube.com/channel/${id}`] if (kind == "bilibili-channel") return ["bilibili", `https://space.bilibili.com/${id}/upload/video`] + if (kind == "niconico-channel") return ["niconico", `https://www.nicovideo.jp/user/${id}`] throw new Error("unknown kind"); } function key_to_infokey(key: string): string { |