Author Topic: RSS Filters Relative Path / User Variables  (Read 2212 times)

Offline zoomer

  • Contributor
  • ***
  • Posts: 2
RSS Filters Relative Path / User Variables
« on: May 15, 2010, 07:20:00 am »
Is there a way to use relative paths in the rss filters where the download dir is relative to the default download folder and the unrar folder relative to the default unrar folder?  Or maybe defining user variables that I can use in the filter lines?

For example being able to say:

*myshow1* | A | myshow1\%NZBSUBJECT | myshow1\%NZBSUBJECT

or

set complete = c:\downloads\complete
set incomplete = c:\downloads\incomplete
*myshow1* | A | $incomplete\myshow1\%NZBSUBJECT | $complete\myshow1\%NZBSUBJECT

I use altbinz in both windows and linux, and the path to my download dirs change depending on the drive/folder mapping.  It would be nice to not have to edit multiple copies of the filters each time I make a change.

Offline Hecks

  • Contributor
  • ***
  • Posts: 2011
  • naughty cop
Re: RSS Filters Relative Path / User Variables
« Reply #1 on: May 15, 2010, 11:18:03 am »
You can do this somewhat with Execute Command on Completion by passing your directory params to the batch script:

https://www.altbinz.net/wiki/Using_RSS_Feeds_and_Filters#Filters:_Advanced

https://www.altbinz.net/wiki/Execute_Command_on_Completion

Note that the script runs after PAR2 checking, repairing or unraring is complete (whichever is last in the cycle).

But actually being able to set custom variables at the top of the filter file is a much neater idea, moving this to Requests. ;)
« Last Edit: May 15, 2010, 11:20:06 am by Hecks »