@mustgroove
you will need a text editor like Text Wrangler. Once you have downloaded and installed it, or whatever text editor you prefer open a new document and paste the contents of my file there. Save the file wherever you want (I put it in my documents folder) with a .pl extension. Now you'll need to change the permissions on the file. Open up Terminal and change directories to your Documents folder (cd ~/Documents). Now type this command
chmod +x yourscriptname.pl
-to actually run the script type
perl yourscriptname.pl
Run the script whenever you want to update your blocklist.
EDIT: I edited the code so that it would unzip the the .gz file into a text file as to avoid the 0 size .bin file
Code: Select all
#!/usr/bin/perl -w
use strict;
my $bldir = '~/Library/Application\ Support/Transmission/blocklists';
my $baseurl = 'http://www.bluetack.co.uk/config';
my @bl = ('level1', 'level2', 'level3');
foreach (@bl) {
system("curl -L $baseurl/$_.gz -o $bldir/$_.gz");
system("gunzip -f $bldir/$_.gz $bldir/$_.txt");
}
Another edit: If any of the devs are reading this thread, can you answer this question? Does transmission only read the blocklist.bin for it's block list or does it parse each .bin file?