Looking for a Script to set high priority based on nzb age
Posted: February 1st, 2020, 4:52 am
Hello guys,
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
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