===== Install Python command line client =====
pipx install internetarchive
===== Use Python client to download torrent files from given collection =====
Ensure “Automatically add torrents from” > Monitored Folder is set to ''%%/mnt/torrent_files%%'' and the Override save path is Default save path.
==== Get itemlist from collection ====
ia search --itemlist "collection:bbsmagazine" | tee bbsmagazine.txt
==== Download torrent files from each item using parallel ====
cat bbsmagazine.txt | parallel 'ia download --format "Archive BitTorrent" --destdir=/mnt/torrent_files {}'
==== Move .torrent files from their directories to /mnt/torrent_files ====
find /mnt/torrent_files -type f -name "*.torrent" -exec mv {} /mnt/torrent_files \;
> Note: .torrent files will be removed from ''%%/mnt/torrent_files%%'' by qBittorrent once they are added to the instance.
==== Remove empty directories ====
find /mnt/torrent_files -maxdepth 1 -mindepth 1 -type d -delete