mirror of
https://codeberg.org/hyperreal/techne
synced 2024-11-01 14:23:06 +01:00
1.1 KiB
1.1 KiB
Internet Archive
- Install Python command line client
- Use Python client to download torrent files from given collection
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