Automatic clic on "Search all Wanted" every few hours

Sonarr on Raspberry Pi (Debian)
Works with Jackett/Mono/Transmission

Hi everyone,

I’m new to Sonarr and I have a little problem. I only download from a french indexer (Ygg) that does not support RSS feed. So when a new episode is aired, Sonarr doesn’t download it. I have to click on “Search all wanted” and it (almost) always find my episode and download it.

Since I’m following only a few show, and my “wanted list” is always almost empty (1 or 2 new episode/day), I want to know if there is a way for Sonarr to automaticaly search all my wanting list every few hours (my raspberry is only used for Sonarr so I don’t care if it use a lot of CPU).

Can Sonarr do that ? Or can we do that with a script ?
If there is a unix command that trigger the search, I can do it with Cron.

Thank you for your help and I apologise for the english (I’m french)

Hi again,

I found a solution with an autocliker, FYI :

Install xdotool
sudo apt-get install xdotool
Open a graphic session on the raspberry (VNC)
Go to the Wanted page of Sonarr and open a command console.

Put your mouse on “Search All Missing” button and make this command :
xdotool getmouselocation
It should give you the X and Y location of your mouse. Do the same for the OK button “Search All Missing” and the refresh button of your web browser

make a script :
nano autoclic.sh
Avec en contenu (en remplaçant les XXX et YYY correspondant):

#!/bin/bash


while [ 1 ]; do
#Clic on Search all missing - replace XXX & YYY + sleep 5 sec
        xdotool mousemove XXX YYY click 1
        sleep 5

#Clic on OK - replace XXX & YYY + sleep 300 sec
        xdotool mousemove XXX YYY click 1
        sleep 300

#Clic on Refresh - replace XXX & YYY + sleep 3295 sec
        xdotool mousemove XXX YYY click 1
        sleep 3295
done

It’s an one hour loop that clic on “Search All Wanted” => OK => Refresh

Make the script executable :
chmod +x autoclic.sh
Then execute it
./autoclic.sh
Lower the command windows (without shutting it) and close the VNC windows.

You should see that the script looks for wanted episodes on the Sonarr logs (System => Logs)

I’m always looking for a better solution, since this one need to be launch manualy if the Raspberry reboots.

Regards

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.