Maintenance¶
Routine upkeep lives mostly under Settings → AI (jobs) and Settings → System, plus automatic work on startup.
AI jobs¶
Use the AI process / queue controls to:
| Action | Effect |
|---|---|
| Embed missing videos / Re-embed everything | Queue embed_video for missing, stale, or wrong-model embeddings (e.g. after an embedding model change) |
| Re-tag | Queue enrich_tags for videos that still need AI tags |
| Refresh categories | Queue refresh_categories to rebuild recommendation category shelves |
The AI worker is single-flight: one job at a time, up to 3 attempts with backoff. Pause the queue before heavy maintenance if you need the GPU for something else.
Duplicate scoring
Library duplicate LLM scoring is on-demand from the Import/review API. See AI pipeline.
Metadata resync¶
A background sync worker refreshes stale source metadata (titles, descriptions, view counts, etc.) for videos that still have a source_url.
- Interval comes from Settings (
metadata_sync_interval_hours, default often 24h). - Each wake processes a batch of 20 stale rows, then sleeps until the next interval.
- Custom titles/descriptions (
title_is_custom/description_is_custom) are respected so user edits are not overwritten. - Redownload / replace-in-place also preserves custom title, description, notes, and locked tags while refreshing
source_title/source_description.
You can refresh a channel's video list from its channel settings; the sync loop also refreshes stale lists when enabled.
Video list relist¶
Horde lists a YouTube channel's videos in phases (flat → descriptions → embed), one channel at a time. Opening a channel feed queues listing automatically. The List videos button (channel page → Channel settings → Manage) is only for a missing, incomplete, or failed video list. To catch new uploads or re-walk everything, use Settings → System → Refresh video lists / Full relist (including after raising the max-video cap).
Orphan cleanup (startup)¶
On every boot, after init_db(), Horde runs orphan cleanup: library rows whose files no longer exist under DOWNLOADS_DIR are removed (or reconciled) so the UI does not show dead cards.
The downloads-tree scanner continues to pick up new files and may flag orphans during poll cycles as well.
Bumping yt-dlp¶
Horde pins an exact yt-dlp version in backend/requirements.txt (for example yt-dlp==2026.8.19). The Docker image installs that pin at build time — the container does not auto-upgrade yt-dlp on start unless you set YTDLP_AUTO_UPDATE=1 (Environment variables). The repository also opens a pull request automatically (ytdlp-bump.yml) when PyPI has a newer release, with the lock file regenerated and tests passing, and merges it once the full checks pass. The new yt-dlp ships with the next Horde release.
When YouTube breaks extractors (format errors, bot checks that a newer yt-dlp already fixed, etc.):
- Edit the
yt-dlp==…pin inbackend/requirements.txtto the version you want (check yt-dlp releases) and regeneratebackend/requirements.lock(Dependencies). - Keep
bgutil-ytdlp-pot-provideraligned with the Composebgutil-potimage tag when that plugin needs a matching bump (YouTube access). - Rebuild and recreate via
update.sh(or Compose withHORDE_GIT_SHA). - Smoke-test: Settings → System (or
GET /api/health) shows the newyt_dlp_version, then paste a short URL and download.
Mention the bump in the commit or PR message when extractors were the reason (“bump yt-dlp for YouTube extractor fix”). For day-to-day app updates, a normal rebuild already picks up whatever pin is in the tree.
Local development: reinstall the venv deps after changing the pin (pip install -r backend/requirements.txt), or let ./start.sh reinstall when requirements.txt is newer than its stamp.