The seedbox.torrent.loader Module

Loads torrents into database.

Torrent loader handles searches the directory where torrent files are stored and adds them to the database cache if not already found.

seedbox.torrent.loader.load_torrents(dbapi)

Loads torrents into database.

Find all the torrents in the specified directory, verify it is a valid torrent file (via parsing) and capture the relevant details. Next create a record in the cache for each torrent.