Im looking for a script to set a high priority for incoming nzb‘s, based on file age (let‘s say max. 7 days).
I know there is an option in sonarr/radarr to automatically set high priority for episodes that aired in the last days or movies that just got released. While this works for a lot of files, it doesn‘t work for german dubbed episodes and movies that sometimes get released months after their original air dates.
Most of the time my download queue is huge and it takes several days for these files to get downloaded.
At the moment I have a workaround by calling the API url to sort the download queue by age via cronjob every minute.
While this kinda works, it‘s messing up the download order for all other downloads and sometimes pushing back downloads with very old file age to the end of the queue every time and prevents downloading.
Is it possible to write a pre-queue script for this? I don‘t know where to start and could really use some help.
Thank you very much
Come up with a useful post-processing script? Share it here!
2 posts • Page 1 of 1
In Config > Switches there is a switch "Sort by Age" (enable Advanced Settings), which sorts the queue by age every time a new job is added