Page 1 of 1

variables for download folder

Posted: June 20th, 2017, 7:04 am
by MadKombat
Hello,

I have a question:

When I set a download category, I would like to add a parameter to the download path like %today%, %thisweek%, %thismonth% while
%today% = the current date (changes every day of course)
%thisweek% = the current week (changes every week of course)
%this month% = ... I think you get it.

Background: I would like for some downloads to be sorted this way in order to manage them better. Quicker access and better distinction on which folder already had been reviewed and which not. If my downloads can be separated so that every day gets its own subfolder, that would be awesome.

Re: variables for download folder

Posted: June 20th, 2017, 7:47 am
by safihre
Maybe you should check out the Sorting page of the Config ;) and particular the Date Sorting part.
https://sabnzbd.org/wiki/configuration/2.1/sorting

Re: variables for download folder

Posted: June 20th, 2017, 8:11 am
by MadKombat
That does not help as far as I can see...
Date sorting will allow for renaming, and sorting of files that contain dates in their nzb name.
I do not (necessarily) have dates in the nzb. All I want is for my category music to save all downloads from today
..\downloads\music\%DateOfToday%
and from tomorrow
..\downloads\music\%DateOfToday% (which actually will be the date of tomorrow)

Re: variables for download folder

Posted: June 20th, 2017, 9:54 am
by safihre
Ah yes, you are right.
This functionality is not available and probably the best way to do so entging like this is a postprocess script. A simple python or bash script can do this since they receive the category and path to a download.

Re: variables for download folder

Posted: June 20th, 2017, 9:58 am
by MadKombat
Well... there is the problem. I don't know how to script anything here. Could you help me out here?

I just thought it might be cool to have some variables to put in the path as placeholders (date/month/week)... Maybe something interesting for a future release?