Author Topic: Alt.binz Scripts - The Talk  (Read 13338 times)

Offline acb

  • Contributor
  • ***
  • Posts: 2
Alt.binz Scripts - The Talk
« on: April 13, 2008, 12:50:24 am »
Hello! Just became a contributor and upgraded to 0.27.2 and I'm very excited to get started writing some scripts to add to my automated setup. Just curious if there are any other command line parameters that Alt.Binz can pass other than $d and $u. Some that I would personally find useful would include:

- Total Download Time
- Average Download Speed
- List of Files Extracted from RARs
- True/False whether or not the download was initiated by the RSS tab/plugin

I'm just about finished a script (vbscript) to email myself the details of finished downloads. Once I've tested it with a few downloads I'll share the code here with everyone!
« Last Edit: November 05, 2009, 12:50:22 pm by davidq666 »

Offline Hecks

  • Contributor
  • ***
  • Posts: 2011
  • naughty cop
Re: Alt.binz Scripts - Post yours here!
« Reply #1 on: April 13, 2008, 01:49:10 am »
Nice to see someone else scripting away :)

Although those params aren't currently available, you can get the info (or approximations thereof) in a few ways, depending on when & how you want the info:

1. Use the altbinz_status.xml file (this can give you updates on queue size and speed).

2. Use TheKarn's abzQueueReader.dll to read the queue.abz file (pm him!).

3. Parse your log file. :) I think this should give you the last two bits of info you need with only a bit of light regexing.  ;)

Look forward to reading & testing your script!


Offline Zodler

  • Contributor
  • ***
  • Posts: 25
Re: Alt.binz Scripts - Post yours here!
« Reply #2 on: January 16, 2009, 04:20:33 am »
Hello everyone. I want to create an md5 file with execute command after unraring each file. How is that possible? My command line md5 generator is md5sum.exe. I can’t make it work with Alt.Binz. What parameter should I pass?

This utility works like this
md5sum.exe filename > outputfile

thanks

PatrickMc

  • Guest
Re: Alt.binz Scripts - Post yours here!
« Reply #3 on: April 20, 2009, 06:11:43 pm »

Good forum, good scripts posted.

I have been using biterscripting a lot on windows. It seems much simpler, and still more powerful compared to Dos or cmd . They have some sample scripts -to download them, follow installation directions at http://www.biterscripting.com/install.html . All their sample scripts are open-source. And biterscripting itself is free.

I have been using it a lot for log file parsing - i am a system admin. I will generalize one of my own scripts for parsing log files and post it here. (I don't want to post their sample scripts. It's best you download them yourselves.)

Patrick

Offline Hecks

  • Contributor
  • ***
  • Posts: 2011
  • naughty cop
Re: Alt.binz Scripts - Post yours here!
« Reply #4 on: April 20, 2009, 07:55:28 pm »
Well, there's lots of choice for a scripting language if you're going to install something.  If you're on Windows, the replacement for cmd/.bat/vbscript is Powershell.  Very easy to use and very flexible, given its .NET base, something that MS actually got right for once:

http://www.microsoft.com/windowsserver2003/technologies/management/powershell/download.mspx

It's what I use now for basically everything.  But hey, why not go the whole hog and install python, perl or ruby etc.? ;)

Hansel

  • Guest
Re: Alt.binz Scripts - Post yours here!
« Reply #5 on: July 13, 2009, 06:53:04 am »
I don't suppose anyone has created a script to unrar (or move) completed files to specific folders (ie, categories)?

Offline davidq666

  • Contributor
  • ***
  • Posts: 1302
  • Watashi Wa Ero Desu!
Re: Alt.binz Scripts - Post yours here!
« Reply #6 on: July 13, 2009, 07:59:27 am »
I don't suppose anyone has created a script to unrar (or move) completed files to specific folders (ie, categories)?

not realy i've just made a little backup-script that copies the newest file from unrar dir to a mobile player. i guess its possible to do something simular with multiple locations and if conditions especialy in combination with the collection-name variable $col introduced in 0.28.5.

Hansel

  • Guest
Re: Alt.binz Scripts - Post yours here!
« Reply #7 on: July 13, 2009, 10:23:31 am »
Fair enough.  I wouldn't have a clue where to start unfortunately :D

Offline DAL

  • Contributor
  • ***
  • Posts: 4
Re: Alt.binz Scripts - Post yours here!
« Reply #8 on: November 04, 2009, 07:14:08 pm »
WinXP SP2
AltBinz 0.31.2

I'm not familiar with batch files, so any help will be appreciated. I can't get the sample logdownloads.bat  to work. After a file was unrared, the cmd window appears for a moment.  I opened  C:\dldlog.txt, but  it only contains the text Alt.binz Download Log.  



I used the navigation button in NZB #2 to find logdownloads.bat. AltBinz automatically inclosed the path in quotation marks, I assume because the path has spaces. I added a space after the quotation mark and appended "$d $u"

My unrar dir is different then my download dir.

I tried these commands:

1.
"C:\My Stuff\Alt.BinZ 0.31.2 binary news reader\logdownloads.bat" "$d $u"

2.
I replaced "$d $u" with the actual full paths without trailing delimiters. I used quotation marks around the full paths because of spaces in paths.

"C:\My Stuff\Alt.BinZ 0.31.2 binary news reader\logdownloads.bat" ""full path to download dir" "full path to unrar dir""

3.
I left the $ in place.

"C:\My Stuff\Alt.BinZ 0.31.2 binary news reader\logdownloads.bat" "$"full path to download dir" $"full path to unrar dir""


UPDATE

I removed the " " from $d $u.

This command works:

"C:\My Stuff\Alt.BinZ 0.31.2 binary news reader\logdownloads.bat" $d $u


« Last Edit: November 07, 2009, 05:47:08 pm by DAL »

Offline DAL

  • Contributor
  • ***
  • Posts: 4
Re: Alt.binz Scripts - The Talk
« Reply #9 on: November 07, 2009, 05:51:10 pm »
See the UPDATE in my other post for command that worked.

Offline JACOb

  • Contributor
  • ***
  • Posts: 5
Re: Alt.binz Scripts - The Talk
« Reply #10 on: September 10, 2011, 12:09:59 pm »
hey guys, i'm looking for a script to run after a download has been completed to make a torrent and upload it..something along the lines of

http://forums.sabnzbd.org/viewtopic.php?t=6244

can anyone help me get such a script up and running?

Offline Hecks

  • Contributor
  • ***
  • Posts: 2011
  • naughty cop
Re: Alt.binz Scripts - The Talk
« Reply #11 on: September 10, 2011, 04:11:29 pm »
I'm afraid that you won't find any support here for torrents or any related technology.