1
0
Fork
You've already forked ytd
0
YouTube / Invidious daemon and CLI tool for crawling and processing channels with pre-configured commands vector https://crates.io/crates/ytd
  • Rust 100%
2026年05月22日 13:18:12 +03:00
example make before/after scripts panic optional 2026年04月16日 00:50:36 +03:00
src update time api; fix duration limit conditions 2026年05月22日 13:18:12 +03:00
.gitignore implement permanent database to skip handle processed entries 2026年04月06日 22:35:36 +03:00
Cargo.lock update dependencies 2026年05月22日 13:10:19 +03:00
Cargo.toml update version 2026年04月16日 00:58:43 +03:00
LICENSE Initial commit 2026年04月06日 20:19:26 +02:00
README.md update description 2026年04月08日 14:14:08 +03:00

ytd

YouTube / Invidious daemon and CLI tool for crawling and processing channels with pre-configured commands vector.

This tool was initially created as a helper for the Pidpilne project, impressed by ytsub, rustypipe and invidious API.

Install

cargo install ytd

Usage

Foreground / testing:

RUST_LOG=trace cargo run -- -c example/config.toml

Background / daemon:

RUST_LOG=ytd=info NO_COLOR=1 /usr/local/bin/ytd -c /etc/config.toml
  • make sure update option is defined (in the config file)

systemd

git clone https://codeberg.org/yggverse/ytd.git
cd ytd
cargo build --release --locked
sudo install target/release/ytd /usr/local/bin
sudo cp example/config.toml /etc/ytd.toml
sudo useradd -s /usr/sbin/nologin -Mr ytd
sudo mkdir /var/lib/ytd && sudo chown ytd:ytd /var/lib/ytd
sudo mkdir /var/log/ytd && sudo chown ytd:ytd /var/log/ytd
#/etc/systemd/system/ytd.service
[Unit]
After=network-online.target
Wants=network-online.target
[Service]
User=ytd
Group=ytd
Environment="RUST_LOG=ytd=warn"
Environment="NO_COLOR=1"
# Environment="HTTP_PROXY=socks5://127.0.0.1:1080"
# Environment="HTTPS_PROXY=socks5://127.0.0.1:1080"
WorkingDirectory=/var/lib/ytd
ExecStart=/usr/local/bin/ytd -c=/etc/ytd.toml
StandardOutput=file:///var/log/ytd/debug.log
StandardError=file:///var/log/ytd/error.log
[Install]
WantedBy=multi-user.target
  • sudo systemctl restart ytd
  • sudo systemctl enable ytd
  • sudo systemctl status ytd