IRSSI Auto Download for SCC, Part II
This is a continuation of the first part of this tutorial which deals with the installation procedure for IRSSI.
IRC server info for SCC: irc.sceneaccess.org, Ports: 6667 and +7000 if you wish to use SSL. If your username starts with a number you will have to add a _ to your nick when connecting to the SCC IRC Network (e.g. if your nick is 23Jordan, you will need to use _23Jordan on the SCC IRC Network).
First let's start with some preparations that will make things easier
Start your favourite irc software on your home computer. Join the server with your SCC nick (e.g. /server irc.sceneaccess.org and then use the /nick command). Make sure this nick is registered. To register, type: /msg nickserv register <password> <e-mail> (e-mail is not necessary).
On your seedbox, start irssi and join the SSC server (e.g. /server irc.sceneaccess.org). Use your SCC nick-bot. So if my nick were Malevich on SCC, I would use: Malevich-bot (/nick Malevich-bot). Register this nick too. To go between windows in IRSSI, press the escape button and then a number. You can use<ALT+p> and <ALT+n> to scroll up and down the irc window. For reference, use this guide: Irssi - The client of the future .
Join #support (/join #support) from both your home computer and your seedbox, and ask to be given a vhost. It's possible to autodownload without a vhost, but then you must invite yourself every time from the IRC tab on the SCC website (using your ordinary nick on SCC). Once given a vhost, try it out. To activate it, you need to type: /msg hostserv on in IRSSI. Then try to join #announce with your bot and see if it works.
Automatically joining
Here are a few commands for your convenience that you can type in the IRSSI window to make it connect to the SCC server at startup, identifying your registered nick and autojoin the announce channel:
/network add -nick <nickname-bot> SCC
/server add -auto -network SCC irc.sceneaccess.org
/channel add -auto #announce SCC
/network add -autosendcmd "/msg nickserv identify <password> ;wait 2000" SCC
If you want to connect manually to SCC, use the command /connect SCC and see if it works properly.
Quit IRSSI, by typing /quit.
The script
The script can be found here: [Perl] script - Pastebin.com. It's not mine; you can see at the top that it's by ceb, so credit where credit is due! Copy the script and save the file as scc.pl. Edit the top part of this script, for instance:
- You need to fill in your passkey. The passkey is the combination of letters and numbers that is added to your announce URL in the torrent file.
- Then there is the watch directory, from which torrents automatically will be added to the torrent client of your choice. At my feral slot for instance, the watch directory for Deluge can be found at: homedir/private/deluge/watch. Make sure that 'homedir' represents the full path. This should be added as the torrentdir entry.
- Finally the filters. For instance, if I would like to download all TV-packs, I would have a line in scc.pl that says: $tvpacks = 1; . Make sure that there isn't a dashboard in front of the line, as it means that it will be ignored when the script is running. The script is pretty detailed about how to set up these filters, so just go ahead and experiment. You can filter not only according to groups, but also titles, sizes etc. If you only want to test your filters without downloading anything, just use a non-watch directory for the torrentdir entry until you are satisfied with how the script works.
Copying/uploading the script
The final thing to do now is to copy the script to the right directory and have it autostart everytime IRSSI is started. Go to your seedbox slot and type:
cd
cd .irssi
mkdir scripts
cd scripts
mkdir autorun
cd autorun
Copy/upload your edited scc.pl to the autorun directory. Start IRSSI by typing screen IRSSI and watch it autodownload in accordance to what you specified in the config file. If you want to keep IRSSI in the background, press <CTRL+a> and then <d>. To re-attach the IRSSI window, type ps x and identify the screen IRSSI process number and then type screen -r <process number>.
Enjoy!









LinkBack URL
About LinkBacks

Reply With Quote




