Skip to content

media-upgrade-and-cleanup — switch profiles, search in batches, keep the seeds

Input → Movement → Output

~/torrentvpn/scripts/media-profile-switch.py saves originals, moves monitored /data/movies and /data/kids-movies movies (not "HD - Spanish") to "HD Bluray + WEB", and with --search runs "cutoff unmet" searches in batches of 25, waiting for the Radarr queue (≤5) between batches. It always sets Remove Completed to false. Flags: --dry-run, --search, --batch N. Do not use --rollback: it also reverts every profile change.

Other scripts: qbit-setup.py (qBittorrent login, limits off, start stopped torrents, Homepage widget), media-recover.sh (stop arrs, drop missingFiles torrents, recreate gluetun+qbittorrent, DB fix, list outdated images).

Why this shape

A profile change alone does not search; the burst comes from "Search cutoff unmet". Batching keeps qBittorrent and the VPN from being flooded. Remove Completed is never on because share limits plus it deleted torrent data twice (2026-09-03, 2026-10-20); the interlock is in torrentvpn-stack.

After a run

  1. Radarr/Sonarr GET downloadclient: both flags false.
  2. qBittorrent: no missingFiles, limits all off.
  3. Post-search library check: misplaced files, duplicates, missing subtitles.