needs to be invoked as "python changetracker.py ..."
-h/--help: to print this message
-f/--folder (REQUIRED): specify the folder in which to read the torrents to be modified
-w/--write (REQUIRED): specify the folder in which to write the modified torrents
-o/--old-tracker (OPTIONAL): if specified, will only modify those torrents whose announce urls CONTAIN this string (probably does not work with multitracker torrents). If not specified, will change all torrents. Be sure to not underspecify this string, or you will get more matches than you want.
-n/--new-tracker (REQUIRED): set new tracker to specified url.
-d/--delete (OPTIONAL): will offer an option to delete the torrents after the edited ones are listed (only those torrents that were changed should be deleted)
-z/--force-delete (OPTIONAL): will delete the edited torrents without prompting the user
Depending on how your shell deals with some characters, it is probably a good idea to quote your option arguments. No guarantees that this won't burn your computer, kill your mother, or steal your dog. Use carefully. Does not check for valid options (e.g. valid directory names).
If you know how multitracker torrents are stored as python objects once bdecoded, you can edit the top of this file to set oldTrackG/newTrackG to the desired setting and run the program without passing -o/-n. Can also set set dirToListG/writeDirG that way. If everything is set that way, pass -p to run with just the internal defaults you set if you don't pass -d/-z. If you set them, and provide cli arguments as well, the cli arguments will override. Specify None to -o to set to all torrents when you have oldTrackG set to something