Skip to content

This script allows you to sort a set of files according to a given .torrent file

License

Notifications You must be signed in to change notification settings

parshikov/file_match_finder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Readme

file_match_file.py allows you to sort a set of files according to a given .torrent file. The sorting will be done in a way that you can resume seeding the files in a torrent client.

Unfortunately, due to the structure of .torrent files, small files are not processed by this program and will need to be re-downloaded. Additionally, if some files are missing, the torrent client may consider that there is no beginning or end of an existing file.

Usage

Command line

Clone repository

git clone https://github.com/parshikov/file_match_finder.py.git

Install dependencies

pip install -r requirements.txt

Run

./file_match_file.py -t <torrent_file> -s <directory_with_files> -d <destination_directory>

Docker

Build image (optionally)

docker build -f Dockerfile -t parshikov/file_match_file .

Run

# Torrent file is considered to be in the /torrents directory   
docker run -it --rm -v <directory_with_files>:/source -v <destination_directory>:/destination parshikov/file_match_file -t <torrent_file>

Copyrights & License

This code is licensed under MIT

Copyright © 2023, Grigory Parshikov

About

This script allows you to sort a set of files according to a given .torrent file

Resources

License

Stars

Watchers

Forks