Just been playing round writing my first TCL script for Eggdrop. This basically allows you to view your current SABnzbd stats and also output the queue to the specified IRC channels.
As of v0.2 you can now Pause/Resume/Add URLs or Newzbin IDs/Set and remove speed limits/Display version information.
As of v0.3 you can now search both TVBINZ.net and NZBIndex.nl and add posts from there. The use of TVBINZ.net requires the zlib TCL package. There is a link to it in the script.
As of v0.4 you can now search Binsearch.info and add posts from there. You can add multiple collections. For instance sometimes there will be two collections for a release. 1 is the PAR2 files, the other the RAR files. If you specify both the IDs, they are combined and sent to SABnzbd. You can also specify the name of the NZB with the -n switch. Otherwise Binsearch assigns it the header name which can be extremely long.
As of v0.5 there is support for searching Newzleech.com. And allows you to do the exact same thing as Binsearch with the adding of multiple post IDs
Questions, bugs, suggestions post a reply here or find me on EFnet, username: dr0pknutz.
Script can be found at: http://www.meaclem.com/sabnzbd-0.5.tcl
Example output shown below:
[23:50] !sabnzbd stats
[23:50] [SABnzbd Stats] Speed:[225.91Kb/s] Queue Status:[15732.39MB/23475.48MB(21 items)] Time Remaining:[19:48:32] Current Job:[Ubuntu 8.10 (Beta) (10.73MB/777.79MB) (1.38%)]
[23:54] !sabnzbd queue
[23:54] [SABnzbd Queue] Total Items:[23] Displaying:[3]
[23:54] [Queue Item #1] File:[Ubuntu 8.10 (Beta)] Remaining:[653.46 MB/777.79 MB]
[23:54] [Queue Item #2] File:[Kubuntu 8.04 (x64)] Remaining:[790.04 MB/790.04 MB]
[23:54] [Queue Item #3] File:[Xubuntu 8.04 (Alternate i386)] Remaining:[645.92 MB/645.92 MB]
[08:29] !sabnzbd pause
[08:29] [SABnzbd] Is now paused
[08:29] !sabnzbd resume
[08:29] [SABnzbd] Is now downloading
[08:22] !sabnzbd add http://example.com/example.nzb
[08:22] [SABnzbd] Item added successfully
[08:23] !sabnzbd add 3253283
[08:23] [SABnzbd] Item Added Successfully
[08:55] !sabnzbd speed 400
[08:55] [SABnzbd] Set speedlimit to 400KB/s
[08:55] !sabnzbd speed 0
[08:55] [SABnzbd] Removed speedlimit
[08:56] !sabnzbd version
[08:56] [SABnzbd] Script Version:[0.2] SABnzbd Version:[0.4.5]
The "Completeness" field is highlighted Green if the post is complete, or Red if the post is incomplete.[16:20] !nzbindex search -mi100 -ma1000 Ubuntu
[16:21] [NZBIndex] Search For:[Ubuntu] Min:[100MB] Max:[1000MB] Results:[8] Displaying:[3]
[16:21] ID:[10275218] Name:[(DVD Kubuntu 8.10 X86) [00/39] - "kubuntu-8.10 x86.nzb" yEnc] Size:[202.77 MB] Completeness:[5 files (829 / 852 parts)] Files:[1 NZB, 2 PAR2, 2 RAR] Age:[6.5 days]
[16:21] ID:[10194972] Name:[(SchiekMaan) [00/76] - "Ubuntu 810.nzb"] Size:[776.95 MB] Completeness:[77 files (2075 / 2075 parts)] Files:[1 NZB, 13 PAR2, 63 RAR] Age:[9.2 days]
[16:21] ID:[10172000] Name:[(Posted By Rom) [00/24] - "REPOST ubuntu-8.10-desktop-i386.nzb" yEnc] Size:[798.99 MB] Completeness:[25 files (3281 / 3281 parts)] Files:[1 NZB, 9 PAR2, 15 RAR] Age:[9.9 days]
You can specify -n -mi or -ma
[16:22] !tvbinz search Entourage
[16:22] [TVBINZ] Results:[50] Displaying:[3]
[16:22] ID:[26791] Name:[Entourage.S05E09.720p.HDTV.X264-DIMENSION (853.6 MB)]
[16:22] ID:[26781] Name:[Entourage.S05E09.HDTV.XviD-0TV (267.5 MB)]
[16:22] ID:[25815] Name:[Entourage.S05E08.720p.HDTV.X264-DIMENSION (670.3 MB)]
[00:10] !binsearch search kubuntu
[00:11] [Binsearch] Search For:[kubuntu] Results:[9] Displaying:[3]
[00:11] ID:[30646726] Name:[(Kubuntu 8.10 i386 DVD) [00/41] - kubuntu-8.10-dvd-i386.nzb yEnc (1/7)] Size:[4.05 GB] Parts:[16904 / 16904] Files:[1 nzb, 1 par2, 1 sfv, 39 rar, 12 par] Age:[N/A]
[00:11] ID:[30637081] Name:[(DVD Kubuntu 8.10 X86) [00/39] - kubuntu-8.10 x86.nzb yEnc (1/7)] Size:[203.21 MB] Parts:[829 / 852] Files:[1 nzb, 1 sfv, 1 par2, 2 rar] Age:[N/A]
[00:11] ID:[27710269] Name:[Registreer je gratis op ****HTTP://CAVEBOX.COM**** [16/35] - CaveBox.com_kubuntu_8.04_x64.par2 yEnc Sponsored by Hitnews.eu (1/1)] Size:[788.12 MB] Parts:[1268 / 1268] Files:[6 par2, 14 rar] Age:[N/A]
This would add the 2 ID's specified at the end with the NZB name "Kubuntu" to SABnzbd.[00:10] !binsearch add -nKubuntu 30646726 30637081
[00:10] [SABnzbd] Item added successfully
EDIT: Updated to v0.5.[15:48] !newzleech search kubuntu
[15:48] [Newzleech] Search For:[kubuntu] Results:[10] Displaying:[3]
[15:48] ID:[7968409] Name:[(Kubuntu 8.10 i386 DVD) [00/41] - kubuntu-8.10-dvd-i386.nzb yEnc] Size:[4.1 GB] Complete:[100.2%] Files:[54] Age:[7.2d]
[15:48] ID:[7959090] Name:[(DVD Kubuntu 8.10 X86) [00/39] - kubuntu-8.10 x86.nzb yEnc] Size:[203.7 MB] Complete:[97.3%] Files:[5] Age:[7.5d]
[15:48] ID:[6082752] Name:[Registreer je gratis op ****HTTP://CAVEBOX.COM**** [17/35] - CaveBox.com_kubuntu_8.04_x64.part01.rar yEnc Sponsored by Hitnews.eu] Size:[790.0 MB] Complete:[100%] Files:[19] Age:[115.4d]